update-struct
This commit is contained in:
parent
55b30f78a0
commit
1de83ecede
30
struct.go
30
struct.go
|
@ -21,23 +21,23 @@ type AppID = primitive.ObjectID
|
||||||
|
|
||||||
// BrandPayload ...
|
// BrandPayload ...
|
||||||
type BrandPayload struct {
|
type BrandPayload struct {
|
||||||
ID AppID
|
ID AppID `json:"_id"`
|
||||||
Name string
|
Name string `json:"name"`
|
||||||
Slug string
|
Slug string `json:"slug"`
|
||||||
SearchString string
|
SearchString string `json:"searchString"`
|
||||||
Active bool
|
Active bool `json:"active"`
|
||||||
Photos []string
|
Photos []string `json:"photos"`
|
||||||
Desc string
|
Desc string `json:"desc"`
|
||||||
TotalProduct int64
|
TotalProduct int64 `json:"totalProduct"`
|
||||||
Logo string
|
Logo string `json:"logo"`
|
||||||
Country CountryInfo
|
Country CountryInfo `json:"country"`
|
||||||
CreatedAt time.Time
|
CreatedAt time.Time `json:"createdAt"`
|
||||||
UpdatedAt time.Time
|
UpdatedAt time.Time `json:"updatedAt"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// CountryInfo ...
|
// CountryInfo ...
|
||||||
type CountryInfo struct {
|
type CountryInfo struct {
|
||||||
ID AppID
|
ID AppID `json:"_id"`
|
||||||
Name string
|
Name string `json:"name"`
|
||||||
Code string
|
Code string `json:"code"`
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue