update-struct #7

Merged
milano15662 merged 1 commits from develop into master 2022-03-23 08:06:07 +00:00
1 changed files with 15 additions and 15 deletions
Showing only changes of commit 1de83ecede - Show all commits

View File

@ -21,23 +21,23 @@ type AppID = primitive.ObjectID
// BrandPayload ...
type BrandPayload struct {
ID AppID
Name string
Slug string
SearchString string
Active bool
Photos []string
Desc string
TotalProduct int64
Logo string
Country CountryInfo
CreatedAt time.Time
UpdatedAt time.Time
ID AppID `json:"_id"`
Name string `json:"name"`
Slug string `json:"slug"`
SearchString string `json:"searchString"`
Active bool `json:"active"`
Photos []string `json:"photos"`
Desc string `json:"desc"`
TotalProduct int64 `json:"totalProduct"`
Logo string `json:"logo"`
Country CountryInfo `json:"country"`
CreatedAt time.Time `json:"createdAt"`
UpdatedAt time.Time `json:"updatedAt"`
}
// CountryInfo ...
type CountryInfo struct {
ID AppID
Name string
Code string
ID AppID `json:"_id"`
Name string `json:"name"`
Code string `json:"code"`
}