api 模板的修改

This commit is contained in:
eson
2023-06-05 17:56:55 +08:00
parent 6c717ce30e
commit ef46164dc3
86 changed files with 1329 additions and 108 deletions

12
utils/basic/basic.go Normal file
View File

@@ -0,0 +1,12 @@
package basic
// StatusResponse 公司自定义状态码
type StatusResponse struct {
Code int
Message string
}
var (
StatusOK = &StatusResponse{200, "success"} // 成功
DefaultError = &StatusResponse{510, "unknown error"} // 错误
)