|
|
@ -25,11 +25,12 @@ type AppUserReq struct {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
type AppUserInfo struct {
|
|
|
|
type AppUserInfo struct {
|
|
|
|
Mobile string `json:"mobile"`
|
|
|
|
Mobile string `json:"mobile"`
|
|
|
|
Nickname string `json:"nickname"`
|
|
|
|
Nickname string `json:"nickname"`
|
|
|
|
Level uint `json:"level"`
|
|
|
|
Level uint `json:"level"`
|
|
|
|
IsOffline bool `json:"is_offline"`
|
|
|
|
IsOffline bool `json:"is_offline"`
|
|
|
|
CreatedAt formatime.Second `json:"created_at"`
|
|
|
|
CreatedAt formatime.Second `json:"created_at"`
|
|
|
|
|
|
|
|
IsEnterprise bool `json:"is_enterprise"`
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
func (o logic) AppUser(args AppUserReq) (res []AppUserInfo, total int64, err error) {
|
|
|
|
func (o logic) AppUser(args AppUserReq) (res []AppUserInfo, total int64, err error) {
|
|
|
@ -68,11 +69,12 @@ func (o logic) AppUser(args AppUserReq) (res []AppUserInfo, total int64, err err
|
|
|
|
query.Offset(args.GetStart()).Limit(args.GetLimit()).Find(&temp)
|
|
|
|
query.Offset(args.GetStart()).Limit(args.GetLimit()).Find(&temp)
|
|
|
|
for _, v := range temp {
|
|
|
|
for _, v := range temp {
|
|
|
|
res = append(res, AppUserInfo{
|
|
|
|
res = append(res, AppUserInfo{
|
|
|
|
Mobile: v.Mobile,
|
|
|
|
Mobile: v.Mobile,
|
|
|
|
Nickname: v.Nickname,
|
|
|
|
Nickname: v.Nickname,
|
|
|
|
Level: uint(v.Level),
|
|
|
|
Level: uint(v.Level),
|
|
|
|
IsOffline: v.IsOffline,
|
|
|
|
IsOffline: v.IsOffline,
|
|
|
|
CreatedAt: v.CreatedAt,
|
|
|
|
IsEnterprise: v.IsEnterprise,
|
|
|
|
|
|
|
|
CreatedAt: v.CreatedAt,
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return
|
|
|
|
return
|
|
|
|