feat: 徽章处理

This commit is contained in:
Blizzard
2026-02-14 15:35:12 +08:00
parent 4ffc41ea84
commit 3f50901ac6
10 changed files with 157 additions and 8 deletions
+6
View File
@@ -162,11 +162,17 @@ func (userService *UserService) MiniLogin(code string) (result *system.User, err
UserId: newUser.Id,
MiniOpenId: wxResp.Openid,
Nickname: newUser.Name,
LevelId: "9bc0cd78-070f-11f1-8e90-1a43c43655d1",
CurrentSunlight: 0,
TotalSunlight: 0,
PlantCount: 0,
CareCount: 0,
PostCount: 0,
WaterCount: 0,
FertilizeCount: 0,
RepotCount: 0,
PruneCount: 0,
PhotoCount: 0,
}
if err := tx.Create(&profile).Error; err != nil {
return err