Merge branch 'develop' of gitee.com:fusenpack/fusenapi into develop
This commit is contained in:
		
						commit
						a0692df845
					
				| @ -158,7 +158,7 @@ func (resp *Response) SetStatus(sr *StatusResponse, dataAndDebug ...interface{}) | ||||
| 	return newResp | ||||
| } | ||||
| 
 | ||||
| // SetStatus 设置默认StatusResponse(内部自定义) 默认msg, 可以带data, data只使用一个参数, 第二个data就是debug参数 | ||||
| // SetWithDebug 设置默认StatusResponse(内部自定义) 默认msg, 可以带debug | ||||
| func (resp *Response) SetWithDebug(sr *StatusResponse, debug interface{}) *Response { | ||||
| 
 | ||||
| 	resp = &Response{ | ||||
| @ -239,6 +239,7 @@ func (resp *Response) SetStatusWithMessage(sr *StatusResponse, msg string, dataA | ||||
| 	return newResp | ||||
| } | ||||
| 
 | ||||
| // SetStatusAddMessage 这个会拼接默认msg加新的msg | ||||
| func (resp *Response) SetStatusAddMessage(sr *StatusResponse, msg string, dataAndDebug ...interface{}) *Response { | ||||
| 	newResp := &Response{ | ||||
| 		Code:    sr.Code, | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user