|
@@ -5,6 +5,7 @@ import ( |
|
@@ -5,6 +5,7 @@ import ( |
5
|
"github.com/linmadan/egglib-go/utils/tool_funs"
|
5
|
"github.com/linmadan/egglib-go/utils/tool_funs"
|
6
|
"gitlab.fjmaimaimai.com/allied-creation/performance/pkg/application/factory"
|
6
|
"gitlab.fjmaimaimai.com/allied-creation/performance/pkg/application/factory"
|
7
|
"gitlab.fjmaimaimai.com/allied-creation/performance/pkg/application/user/query"
|
7
|
"gitlab.fjmaimaimai.com/allied-creation/performance/pkg/application/user/query"
|
|
|
8
|
+ "gitlab.fjmaimaimai.com/allied-creation/performance/pkg/domain"
|
8
|
)
|
9
|
)
|
9
|
|
10
|
|
10
|
type UserService struct{}
|
11
|
type UserService struct{}
|
|
@@ -26,6 +27,7 @@ func (service *UserService) ListUsers(listUserQuery *query.ListUserQuery) (inter |
|
@@ -26,6 +27,7 @@ func (service *UserService) ListUsers(listUserQuery *query.ListUserQuery) (inter |
26
|
count, list, err := userRepo.Find(map[string]interface{}{
|
27
|
count, list, err := userRepo.Find(map[string]interface{}{
|
27
|
"companyId": listUserQuery.CompanyId,
|
28
|
"companyId": listUserQuery.CompanyId,
|
28
|
"name": listUserQuery.Name,
|
29
|
"name": listUserQuery.Name,
|
|
|
30
|
+ "status": domain.UserStatusEnable,
|
29
|
})
|
31
|
})
|
30
|
if err != nil {
|
32
|
if err != nil {
|
31
|
return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, err.Error())
|
33
|
return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, err.Error())
|