You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
265 B
Go
12 lines
265 B
Go
1 year ago
|
package nstatus
|
||
|
|
||
|
// NewBizErr 构建业务错误
|
||
|
func NewBizErr(code int, message string) error {
|
||
|
return NewResult(code, message, BizErr)
|
||
|
}
|
||
|
|
||
|
// NewBizErrNoMsg 构建业务错误,空错误消息
|
||
|
func NewBizErrNoMsg(code int) error {
|
||
|
return NewBizErr(code, "")
|
||
|
}
|