Files
web_hghl_server/web/service/srv_hotnav/define.go
T
2026-10-26 16:28:14 +08:00

43 lines
1.0 KiB
Go

package srv_hotnav
import (
"videoweb/pub/models/hotnavmod"
"videoweb/pub/pubdef"
)
type GetHotNavListReq struct {
pubdef.Page
}
type GetHotNavListResp struct {
Total int64 `json:"total"`
List hotnavmod.HotNavList `json:"list"`
}
type AddHotNavReq struct {
Title string `json:"title" binding:"required"` // 标题
Intro string `json:"intro"` // 介绍
Url string `json:"url" binding:"required"` // 链接
Icon string `json:"icon"` // 图标
Sort int64 `json:"sort"` // 排序
Status *bool `json:"status"` // 是否启用
}
type UpdateHotNavReq struct {
Id int64 `json:"id" binding:"required"`
Param UpdateHotNavParam `json:"param"`
}
type UpdateHotNavParam struct {
Title *string `json:"title"`
Intro *string `json:"intro"`
Url *string `json:"url"`
Icon *string `json:"icon"`
Sort *int64 `json:"sort"`
Status *bool `json:"status"`
}
type DelHotNavReq struct {
Id int64 `json:"id" binding:"required"`
}