修改状态码
This commit is contained in:
@@ -7,6 +7,7 @@ type StatusResponse struct {
|
||||
}
|
||||
|
||||
var (
|
||||
StatusOK = &StatusResponse{200, "success"} // 成功
|
||||
DefaultError = &StatusResponse{510, "unknown error"} // 错误
|
||||
CodeOK = &StatusResponse{200, "success"} // 成功
|
||||
CodeServiceErr = &StatusResponse{510, "unknown error"} // 错误
|
||||
CodeUnAuth = &StatusResponse{401, "unauthorized"} // 未授权
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user