Merge branch 'dev' of http://gitlab.fjmaimaimai.com/allied-creation/sumifcc-discuss into dev
正在显示
1 个修改的文件
包含
3 行增加
和
3 行删除
@@ -41,9 +41,9 @@ func (l *SystemGetLogic) SystemGet(req *types.DepartmentGetRequest) (resp *types | @@ -41,9 +41,9 @@ func (l *SystemGetLogic) SystemGet(req *types.DepartmentGetRequest) (resp *types | ||
41 | if err != nil { | 41 | if err != nil { |
42 | return nil, err | 42 | return nil, err |
43 | } | 43 | } |
44 | - ids := make([]int64, 0) | 44 | + var userIds = make([]int64, 0) |
45 | for i := range users { | 45 | for i := range users { |
46 | - ids = append(ids, users[i].Id) | 46 | + userIds = append(userIds, users[i].Id) |
47 | } | 47 | } |
48 | resp = &types.DepartmentGetResponse{ | 48 | resp = &types.DepartmentGetResponse{ |
49 | Department: types.Department{ | 49 | Department: types.Department{ |
@@ -51,7 +51,7 @@ func (l *SystemGetLogic) SystemGet(req *types.DepartmentGetRequest) (resp *types | @@ -51,7 +51,7 @@ func (l *SystemGetLogic) SystemGet(req *types.DepartmentGetRequest) (resp *types | ||
51 | CompanyId: department.CompanyId, | 51 | CompanyId: department.CompanyId, |
52 | ParentId: department.ParentId, | 52 | ParentId: department.ParentId, |
53 | Name: department.Name, | 53 | Name: department.Name, |
54 | - UserIds: ids, | 54 | + UserIds: userIds, |
55 | }, | 55 | }, |
56 | } | 56 | } |
57 | return resp, nil | 57 | return resp, nil |
-
请 注册 或 登录 后发表评论