-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathrmodel.go
49 lines (44 loc) · 1.06 KB
/
rmodel.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
package yuqueg
//CreateGroup struct for create group
type CreateGroup struct {
Name string `name`
Login string `login`
Description string `description`
}
//CreateRepo struct for create repo
type CreateRepo struct {
Name string `name`
Slug string `slug`
Description string `description`
// 0 私密, 1 内网公开, 2 全网公开
Public int `public`
// ‘Book’ 文库, ‘Design’ 画板, 请注意大小写
Type string `type`
}
//UpdateRepo struct for update repo
type UpdateRepo struct {
Name string `name`
Slug string `slug`
Description string `description`
// 0 私密, 1 内网公开, 2 全网公开
Public int `public`
Toc string `toc`
}
//GroupAddUser struct for update repo
type GroupAddUser struct {
Role int `role`
}
//DocGet struct for get doc
type DocGet struct {
Raw int `raw`
}
//DocCreate struct for create doc
type DocCreate struct {
Title string `title`
Slug string `slug`
Public int `public`
// markdown or lake, default is markdown
Format string `format`
//max 5Mb
Body string `body`
}