...
|
...
|
@@ -41,9 +41,9 @@ func (l *SystemGetLogic) SystemGet(req *types.DepartmentGetRequest) (resp *types |
|
|
if err != nil {
|
|
|
return nil, err
|
|
|
}
|
|
|
ids := make([]int64, 0)
|
|
|
var userIds = make([]int64, 0)
|
|
|
for i := range users {
|
|
|
ids = append(ids, users[i].Id)
|
|
|
userIds = append(userIds, users[i].Id)
|
|
|
}
|
|
|
resp = &types.DepartmentGetResponse{
|
|
|
Department: types.Department{
|
...
|
...
|
@@ -51,7 +51,7 @@ func (l *SystemGetLogic) SystemGet(req *types.DepartmentGetRequest) (resp *types |
|
|
CompanyId: department.CompanyId,
|
|
|
ParentId: department.ParentId,
|
|
|
Name: department.Name,
|
|
|
UserIds: ids,
|
|
|
UserIds: userIds,
|
|
|
},
|
|
|
}
|
|
|
return resp, nil
|
...
|
...
|
|