tariffs/internal/models/reqBodies.go

17 lines
436 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"`
Amount int `json:"amount"`
}
type ManyCreateUpdate struct {
Privileges []CreateUpdateReq `json:"privileges"`
}