generated from PenaSide/GolangTemplate
style: tariff privilege names
This commit is contained in:
parent
d7b9a2836e
commit
aaf64c8732
@ -20,9 +20,9 @@ const (
|
|||||||
)
|
)
|
||||||
|
|
||||||
type TranslateCurrency struct {
|
type TranslateCurrency struct {
|
||||||
Money float64 `json:"money"`
|
Money float64 `json:"value"`
|
||||||
From CurrencyKey `json:"from"`
|
From CurrencyKey `json:"currencyFrom"`
|
||||||
To CurrencyKey `json:"to"`
|
To CurrencyKey `json:"currencyTo"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type ChangeCurrency struct {
|
type ChangeCurrency struct {
|
||||||
|
@ -3,15 +3,15 @@ package models
|
|||||||
import "time"
|
import "time"
|
||||||
|
|
||||||
type Tariff struct {
|
type Tariff struct {
|
||||||
ID string `json:"_id"`
|
ID string `json:"_id"`
|
||||||
Name string `json:"name"`
|
Name string `json:"name"`
|
||||||
Price float64 `json:"price"`
|
Price float64 `json:"price"`
|
||||||
IsCustom bool `json:"isCustom"`
|
IsCustom bool `json:"isCustom"`
|
||||||
Privilegies map[string]Privilege `json:"privilegies"`
|
Privileges map[string]Privilege `json:"privileges"`
|
||||||
Deleted bool `json:"isDeleted"`
|
Deleted bool `json:"isDeleted"`
|
||||||
CreatedAt time.Time `json:"createdAt"`
|
CreatedAt time.Time `json:"createdAt"`
|
||||||
UpdatedAt time.Time `json:"updatedAt"`
|
UpdatedAt time.Time `json:"updatedAt"`
|
||||||
DeletedAt *time.Time `json:"deletedAt,omitempty"`
|
DeletedAt *time.Time `json:"deletedAt,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type Privilege struct {
|
type Privilege struct {
|
||||||
|
Loading…
Reference in New Issue
Block a user