feat:完善项目
This commit is contained in:
19
app/common/model/manage_notice.go
Normal file
19
app/common/model/manage_notice.go
Normal file
@ -0,0 +1,19 @@
|
||||
package model
|
||||
|
||||
// ManageNotice 公告管理数据模型
|
||||
type ManageNotice struct {
|
||||
Model
|
||||
ModelTenant
|
||||
Title string `gorm:"column:title;type:varchar(100);default:null;comment:标题" json:"title"`
|
||||
Content string `gorm:"column:content;type:text;default:null;comment:内容" json:"content"`
|
||||
ModelDeleted
|
||||
ModelAt
|
||||
}
|
||||
|
||||
func (m *ManageNotice) TableName() string {
|
||||
return "manage_notice"
|
||||
}
|
||||
|
||||
func NewManageNotice() *ManageNotice {
|
||||
return &ManageNotice{}
|
||||
}
|
@ -20,8 +20,8 @@ type SysUser struct {
|
||||
Password string `gorm:"column:password;type:varchar(100);default:null;comment:密码" json:"-"`
|
||||
Salt string `gorm:"column:salt;type:varchar(10);default:null;comment:盐值" json:"-"`
|
||||
IsAdmin SysUserAdministrator `gorm:"column:is_admin;type:tinyint(1);default:0;comment:管理员(0:普通用户,1:管理员)" json:"-"`
|
||||
Remark string `gorm:"column:remark;type:varchar(255);default:null;comment:备注" json:"-"`
|
||||
Status SysUserStatus `gorm:"column:status;type:tinyint(1);default:1;comment:账号状态" json:"-"`
|
||||
Remark string `gorm:"column:remark;type:varchar(255);default:null;comment:备注" json:"remark"`
|
||||
Status SysUserStatus `gorm:"column:status;type:tinyint(1);default:1;comment:账号状态" json:"status"`
|
||||
ModelDeleted
|
||||
ModelAt
|
||||
}
|
||||
|
Reference in New Issue
Block a user