fix: 订阅模式登录验证、永久会员类型区分、动态代码HTTP返回值修复、侧边栏滚动位置保持
- 修复订阅模式登录时错误检查余额的问题 - 区分无限余额和永久订阅两种永久会员类型 - 修复动态代码HTTP请求返回值在JS中无法正确访问的问题 - 添加侧边栏滚动位置保持功能 - 移除developer角色相关代码,统一使用admin - 添加缺失的i18n翻译key
This commit is contained in:
@@ -365,7 +365,7 @@ type Ticket struct {
|
||||
Title string `gorm:"size:200" json:"title"`
|
||||
Content string `gorm:"type:text" json:"content"`
|
||||
Category string `gorm:"size:50" json:"category"` // account, payment, technical, feature, other
|
||||
Type string `gorm:"size:50" json:"type"` // user, agent, developer
|
||||
Type string `gorm:"size:50" json:"type"` // user, agent, admin
|
||||
Status string `gorm:"size:20;default:open" json:"status"` // open, processing, resolved, closed
|
||||
Priority string `gorm:"size:20;default:normal" json:"priority"` // low, normal, high, urgent
|
||||
AssignedTo *uint `json:"assigned_to"` // 分配给的应用开发者ID或平台管理员ID
|
||||
@@ -464,7 +464,7 @@ type CloudVariable struct {
|
||||
OriginalName string `gorm:"size:255" json:"original_name"`
|
||||
FileMD5 string `gorm:"size:32" json:"file_md5"`
|
||||
Scope string `gorm:"size:20;default:app" json:"scope"`
|
||||
WritePermission string `gorm:"size:20;default:developer" json:"write_permission"`
|
||||
WritePermission string `gorm:"size:20;default:admin" json:"write_permission"`
|
||||
Description string `gorm:"size:255" json:"description"`
|
||||
Status string `gorm:"size:20;default:active" json:"status"`
|
||||
CreatedAt time.Time `json:"created_at"`
|
||||
@@ -555,7 +555,7 @@ type AgentApplication struct {
|
||||
ID uint `gorm:"primaryKey" json:"id"`
|
||||
AgentID uint `json:"agent_id"`
|
||||
ApplicationID uint `json:"application_id"`
|
||||
DeveloperID uint `json:"developer_id"`
|
||||
AdminID uint `json:"admin_id"`
|
||||
Discount float64 `gorm:"default:1.0" json:"discount"`
|
||||
Status string `gorm:"size:20;default:active" json:"status"`
|
||||
IsReceived bool `gorm:"default:false" json:"is_received"`
|
||||
@@ -565,7 +565,7 @@ type AgentApplication struct {
|
||||
|
||||
Agent User `gorm:"foreignKey:AgentID;references:ID" json:"agent,omitempty"`
|
||||
Application Application `gorm:"foreignKey:ApplicationID;references:ID" json:"application,omitempty"`
|
||||
Developer User `gorm:"foreignKey:DeveloperID;references:ID" json:"developer,omitempty"`
|
||||
Admin User `gorm:"foreignKey:AdminID;references:ID" json:"admin,omitempty"`
|
||||
CardTypes []AgentApplicationCardType `gorm:"foreignKey:AgentApplicationID" json:"card_types,omitempty"`
|
||||
}
|
||||
|
||||
@@ -586,7 +586,7 @@ type AgentApplicationCardType struct {
|
||||
type AgentApplicationRequest struct {
|
||||
ID uint `gorm:"primaryKey" json:"id"`
|
||||
AgentID uint `json:"agent_id"`
|
||||
DeveloperID uint `json:"developer_id"`
|
||||
AdminID uint `json:"admin_id"`
|
||||
ApplicationID uint `json:"application_id"`
|
||||
Type string `gorm:"size:20" json:"type"`
|
||||
Status string `gorm:"size:20;default:pending" json:"status"`
|
||||
@@ -597,7 +597,7 @@ type AgentApplicationRequest struct {
|
||||
DeletedAt gorm.DeletedAt `gorm:"index" json:"-"`
|
||||
|
||||
Agent User `gorm:"foreignKey:AgentID" json:"agent,omitempty"`
|
||||
Developer User `gorm:"foreignKey:DeveloperID" json:"developer,omitempty"`
|
||||
Admin User `gorm:"foreignKey:AdminID" json:"admin,omitempty"`
|
||||
Application Application `gorm:"foreignKey:ApplicationID" json:"application,omitempty"`
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user