1
1
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:
eyad-hussein
2024-07-14 14:59:53 +03:00
parent 3a5911af1d
commit 10c0766a77
6 changed files with 299 additions and 583 deletions

View File

@ -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 {