Files
gitea/modules/structs/project_board.go
2023-11-25 12:54:26 +05:30

36 lines
844 B
Go

// Copyright 2021 The Gitea Authors. All rights reserved.
// SPDX-License-Identifier: MIT
package structs
import "time"
type ProjectBoard struct {
ID int64 `json:"id"`
Title string `json:"title"`
Default bool `json:"default"`
Color string `json:"color"`
Sorting int8 `json:"sorting"`
Project *Project `json:"project"`
Creator *User `json:"creator"`
// swagger:strfmt date-time
Created time.Time `json:"created_at"`
// swagger:strfmt date-time
Updated time.Time `json:"updated_at"`
}
// swagger:model
type NewProjectBoardPayload struct {
// required:true
Title string `json:"title"`
Default bool `json:"default"`
Color string `json:"color"`
Sorting int8 `json:"sorting`
}
// swagger:model
type UpdateProjectBoardPayload struct {
Title string `json:"title"`
Color string `json:"color"`
}