forked from free-lancers/electricity_bill_calc_service
		
	enhance(response):优化操作成功时使用的响应方法。
This commit is contained in:
		| @@ -56,8 +56,8 @@ func (r *Result) Unauthorized(msg string) { | ||||
| } | ||||
|  | ||||
| // 简易操作成功信息 | ||||
| func (r *Result) Success(msg string) { | ||||
| 	r.response(http.StatusOK, http.StatusOK, msg) | ||||
| func (r *Result) Success(msg string, payloads ...map[string]interface{}) { | ||||
| 	r.response(http.StatusOK, http.StatusOK, msg, payloads...) | ||||
| } | ||||
|  | ||||
| // 数据成功创建 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user