Initial commit: web_hghl_server
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,42 @@
|
||||
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"`
|
||||
}
|
||||
Reference in New Issue
Block a user