temp
This commit is contained in:
@@ -45,6 +45,8 @@ func sendResponse(ctx context.Context, w http.ResponseWriter, code int, message
|
||||
// 响应成功
|
||||
func Success(ctx context.Context, w http.ResponseWriter, data interface{}) {
|
||||
ctx = context.WithValue(ctx, "status", "success")
|
||||
ctx = context.WithValue(ctx, "Charges", true)
|
||||
|
||||
sendResponse(ctx, w, 0, "success", data)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user