mirror of
https://github.com/FlourishingWorld/hk4e.git
synced 2026-02-11 22:02:27 +08:00
init commit
This commit is contained in:
15
common/entity/dto/response_result_entity.go
Normal file
15
common/entity/dto/response_result_entity.go
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user