mirror of https://github.com/usual2970/certimate
				
				
				
			fix: #539
							parent
							
								
									a8a12a3b91
								
							
						
					
					
						commit
						95e1fc6b5f
					
				| 
						 | 
				
			
			@ -1,17 +1,19 @@
 | 
			
		|||
package cdnflysdk
 | 
			
		||||
 | 
			
		||||
import "encoding/json"
 | 
			
		||||
 | 
			
		||||
type BaseResponse interface {
 | 
			
		||||
	GetCode() string
 | 
			
		||||
	GetMessage() string
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
type baseResponse struct {
 | 
			
		||||
	Code    string `json:"code"`
 | 
			
		||||
	Message string `json:"msg"`
 | 
			
		||||
	Code    json.Number `json:"code"`
 | 
			
		||||
	Message string      `json:"msg"`
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (r *baseResponse) GetCode() string {
 | 
			
		||||
	return r.Code
 | 
			
		||||
	return r.Code.String()
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (r *baseResponse) GetMessage() string {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue