2025-12-06 15:24:30 +08:00
|
|
|
|
package entity
|
|
|
|
|
|
|
|
|
|
|
|
import (
|
2025-12-18 17:51:33 +08:00
|
|
|
|
"gitee.com/red-future---jilin-g/common/do"
|
2025-12-06 15:24:30 +08:00
|
|
|
|
)
|
|
|
|
|
|
|
2025-12-18 17:51:33 +08:00
|
|
|
|
const ApplicationCollection = "application"
|
|
|
|
|
|
|
2025-12-06 15:24:30 +08:00
|
|
|
|
// Application 应用实体
|
|
|
|
|
|
type Application struct {
|
2025-12-18 17:51:33 +08:00
|
|
|
|
do.MongoBaseDO `bson:",inline" json:",inline"` // 嵌入基础字段:Id, Creator, CreatedAt, Updater, UpdatedAt, TenantId, IsDeleted
|
2025-12-06 15:24:30 +08:00
|
|
|
|
|
|
|
|
|
|
// 应用信息
|
|
|
|
|
|
Name string `json:"name"` // 应用名称
|
|
|
|
|
|
Code string `json:"code"` // 应用编码
|
|
|
|
|
|
Description string `json:"description"` // 应用描述
|
|
|
|
|
|
Icon string `json:"icon"` // 应用图标
|
|
|
|
|
|
|
|
|
|
|
|
// 平台信息
|
|
|
|
|
|
Platform string `json:"platform"` // 平台:web, h5, android, ios
|
|
|
|
|
|
PackageName string `json:"packageName"` // 包名(Android)/Bundle ID(iOS)
|
|
|
|
|
|
AppStoreURL string `json:"appStoreUrl"` // 应用商店链接
|
|
|
|
|
|
|
|
|
|
|
|
// 配置信息
|
|
|
|
|
|
Categories []string `json:"categories"` // 应用分类
|
|
|
|
|
|
Tags []string `json:"tags"` // 应用标签
|
|
|
|
|
|
Config string `json:"config"` // 应用配置(JSON格式)
|
|
|
|
|
|
AdTypes []string `json:"adTypes"` // 支持的广告类型
|
|
|
|
|
|
|
|
|
|
|
|
// 状态信息
|
|
|
|
|
|
Status string `json:"status"` // 状态:active, inactive, audit
|
|
|
|
|
|
AuditStatus string `json:"auditStatus"` // 审核状态
|
|
|
|
|
|
AuditReason string `json:"auditReason"` // 审核原因
|
|
|
|
|
|
|
|
|
|
|
|
// 统计信息
|
|
|
|
|
|
DailyRequests int64 `json:"dailyRequests"` // 日请求量
|
|
|
|
|
|
MonthlyRequests int64 `json:"monthlyRequests"` // 月请求量
|
|
|
|
|
|
|
|
|
|
|
|
// API密钥
|
|
|
|
|
|
AppKey string `json:"appKey"` // 应用密钥
|
|
|
|
|
|
AppSecret string `json:"appSecret"` // 应用密钥
|
|
|
|
|
|
|
|
|
|
|
|
// 回调信息
|
|
|
|
|
|
CallbackURL string `json:"callbackUrl"` // 回调URL
|
|
|
|
|
|
|
|
|
|
|
|
Remark string `json:"remark"` // 备注
|
|
|
|
|
|
}
|