Files
huangguo_server/models/v/moduleconfmod/app.go
T
rootandClaude Opus 5 8679200f41 Initial commit
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-15 13:57:10 +08:00

40 lines
2.7 KiB
Go

package moduleconfmod
import (
"time"
"go.mongodb.org/mongo-driver/bson/primitive"
)
type AppModuleConf struct {
HomePage []APPModuleConf `json:"homePage" bson:"homePage"` // 首页
Community []APPModuleConf `json:"community" bson:"community"` // 社区
//PrivateCircle []APPModuleConf `json:"privateCircle" bson:"privateCircle"` // 私密圈
DeepWeb []APPModuleConf `json:"deepWeb" bson:"deepWeb"` // 暗网
Novel []APPModuleConf `json:"novel" bson:"novel"` // 小说
Pics []APPModuleConf `json:"pics" bson:"pics"` // 图集
NakedChat []APPModuleConf `json:"nakedChat" bson:"nakedChat"` // 裸聊模块
ShortPage []APPModuleConf `json:"shortPage" bson:"shortPage"` // 短视频模块
AiPlaza []APPModuleConf `json:"aiPlaza" bson:"aiPlaza"` // AI广场(弃用2026-1)
DramaPage []APPModuleConf `json:"dramaPage" bson:"dramaPage"` // 短剧频道
}
type APPModuleConf struct {
ID primitive.ObjectID `json:"id" bson:"_id,omitempty"` // 模块ID
ModuleName string `json:"moduleName" bson:"moduleName" binding:"required"` // 模块名称
Cover string `json:"cover" bson:"cover"` // 封面
Type int `json:"type" bson:"type"` // 模块类型
ShowType int `json:"showType" bson:"showType"` // 模块展示类型
ShowJG bool `json:"showJG" bson:"showJG"` // 是否展示金刚区
HaiJiaoStyle HaiJiaoStyle `json:"haiJiaoStyle"` // 跟海角样式关联的展示样式
AiPlazaStyle AiPlazaStyle `json:"aiPlazaStyle" bson:"aiPlazaStyle"` // ai广场样式(弃用2026-1)
DefaultTagId string `json:"defaultTagId" bson:"defaultTagId"` // 社区默认展示标签
PureVersion bool `json:"pureVersion" bson:"pureVersion"` // 纯净模式无广告
OnlineAt *time.Time `json:"onlineAt,omitempty" bson:"onlineAt,omitempty"`
OfflineAt *time.Time `json:"offlineAt,omitempty" bson:"offlineAt,omitempty"`
ExcludeLatest bool `json:"excludeLatest" bson:"excludeLatest"`
ExcludeRecommend bool `json:"excludeRecommend" bson:"excludeRecommend"`
ExcludeSearch bool `json:"excludeSearch" bson:"excludeSearch"`
SearchOnlyWhenInactive bool `json:"searchOnlyWhenInactive" bson:"searchOnlyWhenInactive"`
}