重构项目
This commit is contained in:
		
							
								
								
									
										13
									
								
								internal/app/SafelineRequest/AuthToken.go
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										13
									
								
								internal/app/SafelineRequest/AuthToken.go
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,13 @@ | ||||
| package SafelineRequest | ||||
|  | ||||
| import "encoding/json" | ||||
|  | ||||
| type AuthTokenResp struct { | ||||
| 	Data string `json:"data"` | ||||
| 	Err  string `json:"err"` | ||||
| 	Msg  string `json:"msg"` | ||||
| } | ||||
|  | ||||
| func (authResp *AuthTokenResp) Unmarshal(data []byte) { | ||||
| 	_ = json.Unmarshal(data, authResp) | ||||
| } | ||||
		Reference in New Issue
	
	Block a user