Files
cid/model/entity/application.go
2025-12-18 17:51:33 +08:00

48 lines
1.6 KiB
Go
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
package entity
import (
"gitee.com/red-future---jilin-g/common/do"
)
const ApplicationCollection = "application"
// Application 应用实体
type Application struct {
do.MongoBaseDO `bson:",inline" json:",inline"` // 嵌入基础字段Id, Creator, CreatedAt, Updater, UpdatedAt, TenantId, IsDeleted
// 应用信息
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"` // 备注
}