init: web_hgdjc_server
This commit is contained in:
@@ -0,0 +1,38 @@
|
||||
package srv_detailnav
|
||||
|
||||
import (
|
||||
"videoweb/pub/models/detailnavmod"
|
||||
"videoweb/pub/pubdef"
|
||||
)
|
||||
|
||||
type GetDetailNavListReq struct {
|
||||
pubdef.Page
|
||||
}
|
||||
|
||||
type GetDetailNavListResp struct {
|
||||
Total int64 `json:"total"`
|
||||
List detailnavmod.DetailNavModelList `json:"list"`
|
||||
}
|
||||
|
||||
type AddDetailNavReq struct {
|
||||
Name string `json:"name" binding:"required"` // 导航名称
|
||||
Url string `json:"url" binding:"required"` // 导航链接
|
||||
Sort int64 `json:"sort"` // 排序
|
||||
Status *bool `json:"status"` // 是否启用
|
||||
}
|
||||
|
||||
type UpdateDetailNavReq struct {
|
||||
Id string `json:"id" binding:"required"`
|
||||
Param UpdateDetailNavParam `json:"param"`
|
||||
}
|
||||
|
||||
type UpdateDetailNavParam struct {
|
||||
Name *string `json:"name" bson:"name,omitempty"`
|
||||
Url *string `json:"url" bson:"url,omitempty"`
|
||||
Sort *int64 `json:"sort" bson:"sort,omitempty"`
|
||||
Status *bool `json:"status" bson:"status,omitempty"`
|
||||
}
|
||||
|
||||
type DelDetailNavReq struct {
|
||||
Id string `json:"id" binding:"required"`
|
||||
}
|
||||
Reference in New Issue
Block a user