Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
39 lines
1.0 KiB
Go
39 lines
1.0 KiB
Go
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"`
|
|
}
|