add action
This commit is contained in:
parent
0b0a22a09c
commit
4ac79fdbdb
|
@ -69,6 +69,11 @@ func (s Service) GetUsersByPermission(query model.UserByPermissionQuery) model.U
|
||||||
return user.GetUsersByPermission(query)
|
return user.GetUsersByPermission(query)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// CountByCondition ...
|
||||||
|
func (s Service) CountByCondition(filter interface{}) int64 {
|
||||||
|
return user.CountByCondition(filter)
|
||||||
|
}
|
||||||
|
|
||||||
// CountAllUsers ...
|
// CountAllUsers ...
|
||||||
func (s Service) CountAllUsers(query model.UserCountQuery) int64 {
|
func (s Service) CountAllUsers(query model.UserCountQuery) int64 {
|
||||||
return user.Count(query)
|
return user.Count(query)
|
||||||
|
|
|
@ -278,6 +278,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