style: tariff privilege names

This commit is contained in:
Kirill 2023-05-22 15:52:00 +03:00
parent d7b9a2836e
commit aaf64c8732
2 changed files with 12 additions and 12 deletions

@ -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 {