Ai
2 Star 0 Fork 0

nextcyber/go-next-result

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
error.go 312 Bytes
一键复制 编辑 原始数据 按行查看 历史
wvkity 提交于 2024-01-20 16:09 +08:00 . - 修改status、code数据类型
package res
// Error Error接口
type Error interface {
// GetCode 获取状态码
GetCode() int
// SetCode 设置状态码
//
// @param code 状态码
SetCode(code int)
// GetMsg 获取异常信息
GetMsg() string
// SetMsg 设置异常信息
//
// @param msg 异常信息
SetMsg(msg string)
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/nextcyber/go-next-result.git
git@gitee.com:nextcyber/go-next-result.git
nextcyber
go-next-result
go-next-result
47b8d5d30115

搜索帮助