controller

package
v0.0.0-...-4362469 Latest Latest
Warning

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

Go to latest
Published: May 8, 2017 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddBus

func AddBus(c *gin.Context)

func AddChargeRecord

func AddChargeRecord(c *gin.Context)

func AddLineFareIncome

func AddLineFareIncome(c *gin.Context)

func AddStaff

func AddStaff(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 PutBus

func PutBus(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 Links struct {
	Self string `json:"self"`
	Next string `json:"next"`
	Last string `json:"last"`
}

type RESTWrapper

type RESTWrapper map[string]interface{}

func NewWrapper

func NewWrapper() *RESTWrapper

func (*RESTWrapper) Self

func (wrapper *RESTWrapper) Self() string

Jump to

Keyboard shortcuts

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