[Update] Payload staff sync data

This commit is contained in:
trunglt251292 2022-05-26 09:30:35 +07:00
parent 0162caddba
commit f79d7d53b1
1 changed files with 3 additions and 0 deletions

View File

@ -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 ...