[Update] Check permission payload
This commit is contained in:
		
							parent
							
								
									e6512d770c
								
							
						
					
					
						commit
						9a72716fd0
					
				
							
								
								
									
										11
									
								
								struct.go
								
								
								
								
							
							
						
						
									
										11
									
								
								struct.go
								
								
								
								
							| 
						 | 
				
			
			@ -63,6 +63,14 @@ 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"`
 | 
			
		||||
| 
						 | 
				
			
			@ -71,6 +79,9 @@ type StaffCheckPermissionBody struct {
 | 
			
		|||
	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 ...
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue