39 lines
3.1 KiB
Go
Executable File
39 lines
3.1 KiB
Go
Executable File
package aiplazamod
|
|
|
|
import (
|
|
"time"
|
|
|
|
"go.mongodb.org/mongo-driver/bson/primitive"
|
|
)
|
|
|
|
// AiPlazaInfo 移动端返回内容
|
|
type AiPlazaInfo struct {
|
|
ID primitive.ObjectID `json:"id"` // 文档id
|
|
Type int `json:"type"` // 1-ai图片换脸 2-ai视频换脸 3-ai脱衣 4-ai图生视频 5-ai绘画
|
|
Template string `json:"template" bson:"template"` // 关联模版id
|
|
Uid uint64 `json:"uid"` //
|
|
Name string `json:"name"` //姓名
|
|
Gender string `json:"gender"` //性别
|
|
Portrait string `json:"portrait"` //头像
|
|
Title string `json:"title"` // 标题
|
|
OriginalImage string `json:"originalImage" bson:"originalImage"` // 原图
|
|
OriginalVideo string `json:"originalVideo" bson:"originalVideo"` // 原视频
|
|
OriginalVideoCover string `json:"originalVideoCover" bson:"originalVideoCover"` // 原视频封面
|
|
OriginContent string `json:"originContent" bson:"originContent"` // 输入的原文
|
|
GenerateImage string `json:"generateImage" bson:"generateImage"` // 生成的图
|
|
GenerateVideo string `json:"generateVideo" bson:"generateVideo"` // 生成的视频
|
|
GenerateVideoCover string `json:"generateVideoCover" bson:"generateVideoCover"` // 生成的视频封面
|
|
Status int `json:"status"` // 0-待审核 1-审核通过 2-拒绝 3-下架
|
|
Reason string `json:"reason"` // 原因
|
|
SortCode int `json:"sortCode"` // 置顶排序号,大于0就是置顶
|
|
HasCollected bool `json:"hasCollected"` // 是否收藏
|
|
HasLiked bool `json:"hasLiked"` // 是否点赞
|
|
ViewCount int64 `json:"viewCount" bson:"viewCount"` // 浏览数
|
|
LikeCount int64 `json:"likeCount" bson:"likeCount"` // 点赞数
|
|
CollectCount int64 `json:"collectCount" bson:"collectCount"` // 收藏数
|
|
CommentCount int64 `json:"commentCount" bson:"commentCount"` // 评论数
|
|
ReviewAt time.Time `json:"reviewAt"` // 审核时间
|
|
CreatedAt time.Time `json:"createdAt"` // 文档创建时间
|
|
UpdatedAt time.Time `json:"updatedAt"` // 文档更新时间
|
|
}
|