From c5ebaa41ecf2101c9ac3c5e49fa9f732494d8441 Mon Sep 17 00:00:00 2001 From: trunglt251292 Date: Wed, 25 May 2022 08:58:48 +0700 Subject: [PATCH] [Update] add payload request check permission --- struct.go | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/struct.go b/struct.go index 71bf10f..107c4fa 100644 --- a/struct.go +++ b/struct.go @@ -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 ...