正在显示
3 个修改的文件
包含
10 行增加
和
9 行删除
| @@ -183,10 +183,10 @@ type( | @@ -183,10 +183,10 @@ type( | ||
| 183 | } | 183 | } |
| 184 | Department struct { | 184 | Department struct { |
| 185 | Id int64 `json:"id,omitempty"` // 部门ID | 185 | Id int64 `json:"id,omitempty"` // 部门ID |
| 186 | - CompanyId int64 `json:"companyId,omitempty"` // 公司ID | ||
| 187 | - ParentId int64 `json:"parentId,omitempty"` // 父级ID | ||
| 188 | - Name string `json:"name,omitempty"` // 部门名称 | ||
| 189 | - UserIds []int64 `json:"userIds,omitempty"` // 部门下的用户 | 186 | + CompanyId int64 `json:"companyId"` // 公司ID |
| 187 | + ParentId int64 `json:"parentId"` // 父级ID | ||
| 188 | + Name string `json:"name"` // 部门名称 | ||
| 189 | + UserIds []int64 `json:"userIds"` // 部门下的用户 | ||
| 190 | } | 190 | } |
| 191 | UserSearchRequest{ | 191 | UserSearchRequest{ |
| 192 | Page int `json:"page,optional"` | 192 | Page int `json:"page,optional"` |
| @@ -57,6 +57,7 @@ func (l *SystemAddLogic) SystemAdd(req *types.DepartmentAddRequest) (resp *types | @@ -57,6 +57,7 @@ func (l *SystemAddLogic) SystemAdd(req *types.DepartmentAddRequest) (resp *types | ||
| 57 | if len(req.Ids) > 0 { | 57 | if len(req.Ids) > 0 { |
| 58 | _, users, err := l.svcCtx.UserRepository.Find(l.ctx, conn, domain.NewQueryOptions(). | 58 | _, users, err := l.svcCtx.UserRepository.Find(l.ctx, conn, domain.NewQueryOptions(). |
| 59 | WithOffsetLimit(1, len(req.Ids)).WithFindOnly(). | 59 | WithOffsetLimit(1, len(req.Ids)).WithFindOnly(). |
| 60 | + WithKV("ids", req.Ids). | ||
| 60 | WithKV("companyId", userToken.CompanyId)) | 61 | WithKV("companyId", userToken.CompanyId)) |
| 61 | if err != nil { | 62 | if err != nil { |
| 62 | return err | 63 | return err |
| @@ -519,11 +519,11 @@ type Account struct { | @@ -519,11 +519,11 @@ type Account struct { | ||
| 519 | } | 519 | } |
| 520 | 520 | ||
| 521 | type Department struct { | 521 | type Department struct { |
| 522 | - Id int64 `json:"id,omitempty"` // 部门ID | ||
| 523 | - CompanyId int64 `json:"companyId,omitempty"` // 公司ID | ||
| 524 | - ParentId int64 `json:"parentId,omitempty"` // 父级ID | ||
| 525 | - Name string `json:"name,omitempty"` // 部门名称 | ||
| 526 | - UserIds []int64 `json:"userIds,omitempty"` // 部门下的用户 | 522 | + Id int64 `json:"id,omitempty"` // 部门ID |
| 523 | + CompanyId int64 `json:"companyId"` // 公司ID | ||
| 524 | + ParentId int64 `json:"parentId"` // 父级ID | ||
| 525 | + Name string `json:"name"` // 部门名称 | ||
| 526 | + UserIds []int64 `json:"userIds"` // 部门下的用户 | ||
| 527 | } | 527 | } |
| 528 | 528 | ||
| 529 | type UserSearchRequest struct { | 529 | type UserSearchRequest struct { |
-
请 注册 或 登录 后发表评论