新增几大中心功能

This commit is contained in:
Administrator
2026-04-23 15:29:07 +08:00
parent 5c2a146a44
commit c6354ee065
123 changed files with 13074 additions and 229 deletions

View File

@@ -2,6 +2,7 @@ package system
import (
"context"
sysModel "git.echol.cn/loser/Go-Web-Template/server/model/system"
"git.echol.cn/loser/Go-Web-Template/server/service/system"
"git.echol.cn/loser/Go-Web-Template/server/utils"
@@ -59,21 +60,21 @@ func (i *initUser) InitializeData(ctx context.Context) (next context.Context, er
UUID: uuid.New(),
Username: "admin",
Password: adminPassword,
NickName: "Mr.奇淼",
HeaderImg: "https://qmplusimg.henrongyi.top/gva_header.jpg",
NickName: "超级管理员",
HeaderImg: "https://gravatar.com/avatar/00000000000000000000000000000000?d=mp&f=y",
AuthorityId: 888,
Phone: "17611111111",
Email: "333333333@qq.com",
Phone: "13888888888",
Email: "admin@example.com",
},
{
UUID: uuid.New(),
Username: "a303176530",
Username: "JohnDoe",
Password: password,
NickName: "用户1",
HeaderImg: "https://qmplusimg.henrongyi.top/1572075907logo.png",
NickName: "测试用户",
HeaderImg: "https://gravatar.com/avatar/00000000000000000000000000000000?d=mp&f=y",
AuthorityId: 9528,
Phone: "17611111111",
Email: "333333333@qq.com"},
Phone: "13999999999",
Email: "test@example.com"},
}
if err = db.Create(&entities).Error; err != nil {
return ctx, errors.Wrap(err, sysModel.SysUser{}.TableName()+"表数据初始化失败!")