Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

server/response/errcode.go #3

Open
xuanhao44 opened this issue Dec 11, 2022 · 0 comments
Open

server/response/errcode.go #3

xuanhao44 opened this issue Dec 11, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@xuanhao44
Copy link

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

type MyErr struct {
        Code int
	Msg string
}

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

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

@zchengo zchengo added the enhancement New feature or request label Dec 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants