修改用户管理编辑模式,增加手机号邮箱操作

This commit is contained in:
piexlmax
2022-02-08 17:15:25 +08:00
parent a9dec9fe4d
commit 8423c124d7
3 changed files with 98 additions and 91 deletions

View File

@@ -18,8 +18,8 @@ func (u *user) TableName() string {
func (u *user) Initialize() error {
entities := []system.SysUser{
{UUID: uuid.NewV4(), Username: "admin", Password: "e10adc3949ba59abbe56e057f20f883e", NickName: "超级管理员", HeaderImg: "https://qmplusimg.henrongyi.top/gva_header.jpg", AuthorityId: "888"},
{UUID: uuid.NewV4(), Username: "a303176530", Password: "3ec063004a6f31642261936a379fde3d", NickName: "QMPlusUser", HeaderImg: "https:///qmplusimg.henrongyi.top/1572075907logo.png", AuthorityId: "9528"},
{UUID: uuid.NewV4(), Username: "admin", Password: "e10adc3949ba59abbe56e057f20f883e", NickName: "超级管理员", HeaderImg: "https://qmplusimg.henrongyi.top/gva_header.jpg", AuthorityId: "888", Phone: "17611111111", Email: "333333333@qq.com"},
{UUID: uuid.NewV4(), Username: "a303176530", Password: "3ec063004a6f31642261936a379fde3d", NickName: "QMPlusUser", HeaderImg: "https:///qmplusimg.henrongyi.top/1572075907logo.png", AuthorityId: "9528", Phone: "17611111111", Email: "333333333@qq.com"},
}
if err := global.GVA_DB.Create(&entities).Error; err != nil {
return errors.Wrap(err, u.TableName()+"表数据初始化失败!")