[Update]
This commit is contained in:
parent
6db4919231
commit
d9162c2082
|
@ -74,6 +74,11 @@ func (s Service) CountAllUsers(query model.UserCountQuery) int64 {
|
||||||
return user.Count(query)
|
return user.Count(query)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// CountUsersByCondition ...
|
||||||
|
func (s Service) CountUsersByCondition(cond interface{}) int64 {
|
||||||
|
return user.CountByCondition(cond)
|
||||||
|
}
|
||||||
|
|
||||||
// ChangeAllUsersStatus ...
|
// ChangeAllUsersStatus ...
|
||||||
func (s Service) ChangeAllUsersStatus(roleID, status string) error {
|
func (s Service) ChangeAllUsersStatus(roleID, status string) error {
|
||||||
return user.ChangeAllUsersStatus(roleID, status)
|
return user.ChangeAllUsersStatus(roleID, status)
|
||||||
|
|
|
@ -279,6 +279,11 @@ func GetUsersByPermission(queryParams model.UserByPermissionQuery) (r model.User
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// CountByCondition ...
|
||||||
|
func CountByCondition(filter interface{}) int64 {
|
||||||
|
return countByCondition(context.Background(), filter)
|
||||||
|
}
|
||||||
|
|
||||||
// Count ...
|
// Count ...
|
||||||
func Count(queryParams model.UserCountQuery) int64 {
|
func Count(queryParams model.UserCountQuery) int64 {
|
||||||
var (
|
var (
|
||||||
|
|
Loading…
Reference in New Issue