2023-06-22 09:36:43 +00:00
|
|
|
package models
|
|
|
|
|
|
|
|
import "time"
|
|
|
|
|
|
|
|
type Tariff struct {
|
2023-07-07 01:57:06 +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-06-22 09:36:43 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
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 int64 `json:"price"`
|
|
|
|
}
|