75 lines
2.9 KiB
Go
75 lines
2.9 KiB
Go
package chatrobotmod
|
|
|
|
import (
|
|
"time"
|
|
|
|
"91porn-server/models/commod"
|
|
)
|
|
|
|
type ReqConfList struct {
|
|
Type *string `form:"type" json:"type"`
|
|
commod.Page
|
|
}
|
|
|
|
type RespList struct {
|
|
ID ObjectID `json:"id"`
|
|
Type EnumRobotType `json:"type"` // 机器人类型
|
|
IsActive bool `json:"isActive"` // 是否开启
|
|
CreatedAt time.Time `json:"createdAt"` // 创建时间
|
|
UpdatedAt time.Time `json:"updatedAt"` // 更新时间
|
|
CommentRobotResp `json:",inline"`
|
|
}
|
|
|
|
type CommentRobotResp struct {
|
|
From string `json:"from"` // 每天的起始时间 HH:MM:SS
|
|
To string `json:"to"` // 每天的结束时间 HH:MM:SS
|
|
TotalLimit int `json:"totalLimit"` // 机器人每天总评论数
|
|
PureLimit int `json:"pureLimit"` // 单个机器人每天评论数
|
|
Frequency int `json:"frequency"` // 发表评论频率 单位:秒/条
|
|
MaxCommentNum int `json:"maxCommentNum"` // 参与评论视频的最大评论数
|
|
MaxFakeLikes int `json:"maxFakeLikes"` // 视频点赞数最大值
|
|
MinFakeLikes int `json:"minFakeLikes"` // 视频点赞数最小值
|
|
MaxFakePlayCount int `json:"maxFakePlayCount"` // 视频播放量最大值
|
|
MinFakePlayCount int `json:"minFakePlayCount"` // 视频播放量最小值
|
|
}
|
|
|
|
type ReqUpdate struct {
|
|
Type EnumRobotType `json:"type" binding:"required"`
|
|
ReqUpdateCmt // 评论机器人配置更新请求参数
|
|
}
|
|
|
|
// 评论机器人配置更新请求参数
|
|
type ReqUpdateCmt struct {
|
|
From *string `json:"from"`
|
|
To *string `json:"to"`
|
|
TotalLimit *int `json:"totalLimit"`
|
|
PureLimit *int `json:"pureLimit"`
|
|
Frequency *int `json:"frequency"`
|
|
IsActive *bool `json:"isActive"`
|
|
MaxCommentNum *int `json:"maxCommentNum"`
|
|
MaxFakeLikes *int `json:"maxFakeLikes"` // 视频点赞数最大值
|
|
MinFakeLikes *int `json:"minFakeLikes"` // 视频点赞数最小值
|
|
MaxFakePlayCount *int `json:"maxFakePlayCount"` // 视频播放量最大值
|
|
MinFakePlayCount *int `json:"minFakePlayCount"` // 视频播放量最小值
|
|
}
|
|
|
|
// 添加配置
|
|
type ReqAdd struct {
|
|
Type EnumRobotType `json:"type" binding:"required"`
|
|
ReqAddCmt
|
|
}
|
|
|
|
type ReqAddCmt struct {
|
|
From string `json:"from"`
|
|
To string `json:"to"`
|
|
TotalLimit int `json:"totalLimit"`
|
|
PureLimit int `json:"pureLimit"`
|
|
Frequency int `json:"frequency"`
|
|
IsActive bool `json:"isActive"`
|
|
MaxCommentNum int `json:"maxCommentNum"`
|
|
MaxFakeLikes int `json:"maxFakeLikes"` // 视频点赞数最大值
|
|
MinFakeLikes int `json:"minFakeLikes"` // 视频点赞数最小值
|
|
MaxFakePlayCount int `json:"maxFakePlayCount"` // 视频播放量最大值
|
|
MinFakePlayCount int `json:"minFakePlayCount"` // 视频播放量最小值
|
|
}
|