mirror of
https://github.com/go-gitea/gitea.git
synced 2025-08-18 19:27:35 +00:00
refactor: rename BoardType to TemplateType
This commit is contained in:
parent
a7aabc5349
commit
7383e7bf32
@ -12,13 +12,13 @@ import (
|
||||
|
||||
func ToAPIProject(ctx context.Context, project *project_model.Project) (*api.Project, error) {
|
||||
apiProject := &api.Project{
|
||||
Title: project.Title,
|
||||
Description: project.Description,
|
||||
BoardType: uint8(project.BoardType),
|
||||
IsClosed: project.IsClosed,
|
||||
Created: project.CreatedUnix.AsTime(),
|
||||
Updated: project.UpdatedUnix.AsTime(),
|
||||
Closed: project.ClosedDateUnix.AsTime(),
|
||||
Title: project.Title,
|
||||
Description: project.Description,
|
||||
TemplateType: uint8(project.TemplateType),
|
||||
IsClosed: project.IsClosed,
|
||||
Created: project.CreatedUnix.AsTime(),
|
||||
Updated: project.UpdatedUnix.AsTime(),
|
||||
Closed: project.ClosedDateUnix.AsTime(),
|
||||
}
|
||||
|
||||
_ = project.LoadRepo(ctx)
|
||||
|
Loading…
Reference in New Issue
Block a user