mirror of
https://github.com/acepanel/panel.git
synced 2026-02-07 07:03:12 +08:00
refactor: 重构 tools.Exec 函数
This commit is contained in:
@@ -35,7 +35,7 @@ func Success(ctx http.Context, data any) http.Response {
|
||||
func Error(ctx http.Context, code int, message string) http.Response {
|
||||
return ctx.Response().Json(http.StatusOK, &ErrorResponse{
|
||||
Code: code,
|
||||
Message: message,
|
||||
Message: "错误: " + message,
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user