[Update] Payload staff sync data
This commit is contained in:
parent
0162caddba
commit
f79d7d53b1
|
@ -8,6 +8,7 @@ import (
|
||||||
type Staff struct {
|
type Staff struct {
|
||||||
Reference string `json:"reference"` // ObjectID
|
Reference string `json:"reference"` // ObjectID
|
||||||
Name string `json:"name"`
|
Name string `json:"name"`
|
||||||
|
Email string `json:"email"`
|
||||||
Phone string `json:"phone"`
|
Phone string `json:"phone"`
|
||||||
Active bool `json:"active"`
|
Active bool `json:"active"`
|
||||||
IsRoot bool `json:"isRoot"`
|
IsRoot bool `json:"isRoot"`
|
||||||
|
@ -33,6 +34,7 @@ type StaffCheckPermissionBody struct {
|
||||||
Source string `json:"source"`
|
Source string `json:"source"`
|
||||||
Code string `json:"code,omitempty"`
|
Code string `json:"code,omitempty"`
|
||||||
Payload PayloadCheckPermission `json:"payload"`
|
Payload PayloadCheckPermission `json:"payload"`
|
||||||
|
IsRoot bool `json:"isRoot"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// PayloadCheckPermission ...
|
// PayloadCheckPermission ...
|
||||||
|
@ -52,6 +54,7 @@ type StaffCheckPermissionResponse struct {
|
||||||
type StaffGetPermissions struct {
|
type StaffGetPermissions struct {
|
||||||
StaffID string `json:"staffId"`
|
StaffID string `json:"staffId"`
|
||||||
Source string `json:"source"`
|
Source string `json:"source"`
|
||||||
|
Prefix string `json:"prefix"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// StaffGetPermissionsResponse ...
|
// StaffGetPermissionsResponse ...
|
||||||
|
|
Loading…
Reference in New Issue