1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-10 04:27:22 +00:00

feat: add projects/ endpoint for initiating extension of api

This commit is contained in:
eyad-hussein
2024-07-09 22:43:50 +03:00
parent 13015bba5a
commit 20fde317b3
4 changed files with 154 additions and 0 deletions

View File

@ -0,0 +1,20 @@
// 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"`
TemplateType string `json:"template_type"`
CardType string `json:"card_type"`
}
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"`
}