company

package
v0.0.0-...-8132f3d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 11, 2024 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleCompany

func HandleCompany(w http.ResponseWriter, r *http.Request)

GET company handler

Types

type CompanyRequest

type CompanyRequest struct {
	Group data.CompanyGroup `schema:"group"`
}

GET company request URL parameters

type CompanyResponse

type CompanyResponse struct {
	Name   string `json:"name"`
	Trivia string `json:"trivia"`
}

GET company request response body

func (*CompanyResponse) FromCompany

func (companyResponse *CompanyResponse) FromCompany(company data.Company)

update company response using company

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址