diff --git a/business/model/dao/dao_user.go b/business/model/dao/dao_user.go index 62a601d07..74868cdb3 100644 --- a/business/model/dao/dao_user.go +++ b/business/model/dao/dao_user.go @@ -58,13 +58,7 @@ func GetUserByIDWithMembers(db *DaoDB, fieldName, fieldValue string) (getSelfInf return getSelfInfoResult, err } -type GetUsersResult struct { - 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) { +func GetUsers(db *DaoDB, userType int, keyword string, userIDs, userID2s, mobiles []string, offset, pageSize int) (userList []*model.User, totalCount int, err error) { offset = jxutils.FormalizePageOffset(offset) pageSize = jxutils.FormalizePageSize(pageSize) if userType == 0 { diff --git a/business/model/user.go b/business/model/user.go index 65583d4d2..d1482345f 100644 --- a/business/model/user.go +++ b/business/model/user.go @@ -62,6 +62,8 @@ type User struct { // Profit int `json:"profit"` // ProfitSum int `json:"profitSum"` // Arrears int `json:"arrears"` + AcceptOrderCount int `orm:"-" json:"acceptOrderCount"` + FinishedOrderCount int `orm:"-" json:"finishedOrderCount"` } func (*User) TableUnique() [][]string {