init commit

This commit is contained in:
flswld
2022-11-20 15:38:00 +08:00
parent eda2b643b9
commit 3efed3defe
5834 changed files with 636508 additions and 0 deletions

View File

@@ -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
}