init commit

This commit is contained in:
flswld committed 2022-11-20 15:38:00 +08:00
1 parent eda2b643b9
commit 3efed3defe
5834 files changed
+636508

No files matched your search

@@ -0,0 +1,15 @@
package dto
type ResponseResult struct {
Code int32 `json:"code"`
Msg string `json:"msg"`
Data any `json:"data,omitempty"`
}
func NewResponseResult(code int32, msg string, data any) (r *ResponseResult) {
r = new(ResponseResult)
r.Code = code
r.Msg = msg
r.Data = data
return r
}