1 Star 0 Fork 0

GarlicBoris/gozero-utils

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
response_ok.go 281 Bytes
一键复制 编辑 原始数据 按行查看 历史
yanwc 提交于 2022-06-06 14:18 +08:00 . refactor: 重构成功返回结果
package api
type ResponseOk struct {
Success bool `json:"success"`
Message string `json:"message"`
Data interface{} `json:"data"`
}
func Success(data interface{}) *ResponseOk {
return &ResponseOk{
Success: true,
Message: "success",
Data: data,
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/yanwc/gozero-utils.git
git@gitee.com:yanwc/gozero-utils.git
yanwc
gozero-utils
gozero-utils
v1.3.78

搜索帮助