Initial commit

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
2026-09-15 13:57:10 +08:00
co-authored by Claude Opus 5
commit 8679200f41
1897 changed files with 257900 additions and 0 deletions
+67
View File
@@ -0,0 +1,67 @@
package followmod
import (
"91porn-server/models/commod"
"91porn-server/models/v/vidmod"
"time"
)
// BaseInfo 返回的关注或者粉丝信息
type BaseInfo struct { //用户id
UID uint64 `json:"uid"` //名字
Name string `json:"name"` //性别
Gender string `json:"gender"` //头像
Portrait string `json:"portrait"` //已禁止登陆
HasLocked bool `json:"hasLocked"` //已禁言
HasBanned bool `json:"hasBanned"` //会员等级
VipLevel int `json:"vipLevel"` //是否vip
IsVip bool `json:"isVip"` //是否逆向关注
Via string `json:"via"` //粉丝来源
Fans int64 `json:"fans"` //粉丝数
Summary *string `json:"summary"` //简介
SuperUser bool `json:"superUser"` //是否大v
Awards []int `json:"awards"` //用户奖章
TotalWorks int64 `json:"totalWorks"` //总作品数
CreatedAt time.Time `json:"createdAt"` //创建时间
// 其他数据
HasFollow bool `json:"hasFollow"` // 是否关注
}
// ListReq 用户关注、粉丝列表
type ListReq struct {
PageNumber int `form:"pageNumber" json:"pageNumber"`
PageSize int `form:"pageSize" json:"pageSize"`
UID uint64 `form:"uid" json:"uid"`
IsShort bool `form:"isShort" json:"isShort"`
}
// UserFollowReq 用户关注动作
type UserFollowReq struct {
FollowUID uint64 `form:"followUID" json:"followUID"`
IsFollow bool `form:"isFollow" json:"isFollow"`
IsShort bool `form:"isShort" json:"isShort"`
}
// ListResp 列表返回
type ListResp struct {
//数据列表
List []*BaseInfo `json:"list"`
//是否还有下一页
HasNext bool `json:"hasNext"`
}
// DynamicsResp 关注用户的动态信息
type DynamicsResp struct {
//视频列表
List []*vidmod.VideoInfo `json:"list"`
VInfos []*vidmod.VideoInfo `json:"vInfos"`
HasNext bool `json:"hasNext"`
//总页数
TotalPages int `json:"totalPages"`
}
// AppDynamicsListReq 用户关注、粉丝列表
type AppDynamicsListReq struct {
commod.Page
NewsType string `form:"newsType" json:"newsType"` // SHORT:短视频 SP:长视频
}