refactor🎨:调整管理员和字典相关结构体字段顺序

This commit is contained in:
zhangwenjian committed 2021-06-17 21:10:12 +08:00
1 parent a0b7d9969a
commit 185df737c8
4 files changed
+6 -20

No files matched your search

+2 -2
View File
@@ -7,8 +7,6 @@ import (
)
type SysUser struct {
models.ControlBy
models.ModelTime
UserId int `gorm:"primaryKey;autoIncrement;comment:编码" json:"userId"`
Username string `json:"username" gorm:"size:64;comment:用户名"`
Password string `json:"-" gorm:"size:128;comment:密码"`
@@ -27,6 +25,8 @@ type SysUser struct {
PostIds []int `json:"postIds" gorm:"-"`
RoleIds []int `json:"roleIds" gorm:"-"`
Dept *SysDept `json:"dept"`
models.ControlBy
models.ModelTime
}
func (SysUser) TableName() string {