[Update] add payload request check permission

This commit is contained in:
trunglt251292 2022-05-25 08:58:48 +07:00
parent 29bdeb7d40
commit c5ebaa41ec
1 changed files with 12 additions and 4 deletions

View File

@ -47,10 +47,18 @@ type Config struct {
// StaffCheckPermissionBody ...
type StaffCheckPermissionBody struct {
StaffID string `json:"staffId"`
Permission string `json:"permission"`
Source string `json:"source"`
Code string `json:"code,omitempty"`
StaffID string `json:"staffId"`
Permission string `json:"permission"`
Source string `json:"source"`
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 ...