[Update] add payload request check permission
This commit is contained in:
parent
29bdeb7d40
commit
c5ebaa41ec
16
struct.go
16
struct.go
|
@ -47,10 +47,18 @@ type Config struct {
|
||||||
|
|
||||||
// StaffCheckPermissionBody ...
|
// StaffCheckPermissionBody ...
|
||||||
type StaffCheckPermissionBody struct {
|
type StaffCheckPermissionBody struct {
|
||||||
StaffID string `json:"staffId"`
|
StaffID string `json:"staffId"`
|
||||||
Permission string `json:"permission"`
|
Permission string `json:"permission"`
|
||||||
Source string `json:"source"`
|
Source string `json:"source"`
|
||||||
Code string `json:"code,omitempty"`
|
Code string `json:"code,omitempty"`
|
||||||
|
Payload PayloadCheckPermission `json:"payload"`
|
||||||
|
}
|
||||||
|
|
||||||
|
// PayloadCheckPermission ...
|
||||||
|
type PayloadCheckPermission struct {
|
||||||
|
URL string `json:"url"`
|
||||||
|
Body string `json:"body"`
|
||||||
|
Method string `json:"method"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// StaffCheckPermissionResponse ...
|
// StaffCheckPermissionResponse ...
|
||||||
|
|
Loading…
Reference in New Issue