feat: sale add create user

This commit is contained in:
zzw
2026-09-02 09:47:34 +08:00
parent ad4bc7de85
commit 540f74f9b7
39 changed files with 2023 additions and 282 deletions
@@ -63,8 +63,9 @@ func (l *UserItemsLogic) UserItems(in *user.UserItemsReq) (*user.Response, error
}
}
var list []dao.UserListRow
result, err := model.UserModel{}.Init().Page(params, &list)
var list []dao.UserRow
userModel := model.UserModel{}.Init()
result, err := userModel.Page(params, &list)
if err != nil {
l.Errorf("user items: %v", err)
return failResponse(utils.Fail), nil
@@ -79,14 +80,12 @@ func (l *UserItemsLogic) UserItems(in *user.UserItemsReq) (*user.Response, error
}
items = append(items, dao.UserListItem{
Id: row.Id,
Username: row.Username,
Nickname: row.Nickname,
Name: row.Name,
HeadPortrait: headPortrait,
Mobile: mobile,
OriginMobile: row.Mobile,
OnTrialNum: row.OnTrialNum,
Gender: row.Gender,
Birthday: row.Birthday,
Birthday: row.Birthday.DateString(),
Status: row.Status,
CreatedAt: row.CreatedAt,
UpdatedAt: row.UpdatedAt,