sms-metering-location-link: per-tag SMS credits (allocated/used, admin top-up), short URLs + owner location page (map embed + finder details) — 13/13 scenarios
This commit is contained in:
@@ -39,21 +39,30 @@ type Scan struct {
|
||||
}
|
||||
|
||||
type Tag struct {
|
||||
ID int64 `json:"id"`
|
||||
TagCode string `json:"tag_code"`
|
||||
OwnerID pgtype.Int8 `json:"owner_id"`
|
||||
Status string `json:"status"`
|
||||
ItemType pgtype.Text `json:"item_type"`
|
||||
Description pgtype.Text `json:"description"`
|
||||
PhotoUrl pgtype.Text `json:"photo_url"`
|
||||
Phone pgtype.Text `json:"phone"`
|
||||
Address pgtype.Text `json:"address"`
|
||||
Notes pgtype.Text `json:"notes"`
|
||||
CreatedAt pgtype.Timestamptz `json:"created_at"`
|
||||
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
|
||||
SmsEnabled bool `json:"sms_enabled"`
|
||||
ProductID pgtype.Int8 `json:"product_id"`
|
||||
OrderID pgtype.Int8 `json:"order_id"`
|
||||
ID int64 `json:"id"`
|
||||
TagCode string `json:"tag_code"`
|
||||
OwnerID pgtype.Int8 `json:"owner_id"`
|
||||
Status string `json:"status"`
|
||||
ItemType pgtype.Text `json:"item_type"`
|
||||
Description pgtype.Text `json:"description"`
|
||||
PhotoUrl pgtype.Text `json:"photo_url"`
|
||||
Phone pgtype.Text `json:"phone"`
|
||||
Address pgtype.Text `json:"address"`
|
||||
Notes pgtype.Text `json:"notes"`
|
||||
CreatedAt pgtype.Timestamptz `json:"created_at"`
|
||||
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
|
||||
SmsEnabled bool `json:"sms_enabled"`
|
||||
ProductID pgtype.Int8 `json:"product_id"`
|
||||
OrderID pgtype.Int8 `json:"order_id"`
|
||||
SmsAllocated int32 `json:"sms_allocated"`
|
||||
SmsUsed int32 `json:"sms_used"`
|
||||
SmsPeriodStart pgtype.Date `json:"sms_period_start"`
|
||||
}
|
||||
|
||||
type UrlShortened struct {
|
||||
Code string `json:"code"`
|
||||
ScanID int64 `json:"scan_id"`
|
||||
CreatedAt pgtype.Timestamptz `json:"created_at"`
|
||||
}
|
||||
|
||||
type User struct {
|
||||
|
||||
Reference in New Issue
Block a user