From 2387b4051c095af26f158500596d21167955f971 Mon Sep 17 00:00:00 2001
From: wangpengfei <274878379@qq.com>
Date: 星期二, 15 八月 2023 17:39:17 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'
---
source/user.go | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/source/user.go b/source/user.go
index 6a901e0..b8e334e 100644
--- a/source/user.go
+++ b/source/user.go
@@ -33,13 +33,13 @@
adminPassword := encrypt.BcryptHash("123456")
entities := []*model.User{
{
- ID: fmt.Sprintf("u%v", snowflake.GenerateId()),
+ UUID: fmt.Sprintf("u%v", snowflake.GenerateId()),
Username: "admin",
Password: adminPassword,
NickName: "admin",
UserType: constvar.UserTypeSuper,
- ParentId: "basic", // 瓒呯骇绠$悊鍛樿处鎴风殑鐖朵翰涓虹┖瀛楃涓诧紝鎴栬�呰捣涓悕瀛�
- Enable: true,
+ //ParentId: "basic", // 瓒呯骇绠$悊鍛樿处鎴风殑鐖朵翰涓虹┖瀛楃涓诧紝鎴栬�呰捣涓悕瀛�
+ //Enable: true,
},
}
if err = model.NewUserSearch(nil).CreateBatch(entities); err != nil {
--
Gitblit v1.8.0