更新代码

This commit is contained in:
2025-11-11 16:34:49 +08:00
parent 8b8b0c54a1
commit 65b281fe35
21 changed files with 3536 additions and 1414 deletions
-7
View File
@@ -2,8 +2,6 @@ package models
import (
"time"
"github.com/beego/beego/v2/client/orm"
)
// DictType 字典类型模型
@@ -51,8 +49,3 @@ type DictItem struct {
func (d *DictItem) TableName() string {
return "sys_dict_item"
}
func init() {
orm.RegisterModel(new(DictType))
orm.RegisterModel(new(DictItem))
}
+1 -1
View File
@@ -14,7 +14,7 @@ type Tenant struct {
Owner string `orm:"size(50)" json:"owner"`
Phone string `orm:"size(20);null" json:"phone"`
Email string `orm:"size(100);null" json:"email"`
Status string `orm:"size(20);default(enabled)" json:"status"`
Status int `orm:"default(1)" json:"status"`
AuditStatus string `orm:"size(20);default(pending)" json:"audit_status"`
AuditComment string `orm:"type(text);null" json:"audit_comment"`
AuditBy string `orm:"size(50);null" json:"audit_by"`