Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Company ¶
type Company struct { Id string `json:"id" binding:"id"` Name string `json:"name" binding:"required"` Description string `json:"description" binding:"description"` EmployeeCount int `json:"employeeCount" binding:"required,employee_count"` Registered bool `json:"registered" binding:"required,registered"` Type string `json:"type" binding:"required,type"` }
type CreateCompanyRequest ¶
type CreateCompanyRequest struct { Name string `json:"name" binding:"required,min=3,max=15"` Description string `json:"description" binding:"max=3000"` EmployeeCount int `json:"employeeCount" binding:"required,gte=1"` Registered bool `json:"registered" binding:"required"` Type string `json:"type" binding:"required,oneof=Corporations NonProfit Cooperative Sole\\ Proprietorship"` }
type UpdateCompanyRequest ¶
type UpdateCompanyRequest struct { Name string `json:"name" binding:"min=3,max=15"` Description string `json:"description" binding:"max=3000"` EmployeeCount int `json:"employeeCount" binding:"gte=1"` Registered bool `json:"registered"` Type string `json:"type" binding:"oneof=Corporations NonProfit Cooperative Sole\\ Proprietorship"` }
Click to show internal directories.
Click to hide internal directories.