mirror of
https://gitee.com/dromara/mayfly-go
synced 2025-11-04 00:10:25 +08:00
refactor: 标签不可移动,资源选择优化等
This commit is contained in:
@@ -49,8 +49,9 @@ func Error(bizerr *errorx.BizError) *Result {
|
||||
}
|
||||
|
||||
// 返回服务器错误Result
|
||||
func ServerError() *Result {
|
||||
return Error(errorx.ServerError)
|
||||
func ServerError(msg string) *Result {
|
||||
serverErr := errorx.NewBizCode(errorx.ServerError.Code(), msg)
|
||||
return Error(serverErr)
|
||||
}
|
||||
|
||||
func TokenError() *Result {
|
||||
|
||||
Reference in New Issue
Block a user