提交 c63111d3 authored 作者: mooncake9527's avatar mooncake9527

1. uid

上级 0de3d606
......@@ -20,11 +20,11 @@ const CustomErrorCode = 0
// Result output data format
type Result struct {
Code int `json:"code" example:"1"`
Msg string `json:"message" example:"OK"`
Code int `json:"code" form:"code" example:"1"`
Msg string `json:"message" form:"message" example:"OK"`
Data interface{} `json:"data"`
TimeStamp int64 `json:"timestamp" example:"1718850053"`
TraceID string `json:"traceID" example:"7f0000016673920576f0659c620086b0"`
TimeStamp int64 `json:"timestamp" form:"data" example:"1718850053"`
TraceID string `json:"traceID" form:"traceID" example:"7f0000016673920576f0659c620086b0"`
}
func newResp(c *gin.Context, code int, msg string, data interface{}) *Result {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论