customer/internal/models/tariff.go
2023-05-19 12:08:15 +03:00

27 lines
855 B
Go

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"`
}
type Privilege struct {
ID string `json:"_id"`
Name string `json:"name"`
PrivilegeID string `json:"privilegeId"`
ServiceKey string `json:"serviceKey"`
Description string `json:"description"`
Type string `json:"type"`
Value string `json:"value"`
Price float64 `json:"price"`
}