2024-07-09 22:43:50 +03:00
|
|
|
// Copyright 2015 The Gogs Authors. All rights reserved.
|
|
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
|
|
|
|
package structs
|
|
|
|
|
|
|
|
// Project represents a project
|
|
|
|
type Project struct {
|
|
|
|
ID int64 `json:"id"`
|
|
|
|
Title string `json:"title"`
|
|
|
|
Description string `json:"description"`
|
2024-07-10 16:12:59 +03:00
|
|
|
TemplateType uint8 `json:"template_type"`
|
|
|
|
CardType uint8 `json:"card_type"`
|
2024-07-09 22:43:50 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
type CreateProjectOption struct {
|
|
|
|
Title string `json:"title" binding:"Required;MaxSize(100)"`
|
|
|
|
Content string `json:"content"`
|
|
|
|
TemplateType uint8 `json:"template_type"`
|
|
|
|
CardType uint8 `json:"card_type"`
|
|
|
|
}
|