This commit is contained in:
苏尹岚
2020-11-10 09:43:55 +08:00
parent 93a7689a94
commit e1875b17da
2 changed files with 3 additions and 7 deletions

View File

@@ -58,13 +58,7 @@ func GetUserByIDWithMembers(db *DaoDB, fieldName, fieldValue string) (getSelfInf
return getSelfInfoResult, err return getSelfInfoResult, err
} }
type GetUsersResult struct { func GetUsers(db *DaoDB, userType int, keyword string, userIDs, userID2s, mobiles []string, offset, pageSize int) (userList []*model.User, totalCount int, err error) {
model.User
AcceptOrderCount int `json:"acceptOrderCount"`
FinishedOrderCount int `json:"finishedOrderCount"`
}
func GetUsers(db *DaoDB, userType int, keyword string, userIDs, userID2s, mobiles []string, offset, pageSize int) (userList []*GetUsersResult, totalCount int, err error) {
offset = jxutils.FormalizePageOffset(offset) offset = jxutils.FormalizePageOffset(offset)
pageSize = jxutils.FormalizePageSize(pageSize) pageSize = jxutils.FormalizePageSize(pageSize)
if userType == 0 { if userType == 0 {

View File

@@ -62,6 +62,8 @@ type User struct {
// Profit int `json:"profit"` // Profit int `json:"profit"`
// ProfitSum int `json:"profitSum"` // ProfitSum int `json:"profitSum"`
// Arrears int `json:"arrears"` // Arrears int `json:"arrears"`
AcceptOrderCount int `orm:"-" json:"acceptOrderCount"`
FinishedOrderCount int `orm:"-" json:"finishedOrderCount"`
} }
func (*User) TableUnique() [][]string { func (*User) TableUnique() [][]string {