generated from PenaSide/GolangTemplate
27 lines
837 B
Go
27 lines
837 B
Go
![]() |
package models
|
||
|
|
||
|
import "time"
|
||
|
|
||
|
type Tariff struct {
|
||
|
ID string `json:"_id"`
|
||
|
Name string `json:"name"`
|
||
|
Price int64 `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 {
|
||
|
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"`
|
||
|
}
|