Update permission #4

Merged
trunglt251292 merged 8 commits from update-permission into master 2022-07-01 02:26:53 +00:00
1 changed files with 17 additions and 6 deletions
Showing only changes of commit 9a72716fd0 - Show all commits

View File

@ -63,14 +63,25 @@ type Config struct {
Nats natsio.Config
}
// Agent ...
type Agent struct {
Source string `json:"source"`
IP string `json:"ip"`
Platform string `json:"platform"`
Version string `json:"version"`
}
// StaffCheckPermissionBody ...
type StaffCheckPermissionBody struct {
StaffID string `json:"staffId"`
Token string `json:"token"`
Permission []string `json:"permission"`
Source string `json:"source"`
Code string `json:"code,omitempty"`
IsRoot string `json:"isRoot"`
StaffID string `json:"staffId"`
Token string `json:"token"`
Permission []string `json:"permission"`
Source string `json:"source"`
Code string `json:"code,omitempty"`
IsRoot string `json:"isRoot"`
Agent Agent `json:"agent"`
DeviceId string `json:"deviceId"`
Payload PayloadCheckPermission `json:"payload"`
}
// PayloadCheckPermission ...