File tree Expand file tree Collapse file tree 4 files changed +405
-5
lines changed Expand file tree Collapse file tree 4 files changed +405
-5
lines changed Original file line number Diff line number Diff line change 1
1
package structs
2
2
3
3
// Group represents a group of repositories and subgroups in an organization
4
- // swagger:model
5
4
type Group struct {
6
5
ID int64 `json:"id"`
7
6
Owner * User `json:"owner"`
@@ -14,7 +13,7 @@ type Group struct {
14
13
SortOrder int `json:"sort_order"`
15
14
}
16
15
17
- // NewGroupOption - options for creating a new group in an organization
16
+ // NewGroupOption represents options for creating a new group in an organization
18
17
// swagger:model
19
18
type NewGroupOption struct {
20
19
// the name for the newly created group
@@ -27,7 +26,7 @@ type NewGroupOption struct {
27
26
Visibility VisibleType `json:"visibility"`
28
27
}
29
28
30
- // MoveGroupOption - options for changing a group or repo's parent and sort order
29
+ // MoveGroupOption represents options for changing a group or repo's parent and sort order
31
30
// swagger:model
32
31
type MoveGroupOption struct {
33
32
// the new parent group. can be 0 to specify no parent
@@ -38,7 +37,7 @@ type MoveGroupOption struct {
38
37
NewPos * int `json:"newPos,omitempty"`
39
38
}
40
39
41
- // EditGroupOption - options for editing a repository group
40
+ // EditGroupOption represents options for editing a repository group
42
41
// swagger:model
43
42
type EditGroupOption struct {
44
43
// the new name of the group
Original file line number Diff line number Diff line change @@ -222,4 +222,13 @@ type swaggerParameterBodies struct {
222
222
223
223
// in:body
224
224
LockIssueOption api.LockIssueOption
225
+
226
+ // in:body
227
+ NewGroupOption api.NewGroupOption
228
+
229
+ // in:body
230
+ EditGroupOption api.EditGroupOption
231
+
232
+ // in:body
233
+ MoveGroupOption api.MoveGroupOption
225
234
}
Original file line number Diff line number Diff line change
1
+ package swagger
2
+
3
+ import api "code.gitea.io/gitea/modules/structs"
4
+
5
+ // Group
6
+ // swagger:response Group
7
+ type swaggerResponseGroup struct {
8
+ // in:body
9
+ Body api.Group `json:"body"`
10
+ }
11
+
12
+ // GroupList
13
+ // swagger:response GroupList
14
+ type swaggerResponseGroupList struct {
15
+ // in:body
16
+ Body []api.Group `json:"body"`
17
+ }
You can’t perform that action at this time.
0 commit comments