mirror of
https://github.com/go-gitea/gitea
synced 2025-07-06 10:37:20 +00:00
api(refactor): create a common handler for org and repo projects
edit project api response format to include more fields
This commit is contained in:
@ -10,6 +10,15 @@ type Project struct {
|
||||
Description string `json:"description"`
|
||||
TemplateType uint8 `json:"template_type"`
|
||||
CardType uint8 `json:"card_type"`
|
||||
OwnerID int64 `json:"owner_id"`
|
||||
RepoID int64 `json:"repo_id"`
|
||||
CreatorID int64 `json:"creator_id"`
|
||||
IsClosed bool `json:"is_closed"`
|
||||
Type uint8 `json:"type"`
|
||||
|
||||
CreatedUnix int64 `json:"created_unix"`
|
||||
UpdatedUnix int64 `json:"updated_unix"`
|
||||
ClosedDateUnix int64 `json:"closed_date_unix"`
|
||||
}
|
||||
|
||||
type CreateProjectOption struct {
|
||||
|
Reference in New Issue
Block a user