add req bodies for create update privileges

This commit is contained in:
Pavel 2024-05-29 19:05:04 +03:00
parent d80378df68
commit a2baad87d7

@ -0,0 +1,16 @@
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 int `json:"price"`
Amount int `json:"amount"`
}
type ManyCreateUpdate struct {
Privileges []CreateUpdateReq `json:"privileges"`
}