customer/internal/models/tariff.go

27 lines
837 B
Go
Raw Normal View History

2023-05-19 09:08:15 +00:00
package models
import "time"
type Tariff struct {
2023-05-22 12:52:00 +00:00
ID string `json:"_id"`
Name string `json:"name"`
2023-05-30 11:33:57 +00:00
Price int64 `json:"price"`
2023-05-22 12:52:00 +00:00
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"`
2023-05-19 09:08:15 +00:00
}
type Privilege struct {
2023-05-30 11:33:57 +00:00
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 int64 `json:"price"`
2023-05-19 09:08:15 +00:00
}