Initial commit

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
fish03
2026-09-23 14:43:16 +07:00
co-authored by Claude Opus 5.5
commit bef9f8b4ed
663 changed files with 81305 additions and 0 deletions
+25
View File
@@ -0,0 +1,25 @@
package pubdef
type Page struct {
PageNum int64 `form:"pageNum" json:"pageNum,omitempty"`
PageSize int64 `form:"pageSize" json:"pageSize,omitempty"`
}
const (
DateISO = "2006-01-02"
TimeISO = "2006-01-02 15:04:05"
AppId = 1038
)
// TrackerAppId 数据上报 Web SDK 的业务 appId。
func TrackerAppId() string {
return "JHA-1043"
}
const PageSize int64 = 40
type SeoValue struct {
Title string `json:"title" bson:"webTitle"` // 网站SEO标题
Keyworld []string `json:"keyworld" bson:"webKeyworld"` // 网站SEO关键字
Description string `json:"description" bson:"webDescription"` // 网站SEO描述
}
+24
View File
@@ -0,0 +1,24 @@
package pubdef
type UserStatus int32
const (
UserStatusNormal UserStatus = 0 // 正常
UserStatusDisable UserStatus = 1 // 封禁
UserStatusSlient UserStatus = 2 // 禁言
)
var UserStatusMap = map[UserStatus]string{
UserStatusNormal: "正常",
UserStatusDisable: "封禁",
UserStatusSlient: "禁止登陆",
}
type LoginType int32
const (
LoginTypeDevice LoginType = 0 + iota // 设备登陆
LoginTypeMobile // 手机登陆
LoginTypeQrCode // 二维码登陆
LoginTypeAccount // 账号登陆
)