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 {
|
||||
Money float64 `json:"money"`
|
||||
From CurrencyKey `json:"from"`
|
||||
To CurrencyKey `json:"to"`
|
||||
Money float64 `json:"value"`
|
||||
From CurrencyKey `json:"currencyFrom"`
|
||||
To CurrencyKey `json:"currencyTo"`
|
||||
}
|
||||
|
||||
type ChangeCurrency struct {
|
||||
|
@ -3,15 +3,15 @@ package models
|
||||
import "time"
|
||||
|
||||
type Tariff struct {
|
||||
ID string `json:"_id"`
|
||||
Name string `json:"name"`
|
||||
Price float64 `json:"price"`
|
||||
IsCustom bool `json:"isCustom"`
|
||||
Privilegies map[string]Privilege `json:"privilegies"`
|
||||
Deleted bool `json:"isDeleted"`
|
||||
CreatedAt time.Time `json:"createdAt"`
|
||||
UpdatedAt time.Time `json:"updatedAt"`
|
||||
DeletedAt *time.Time `json:"deletedAt,omitempty"`
|
||||
ID string `json:"_id"`
|
||||
Name string `json:"name"`
|
||||
Price float64 `json:"price"`
|
||||
IsCustom bool `json:"isCustom"`
|
||||
Privileges map[string]Privilege `json:"privileges"`
|
||||
Deleted bool `json:"isDeleted"`
|
||||
CreatedAt time.Time `json:"createdAt"`
|
||||
UpdatedAt time.Time `json:"updatedAt"`
|
||||
DeletedAt *time.Time `json:"deletedAt,omitempty"`
|
||||
}
|
||||
|
||||
type Privilege struct {
|
||||
|
Loading…
Reference in New Issue
Block a user