feat:完善项目

This commit is contained in:
henry
2021-11-12 11:54:39 +08:00
parent 413e0ea39c
commit a8259f53a2
9 changed files with 277 additions and 21 deletions

View 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{}
}

View File

@ -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
}