customer/internal/models/tariff.go

27 lines
756 B
Go
Raw Normal View History

2023-05-19 09:08:15 +00:00
package models
import "time"
type Tariff struct {
2023-07-06 18:50:46 +00:00
ID string `json:"_id"`
Name string `json:"name"`
Price int64 `json:"price"`
IsCustom bool `json:"isCustom"`
Privileges []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
}