Skip to content

Commit 0579d73

Browse files
committed
Added entities to create gists
1 parent 0d1368b commit 0579d73

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

pkg/gists/entities.go

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,13 @@ type File struct {
2020
Description string `json:"description"`
2121
Content string `json:"content"`
2222
}
23+
24+
type CreateFileRequest struct {
25+
Description string `json:"description"`
26+
IsPublic bool `json:"public"`
27+
Files map[string]CreateFile `json:"files"`
28+
}
29+
30+
type CreateFile struct {
31+
Content string `json:"content"`
32+
}

0 commit comments

Comments
 (0)