2024-07-10 16:12:59 +03:00
|
|
|
// Copyright 2015 The Gogs Authors. All rights reserved.
|
|
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
|
|
|
|
package structs
|
|
|
|
|
|
|
|
// Column represents a project column
|
|
|
|
type Column struct {
|
|
|
|
ID int64 `json:"id"`
|
|
|
|
Title string `json:"title"`
|
|
|
|
Color string `json:"color"`
|
|
|
|
}
|
|
|
|
|
|
|
|
// EditProjectColumnOption options for editing a project column
|
|
|
|
type EditProjectColumnOption struct {
|
2024-07-15 13:33:26 +03:00
|
|
|
Title string `binding:"MaxSize(100)"`
|
|
|
|
Sorting int8
|
|
|
|
Color string `binding:"MaxSize(7)"`
|
|
|
|
}
|
|
|
|
|
|
|
|
// CreateProjectColumnOption options for creating a project column
|
|
|
|
type CreateProjectColumnOption struct {
|
|
|
|
// required:true
|
2024-07-10 16:12:59 +03:00
|
|
|
Title string `binding:"Required;MaxSize(100)"`
|
|
|
|
Sorting int8
|
|
|
|
Color string `binding:"MaxSize(7)"`
|
|
|
|
}
|