2022-03-23 02:12:54 +00:00
|
|
|
package appier
|
|
|
|
|
2022-03-23 03:36:14 +00:00
|
|
|
import (
|
|
|
|
"time"
|
|
|
|
|
|
|
|
"go.mongodb.org/mongo-driver/bson/primitive"
|
|
|
|
)
|
|
|
|
|
2022-03-23 02:12:54 +00:00
|
|
|
// RequestBody ...
|
|
|
|
type RequestBody struct {
|
|
|
|
Body []byte `json:"body"`
|
|
|
|
}
|
|
|
|
|
|
|
|
// Payload ...
|
|
|
|
type Payload struct {
|
|
|
|
Data []byte
|
|
|
|
}
|
2022-03-23 03:36:14 +00:00
|
|
|
|
|
|
|
// AppID custom ObjectID
|
|
|
|
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
|
|
|
|
}
|
|
|
|
|
|
|
|
// CountryInfo ...
|
|
|
|
type CountryInfo struct {
|
|
|
|
ID AppID
|
|
|
|
Name string
|
|
|
|
Code string
|
|
|
|
}
|