1
1
mirror of https://github.com/go-gitea/gitea synced 2025-12-07 13:28:25 +00:00

feat: add pagination support and update swagger documentation

This commit is contained in:
eyad-hussein
2024-08-01 16:02:36 +03:00
parent f3f69085d9
commit 42c54d0396
8 changed files with 157 additions and 76 deletions
+6 -6
View File
@@ -12,15 +12,15 @@ type Column struct {
// EditProjectColumnOption options for editing a project column
type EditProjectColumnOption struct {
Title string `binding:"MaxSize(100)"`
Sorting int8
Color string `binding:"MaxSize(7)"`
Title string `json:"title" binding:"MaxSize(100)"`
Sorting int8 `json:"sorting"`
Color string `json:"color" binding:"MaxSize(7)"`
}
// CreateProjectColumnOption options for creating a project column
type CreateProjectColumnOption struct {
// required:true
Title string `binding:"Required;MaxSize(100)"`
Sorting int8
Color string `binding:"MaxSize(7)"`
Title string `json:"title" binding:"Required;MaxSize(100)"`
Sorting int8 `json:"sorting"`
Color string `json:"color" binding:"MaxSize(7)"`
}