fix response format
This commit is contained in:
@@ -6,11 +6,11 @@ import (
|
||||
)
|
||||
|
||||
type Organization struct {
|
||||
gorm.Model
|
||||
ID uuid.UUID `gorm:"type:uuid;default:gen_random_uuid();primarykey"`
|
||||
Name string `json:"name" gorm:"unique;index"`
|
||||
ParentID uuid.UUID `json:"parent_id"`
|
||||
Positions []Position `json:"positions,omitempty"`
|
||||
gorm.Model `json:"meta"`
|
||||
ID uuid.UUID `json:"id" gorm:"type:uuid;default:gen_random_uuid();primarykey"`
|
||||
Name string `json:"name" gorm:"unique;index"`
|
||||
ParentID uuid.UUID `json:"parent_id"`
|
||||
Positions []Position `json:"positions,omitempty"`
|
||||
}
|
||||
|
||||
type OrganizationApi struct {
|
||||
|
||||
Reference in New Issue
Block a user