Documentation ¶
Index ¶
- func AddBus(c *gin.Context)
- func AddChargeRecord(c *gin.Context)
- func AddLineFareIncome(c *gin.Context)
- func AddStaff(c *gin.Context)
- func AddStaffResign(c *gin.Context)
- func BadRequestResponse(c *gin.Context, err error)
- func GetBusByLicense(c *gin.Context)
- func GetStaffByID(c *gin.Context)
- func HandleOptionsRequest(c *gin.Context)
- func PutBus(c *gin.Context)
- func PutChargeRecord(c *gin.Context)
- func PutLineFareIncome(c *gin.Context)
- func ShowAllBusBrands(c *gin.Context)
- func ShowAllBuses(c *gin.Context)
- func ShowChargeRecords(c *gin.Context)
- func ShowDictionaryByType(c *gin.Context)
- func ShowLineFareIncomes(c *gin.Context)
- func ShowStaffs(c *gin.Context)
- type JSONRequestWrapper
- type Links
- type RESTWrapper
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddChargeRecord ¶
func AddChargeRecord(c *gin.Context)
func AddLineFareIncome ¶
func AddLineFareIncome(c *gin.Context)
func AddStaffResign ¶
func AddStaffResign(c *gin.Context)
func BadRequestResponse ¶
func BadRequestResponse(c *gin.Context, err error)
func GetBusByLicense ¶
func GetBusByLicense(c *gin.Context)
func GetStaffByID ¶
func GetStaffByID(c *gin.Context)
func HandleOptionsRequest ¶
func HandleOptionsRequest(c *gin.Context)
func PutChargeRecord ¶
func PutChargeRecord(c *gin.Context)
func PutLineFareIncome ¶
func PutLineFareIncome(c *gin.Context)
func ShowAllBusBrands ¶
func ShowAllBusBrands(c *gin.Context)
func ShowAllBuses ¶
func ShowAllBuses(c *gin.Context)
func ShowChargeRecords ¶
func ShowChargeRecords(c *gin.Context)
func ShowDictionaryByType ¶
func ShowDictionaryByType(c *gin.Context)
func ShowLineFareIncomes ¶
func ShowLineFareIncomes(c *gin.Context)
func ShowStaffs ¶
func ShowStaffs(c *gin.Context)
Types ¶
type JSONRequestWrapper ¶
type JSONRequestWrapper map[string]interface{}
func (*JSONRequestWrapper) Content ¶
func (wrapper *JSONRequestWrapper) Content(key string, data interface{})
type RESTWrapper ¶
type RESTWrapper map[string]interface{}
func NewWrapper ¶
func NewWrapper() *RESTWrapper
func (*RESTWrapper) Self ¶
func (wrapper *RESTWrapper) Self() string
Click to show internal directories.
Click to hide internal directories.