add req bodies for create update privileges
This commit is contained in:
parent
d80378df68
commit
a2baad87d7
16
internal/models/reqBodies.go
Normal file
16
internal/models/reqBodies.go
Normal file
@ -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"`
|
||||
}
|
Loading…
Reference in New Issue
Block a user