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
+32
View File
@@ -0,0 +1,32 @@
package main
import (
"91porn-server/generate/common"
"go.mongodb.org/mongo-driver/bson/primitive"
"time"
)
type AiPlaza struct {
ID primitive.ObjectID `bson:"_id,omitempty" json:"id" comment:"文档id"`
Type int `json:"type" bson:"type"` // 1-ai图片换脸 2-ai视频换脸 3-ai脱衣 4-ai图生视频 5-ai绘画
ModuleId string `json:"moduleId" bson:"moduleId" comment:"关联模版id"` // 关联模版id
Uid uint64 `json:"uid" bson:"uid"`
Title string `json:"title" bson:"title" comment:"标题"`
OriginalImage string `json:"originalImage" bson:"originalImage" comment:"原图"` // 原图
OriginalVideo string `json:"originalVideo" bson:"originalVideo" comment:"原视频"` // 原视频
OriginContent string `json:"originContent" bson:"originContent" comment:"输入的原文"` // 输入的原文
GenerateImage string `json:"generateImage" bson:"generateImage" comment:"生成的图"` // 生成的图
GenerateVideo string `json:"generateVideo" bson:"generateVideo" comment:"生成的视频"` // 生成的视频
Status int `json:"status" bson:"status" comment:"0-待审核 1-审核通过 2-拒绝 3-下架"` // 0-待审核 1-审核通过 2-拒绝 3-下架
Reason string `json:"reason" bson:"reason" comment:"原因"`
SortCode int `json:"sortCode" bson:"sortCode" comment:"置顶排序号,大于0就是置顶"`
ReviewAt time.Time `json:"reviewAt" bson:"reviewAt" comment:"审核时间"` // 审核时间
CreatedAt time.Time `json:"createdAt" bson:"createdAt" comment:"文档创建时间"` // 文档创建时间
UpdatedAt time.Time `json:"updatedAt" bson:"updatedAt" comment:"文档更新时间"` // 文档更新时间
}
func main() {
g := common.NewGen("91porn-server", "ai广场帖子")
g.AppGenerate = true
g.Generate(AiPlaza{})
}
+33
View File
@@ -0,0 +1,33 @@
package main
import (
"time"
"91porn-server/generate/common"
"go.mongodb.org/mongo-driver/bson/primitive"
)
type MediaBookshelf struct {
ID primitive.ObjectID `json:"id" bson:"_id,omitempty" comment:"文档id"`
Type int `json:"type" bson:"type" comment:"类型"`
Name string `json:"name" bson:"name" comment:"名称"`
MID primitive.ObjectID `json:"mid" bson:"mid" comment:"媒体ID"`
ReadHistory ReadHistory `json:"readHistory" bson:"readHistory" comment:"阅读记录"`
UID uint64 `json:"uid" bson:"uid" comment:"用户ID"`
IsDelete bool `json:"isDelete" bson:"isDelete" comment:"是否删除"`
ReadAt time.Time `json:"readAt" bson:"readAt" comment:"阅读时间"`
CreatedAt time.Time `json:"createdAt" bson:"createdAt" comment:"创建时间"`
UpdatedAt time.Time `json:"updatedAt" bson:"updatedAt" comment:"更新时间"`
}
type ReadHistory struct {
HasRead bool `json:"hasRead" bson:"hasRead"` // 是否已读
CID primitive.ObjectID `json:"cid" bson:"cid"` // 子集ID
Name string `json:"name" bson:"name"` // 续看子集名称
}
func main() {
g := common.NewGen("91porn-server", "媒体书架列表")
g.Generate(MediaBookshelf{})
}
+26
View File
@@ -0,0 +1,26 @@
package main
import (
"91porn-server/generate/common"
"go.mongodb.org/mongo-driver/bson/primitive"
"time"
)
type ImGroup struct {
ID primitive.ObjectID `bson:"_id,omitempty" json:"id"`
GroupId int64 `json:"groupId" bson:"groupId" comment:"群id"` // 群id
Name string `json:"name" bson:"name" comment:"群组名"` // 群组名
Cover string `json:"cover" bson:"cover" comment:"封面"`
Summary string `json:"summary" bson:"summary" comment:"简介"` // 简介
MemberNum int64 `json:"memberNum" bson:"memberNum" comment:"成员数量(真实)"` // 成员数量(真实)
FakeMemberNum int64 `json:"fakeMemberNum" bson:"fakeMemberNum" comment:"成员数量(假的)"` // 成员数量(假的)
Price int64 `bson:"price" json:"price" comment:"加入群聊价格 0-免费"` // 加入群聊价格 0-免费
CreatedAt time.Time `json:"createdAt" bson:"createdAt" comment:"文档创建时间"` // 文档创建时间
UpdatedAt time.Time `json:"updatedAt" bson:"updatedAt" comment:"文档更新时间"` // 文档更新时间
}
func main() {
g := common.NewGen("91porn-server", "im群组")
g.AppGenerate = true
g.Generate(ImGroup{})
}
+20
View File
@@ -0,0 +1,20 @@
package main
import (
"91porn-server/generate/common"
"go.mongodb.org/mongo-driver/bson/primitive"
"time"
)
type ImGroupMember struct {
ID primitive.ObjectID `bson:"_id,omitempty" json:"id" comment:"文档id"`
Uid int64 `json:"uid" bson:"uid" comment:"uid"`
Price int64 `json:"price" bson:"price" comment:"进群花费价格"`
CreatedAt time.Time `json:"createdAt" bson:"createdAt" comment:"创建时间"`
}
func main() {
g := common.NewGen("91porn-server", "im群组成员")
g.AppGenerate = true
g.Generate(ImGroupMember{})
}
+22
View File
@@ -0,0 +1,22 @@
package main
import (
"91porn-server/generate/common"
"go.mongodb.org/mongo-driver/bson/primitive"
"time"
)
type ImMessage struct {
ID primitive.ObjectID `bson:"_id,omitempty" json:"id" comment:"文档id"`
GroupId int64 `json:"groupId" bson:"groupId" comment:"群组id"`
Uid int64 `json:"uid" bson:"uid" comment:"用户id"`
Content string `json:"content" bson:"content" comment:"消息内容"`
Image string `json:"image" bson:"image" comment:"图片"`
CreatedAt time.Time `json:"createdAt" bson:"createdAt" comment:"创建时间"`
}
func main() {
g := common.NewGen("91porn-server", "im消息")
g.AppGenerate = true
g.Generate(ImMessage{})
}
+27
View File
@@ -0,0 +1,27 @@
package main
import (
"91porn-server/generate/common"
"go.mongodb.org/mongo-driver/bson/primitive"
"time"
)
type NakedChatOrder struct {
ID primitive.ObjectID `bson:"_id,omitempty" json:"id" comment:"文档id"`
Nid primitive.ObjectID `json:"nid" bson:"nid" comment:"裸聊id"`
Uid int64 `json:"uid" bson:"uid" comment:"uid"`
UserContact string `json:"userContact " bson:"userContact" comment:"用户联系方式"`
Num int64 `json:"num" bson:"num" comment:"购买数量"`
Price int64 `json:"price" bson:"price" comment:"购买的单价"`
Amount int64 `json:"amount" bson:"amount" comment:"总额"`
Remark string `json:"remark" bson:"remark" comment:"订单备注信息"`
Status int `json:"status" bson:"status" comment:"0-已下单 1-已完成"`
CreatedAt time.Time `json:"createdAt" bson:"createdAt" comment:"文档创建时间"` // 文档创建时间
UpdatedAt time.Time `json:"updatedAt" bson:"updatedAt" comment:"文档更新时间"` // 文档更新时间
}
func main() {
g := common.NewGen("91porn-server", "裸聊订单")
g.AppGenerate = true
g.Generate(NakedChatOrder{})
}
+33
View File
@@ -0,0 +1,33 @@
package main
import (
"91porn-server/generate/common"
"go.mongodb.org/mongo-driver/bson/primitive"
"time"
)
type NakedChat struct {
ID primitive.ObjectID `bson:"_id,omitempty" json:"id" comment:"文档id"`
Title string `json:"title" bson:"title" comment:"标题"`
Cover string `json:"cover" bson:"cover" comment:"封面"`
Price int64 `json:"price" bson:"price" comment:"价格 n金币/分钟"`
Options []int64 `json:"options" bson:"options" comment:"可供购买选项 ,多少分钟"`
Images []string `json:"images" bson:"images" comment:"图片列表"`
Video string `json:"video" bson:"video" comment:"展示的视频"`
Contact string `json:"contact " bson:"contact" comment:"联系方式"`
Age int `json:"age" bson:"age" comment:"年龄 单位 岁"`
Weight int `json:"weight" bson:"weight" comment:"体重 单位 kg"`
Cup string `json:"cup" bson:"cup" comment:"罩杯"`
SaleNum int64 `json:"saleNum" bson:"saleNum" comment:"销售数量"` // 销售数量
FakeSaleNum int64 `json:"fakeSaleNum" bson:"fakeSaleNum" comment:"销售数量(假)"` // 销售数量(假)
BusinessHours string `json:"businessHours" bson:"businessHours" comment:"连线时间"` // 连线时间
Summary string `json:"summary" bson:"summary" comment:"简介"` // 简介
CreatedAt time.Time `json:"createdAt" bson:"createdAt" comment:"文档创建时间"` // 文档创建时间
UpdatedAt time.Time `json:"updatedAt" bson:"updatedAt" comment:"文档更新时间"` // 文档更新时间
}
func main() {
g := common.NewGen("91porn-server", "裸聊")
g.AppGenerate = true
g.Generate(NakedChat{})
}
+31
View File
@@ -0,0 +1,31 @@
package main
import (
"time"
"91porn-server/generate/common"
"go.mongodb.org/mongo-driver/bson/primitive"
)
type SysConf struct {
ID primitive.ObjectID `json:"id" bson:"_id,omitempty" comment:"文档id"`
GroupName string `json:"groupName" bson:"groupName" comment:"分组名"`
GpCode string `json:"gpCode" bson:"gpCode" comment:"分组编码"`
VCode string `json:"vCode" bson:"vCode" comment:"变量名"`
Title string `json:"title" bson:"title" comment:"变量标题"`
Tip string `json:"tip" bson:"tip" comment:"变量描述"`
Type string `json:"type" bson:"type" comment:"类型:text,string,img,int,bool,object,text-array,string-array"`
Value string `json:"value" bson:"value" comment:"变量值"`
IsRequired bool `json:"is_required" bson:"is_required" comment:"是否必填"`
SortOrder int `json:"sort_order" bson:"sort_order" comment:"排序值"`
CreatedAt time.Time `json:"createdAt" bson:"createdAt" comment:"创建时间"`
UpdatedAt time.Time `json:"updatedAt" bson:"updatedAt" comment:"更新时间"`
}
func main() {
g := common.NewGen("91porn-server", "系统通用配置")
g.AppGenerate = false
g.Generate(SysConf{})
}