70 lines
5.1 KiB
Go
70 lines
5.1 KiB
Go
package srv_actress
|
|
|
|
import (
|
|
"time"
|
|
"videoweb/pub/models/actress"
|
|
"videoweb/pub/pubdef"
|
|
)
|
|
|
|
type ActressListReq struct {
|
|
pubdef.Page
|
|
Id *int64 `form:"id" json:"id"` // Id
|
|
Alias *string `form:"alias" json:"alias"` // 别名
|
|
TranslationCategoryId *int64 `form:"translationCategoryId" json:"translationCategoryId"` // 关联导航分类id
|
|
Region *string `form:"region" json:"region"` // 地区/国家
|
|
Status *bool `form:"status" json:"status" ` // 是否启用
|
|
SortType int64 `form:"sortType" json:"sortType"` // 排序方式 0=创建时间 1=评分 2=排序值 3=作品数 4=总观看次数 5=热度值
|
|
}
|
|
type ActressListResp struct {
|
|
Total int64 `json:"total"`
|
|
List []*actress.Actress `json:"list"`
|
|
}
|
|
|
|
type ActressUpdateReq struct {
|
|
Id int64 `json:"id,omitempty" binding:"required"`
|
|
Param ActressUpdateParam `json:"param" binding:"required"`
|
|
}
|
|
|
|
type ActressUpdateParam struct {
|
|
Alias *string `bson:"alias,omitempty" json:"alias"` // 别名
|
|
Slug *string `json:"slug" bson:"slug,omitempty"` // slug
|
|
Avatar *string `bson:"avatar,omitempty" json:"avatar"` // 头像
|
|
Cover *string `bson:"cover,omitempty" json:"cover"` // 封面大图
|
|
Desc *string `bson:"desc,omitempty" json:"desc"` // 详细描述
|
|
TranslationCategoryId *int64 `bson:"translationCategoryId,omitempty" json:"translationCategoryId"` // 关联导航分类id
|
|
Meas *actress.Meas `bson:"meas,omitempty" json:"meas"` // 三围
|
|
Office *string `json:"office" bson:"office,omitempty"` // 事务所
|
|
DebutDate *time.Time `bson:"debutDate,omitempty" json:"debutDate" ` // 出道日期
|
|
BornDate *time.Time `bson:"bornDate,omitempty" json:"bornDate"` // 出生日期
|
|
Region *string `json:"region" bson:"region,omitempty"` // 地区/国家
|
|
Score *string `json:"score" bson:"score,omitempty"` // 评分
|
|
Rank *int64 `json:"rank" bson:"rank,omitempty"` // 排序
|
|
HotValue *int64 `json:"hotValue" bson:"hotValue,omitempty"` // 热度值
|
|
Status *bool `json:"status" bson:"status,omitempty"` // 是否启用
|
|
SeoInfo *pubdef.SeoValue `json:"seoInfo" bson:"seoInfo"` // Seo相关信息
|
|
UpdatedAt *time.Time `json:"updatedAt" bson:"updatedAt,omitempty"` // 更新时间
|
|
}
|
|
|
|
type ActressAddReq struct {
|
|
Alias string `bson:"alias" json:"alias"` // 别名
|
|
Slug string `json:"slug" bson:"slug"` // slug,不传则按 SEO 关键词或别名自动生成
|
|
SeoInfo pubdef.SeoValue `json:"seoInfo" bson:"seoInfo"` // Seo相关信息
|
|
Avatar string `bson:"avatar" json:"avatar"` // 头像
|
|
Cover string `bson:"cover" json:"cover"` // 封面大图
|
|
Desc string `bson:"desc" json:"desc"` // 详细描述
|
|
TranslationCategoryId int64 `bson:"translationCategoryId" json:"translationCategoryId"` // 关联导航分类id
|
|
Meas actress.Meas `bson:"meas" json:"meas"` // 三围
|
|
Office string `json:"office" bson:"office"` // 事务所
|
|
DebutDate time.Time `bson:"debutDate" json:"debutDate" ` // 出道日期
|
|
BornDate time.Time `bson:"bornDate" json:"bornDate"` // 出生日期
|
|
Region string `json:"region" bson:"region"` // 地区/国家
|
|
Score string `json:"score" bson:"score"` // 评分
|
|
Rank int64 `json:"rank" bson:"rank"` // 排序
|
|
HotValue int64 `json:"hotValue" bson:"hotValue"` // 热度值
|
|
Status bool `json:"status" bson:"status"` // 是否启用
|
|
}
|
|
|
|
type ActressDelReq struct {
|
|
Id int64 `json:"id"`
|
|
}
|