-
Notifications
You must be signed in to change notification settings - Fork 0
/
role_vo.go
61 lines (50 loc) · 1.31 KB
/
role_vo.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
package rolevo
import (
"github.com/star-table/polaris-backend/common/model/bo"
"github.com/star-table/polaris-backend/common/model/vo"
)
type GetOrgRoleListReqVo struct {
OrgId int64 `json:"orgId"`
}
type GetOrgRoleListRespVo struct {
vo.Err
Data []*vo.Role `json:"data"`
}
type CreateOrgReqVo struct {
OrgId int64 `json:"orgId"`
UserId int64 `json:"userId"`
Input vo.CreateRoleReq `json:"input"`
}
type DelRoleReqVo struct {
OrgId int64 `json:"orgId"`
UserId int64 `json:"userId"`
Input vo.DelRoleReq `json:"input"`
}
type UpdateRoleReqVo struct {
OrgId int64 `json:"orgId"`
UserId int64 `json:"userId"`
Input vo.UpdateRoleReq `json:"input"`
}
type GetUserAdminFlagReqVo struct {
OrgId int64 `json:"orgId"`
UserId int64 `json:"userId"`
}
type GetUserAdminFlagRespVo struct {
Data *bo.UserAdminFlagBo `json:"data"`
vo.Err
}
type ClearUserRoleReqVo struct {
OrgId int64 `json:"orgId"`
UserIds []int64 `json:"userIds"`
ProjectId int64 `json:"projectId"`
}
type GetProjectRoleListReqVo struct {
OrgId int64 `json:"orgId"`
ProjectId int64 `json:"projectId"`
}
type UpdateOrgOwnerReqVo struct {
OrgId int64 `json:"orgId"`
UserId int64 `json:"userId"`
OldOwnerId int64 `json:"oldOwnerId"`
NewOwnerId int64 `json:"newOwnerId"`
}