tariffs/internal/models/reqBodies.go
2024-07-25 13:51:27 +03:00

31 lines
842 B
Go

package models
type CreateUpdateReq struct {
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"`
}
type ManyCreateUpdate struct {
Privileges []CreateUpdateReq `json:"privileges"`
}
type TariffPagination struct {
TotalPages int `json:"totalPages"`
Tariffs []Tariff `json:"tariffs"`
}
type CreateUpdateTariff struct {
Name string `json:"name"`
UserID string `json:"userId"`
Description string `json:"description"`
Price int `json:"price"`
Order int `json:"order"`
IsCustom bool `json:"isCustom"`
Privileges []Privilege `json:"privileges"`
}