feat: add title field to workspace

This commit is contained in:
Steven
2023-02-28 07:03:37 +08:00
parent 544bd3555b
commit 910e4e1678
8 changed files with 67 additions and 25 deletions

View File

@ -11,6 +11,7 @@ type Workspace struct {
// Domain specific fields
Name string `json:"name"`
Title string `json:"title"`
Description string `json:"description"`
// Related fields
@ -21,6 +22,7 @@ type WorkspaceCreate struct {
CreatorID int
Name string `json:"name"`
Title string `json:"title"`
Description string `json:"description"`
}
@ -32,6 +34,7 @@ type WorkspacePatch struct {
// Domain specific fields
Name *string `json:"name"`
Title *string `json:"title"`
Description *string `json:"description"`
}