-
-
Notifications
You must be signed in to change notification settings - Fork 7
/
system_group_req.go
111 lines (95 loc) · 3.9 KB
/
system_group_req.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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
package request
// GroupListReq 获取资源列表结构体
type GroupListReq struct {
GroupName string `json:"groupName" form:"groupName"`
Remark string `json:"remark" form:"remark"`
PageNum int `json:"pageNum" form:"pageNum"`
PageSize int `json:"pageSize" form:"pageSize"`
}
// GroupListAllReq 获取资源列表结构体,不分页
type GroupListAllReq struct {
GroupName string `json:"groupName" form:"groupName"`
GroupType string `json:"groupType" form:"groupType"`
Remark string `json:"remark" form:"remark"`
Source string `json:"source" form:"source"`
SourceDeptId string `json:"sourceDeptId"`
SourceDeptParentId string `json:"SourceDeptParentId"`
}
// GroupAddReq 添加资源结构体
type GroupAddReq struct {
GroupName string `json:"groupName" validate:"required,min=1,max=20"`
//父级Id 大于等于0 必填
ParentId uint `json:"parentId" validate:"omitempty,min=0"`
Remark string `json:"remark" validate:"min=0,max=100"` // 分组的中文描述
}
// DingTalkGroupAddReq 添加钉钉资源结构体
type DingGroupAddReq struct {
GroupType string `json:"groupType" validate:"required,min=1,max=20"`
GroupName string `json:"groupName" validate:"required,min=1,max=20"`
//父级Id 大于等于0 必填
ParentId uint `json:"parentId" validate:"omitempty,min=0"`
Remark string `json:"remark" validate:"min=0,max=100"` // 分组的中文描述
SourceDeptId string `json:"sourceDeptId"`
Source string `json:"source"`
SourceDeptParentId string `json:"SourceDeptParentId"`
SourceUserNum int `json:"sourceUserNum"`
}
// WeComGroupAddReq 添加企业微信资源结构体
type WeComGroupAddReq struct {
GroupType string `json:"groupType" validate:"required,min=1,max=20"`
GroupName string `json:"groupName" validate:"required,min=1,max=20"`
//父级Id 大于等于0 必填
ParentId uint `json:"parentId" validate:"omitempty,min=0"`
Remark string `json:"remark" validate:"min=0,max=100"` // 分组的中文描述
SourceDeptId string `json:"sourceDeptId"`
Source string `json:"source"`
SourceDeptParentId string `json:"SourceDeptParentId"`
SourceUserNum int `json:"sourceUserNum"`
}
// GroupUpdateReq 更新资源结构体
type GroupUpdateReq struct {
ID uint `json:"id" form:"id" validate:"required"`
GroupName string `json:"groupName" validate:"required,min=1,max=20"`
Remark string `json:"remark" validate:"min=0,max=100"` // 分组的中文描述
}
// GroupDeleteReq 删除资源结构体
type GroupDeleteReq struct {
GroupIds []uint `json:"groupIds" validate:"required"`
}
// GroupGetTreeReq 获取资源树结构体
type GroupGetTreeReq struct {
GroupName string `json:"groupName" form:"groupName"`
Remark string `json:"remark" form:"remark"`
PageNum int `json:"pageNum" form:"pageNum"`
PageSize int `json:"pageSize" form:"pageSize"`
}
type GroupAddUserReq struct {
GroupID uint `json:"groupId" validate:"required"`
UserIds []uint `json:"userIds" validate:"required"`
}
type GroupRemoveUserReq struct {
GroupID uint `json:"groupId" validate:"required"`
UserIds []uint `json:"userIds" validate:"required"`
}
// UserInGroupReq 在分组内的用户
type UserInGroupReq struct {
GroupID uint `json:"groupId" form:"groupId" validate:"required"`
Nickname string `json:"nickname" form:"nickname"`
}
// UserNoInGroupReq 不在分组内的用户
type UserNoInGroupReq struct {
GroupID uint `json:"groupId" form:"groupId" validate:"required"`
Nickname string `json:"nickname" form:"nickname"`
}
// SyncDingTalkDeptsReq 同步钉钉部门信息
type SyncDingTalkDeptsReq struct {
}
// SyncWeComDeptsReq 同步企业微信部门信息
type SyncWeComDeptsReq struct {
}
// SyncFeiShuDeptsReq 同步飞书部门信息
type SyncFeiShuDeptsReq struct {
}
// SyncOpenLdapDeptsReq 同步原ldap部门信息
type SyncOpenLdapDeptsReq struct {
}