zchengo / crm

客户关系管理系统,基于 Vue + Go 实现,主要功能有仪表盘、客户管理、合同管理、产品管理、配置、订阅等功能。

Home Page:https://docs.zocrm.cloud

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

server/response/errcode.go

xuanhao44 opened this issue · comments

消息码有没有考虑使用 自定义 err 类型?比如:

type MyErr struct {
        Code int
	Msg string
}

感觉拿 int 作为其中一个返回值看着怪怪的哈哈

我最近也在学 gorm,就想问问相关的问题