Files
2026-10-27 16:44:55 +08:00

37 lines
1.6 KiB
Go

package srv_translation
import (
"time"
"videoweb/pub/models/translationmod"
"videoweb/pub/pubdef"
)
type TranslationInfoReq struct {
pubdef.Page
Id int64 `json:"id" form:"id"` // 导航ID
Name string `json:"name" form:"name"` // 导航名称
TransCategoryId int64 `json:"transCategoryId" form:"transCategoryId"` // 导航分类ID
}
type TranslationInfoResp struct {
Total int64 `json:"total"`
List translationmod.TranslationInfoList `json:"list"`
}
type TranslationInfoUpdate struct {
Name *string `json:"name" bson:"name,omitempty"` // 分类名称
Status *bool `json:"status" bson:"status,omitempty"` // 上架状态
Rank *int64 `json:"rank" bson:"rank,omitempty"` // 排序
HtmlId *int64 `json:"htmlId" bson:"htmlId,omitempty"` // 富文本ID
Link *string `json:"link" bson:"link,omitempty"` // 外部跳转
IsFriendAds *bool `json:"isFriendAds" bson:"isFriendAds"` // 是否是友链广告位
TransCategoryId *int64 `json:"transCategoryId" bson:"transCategoryId,omitempty"` //
UpdatedAt time.Time `json:"updatedAt" bson:"updatedAt,omitempty"`
}
type TranslationInfoUpdateReq struct {
Id int64 `json:"id" binding:"required"`
Param TranslationInfoUpdate `json:"param" bson:"param"` // appId,唯一id
}
type TranslationInfoDelReq struct {
Id int64 `json:"id" binding:"required"`
}