初始化项目
This commit is contained in:
51
model/entity/application.go
Normal file
51
model/entity/application.go
Normal file
@@ -0,0 +1,51 @@
|
||||
package entity
|
||||
|
||||
import (
|
||||
"time"
|
||||
)
|
||||
|
||||
// Application 应用实体
|
||||
type Application struct {
|
||||
Id int64 `json:"id"` // 主键ID
|
||||
CreatedAt time.Time `json:"createdAt"` // 创建时间
|
||||
UpdatedAt time.Time `json:"updatedAt"` // 更新时间
|
||||
Creator string `json:"creator"` // 创建者
|
||||
Updater string `json:"updater"` // 更新者
|
||||
TenantId int64 `json:"tenantId"` // 租户ID
|
||||
IsDeleted bool `json:"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"` // 备注
|
||||
}
|
||||
Reference in New Issue
Block a user