Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadFlag ¶
func LoadFlag() gin.HandlerFunc
func RegisterRouter ¶
func RegisterRouter(g *gin.RouterGroup)
Types ¶
type Handler ¶
type Handler struct {
}
func (*Handler) BatchDelete ¶
func (*Handler) BatchDelete() gin.HandlerFunc
func (*Handler) Create ¶
func (*Handler) Create() gin.HandlerFunc
func (*Handler) List ¶
func (*Handler) List() gin.HandlerFunc
func (*Handler) Modify ¶
func (*Handler) Modify() gin.HandlerFunc
func (*Handler) Show ¶
func (*Handler) Show() gin.HandlerFunc
func (*Handler) SingleDelete ¶
func (*Handler) SingleDelete() gin.HandlerFunc
type ReqBatchDelete ¶
type ReqBatchDelete struct {
Orders []int `json:"orders"`
}
type ReqCreate ¶
type ReqCreate struct {
Type string `json:"type" validate:"required" binding:"required"`
Settings interface{} `json:"settings"`
}
type ReqModify ¶
type ReqModify struct {
Type *string `json:"type" validate:"omitempty,min=1" binding:"omitempty,min=1"`
Settings interface{} `json:"settings"`
}
type RespBatchDelete ¶
type RespBatchDelete struct {
Response
Details []*RespBatchDeleteDetail `json:"details"`
}
type RespBatchDeleteDetail ¶
type RespBatchDeleteDetail struct {
Response
OldOrder int `json:"old_order"`
}
type RespCreate ¶
type RespCreate struct {
Response
FlagOrder int `json:"flag_order,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.