init: taotie-api 项目初始化
This commit is contained in:
10
common/erruser.go
Normal file
10
common/erruser.go
Normal file
@@ -0,0 +1,10 @@
|
||||
package common
|
||||
|
||||
import "github.com/duke-git/lancet/v2/xerror"
|
||||
|
||||
var (
|
||||
ErrUserNotFound = xerror.New("用户不存在").Id("u001") // 用户不存在
|
||||
ErrUserPasswordError = xerror.New("密码错误").Id("u002") // 密码错误
|
||||
ErrUserTenantNotFound = xerror.New("租户不存在").Id("u003") // 租户不存在
|
||||
ErrUserGenTokenFailed = xerror.New("生成token失败").Id("u004") // 生成token失败
|
||||
)
|
||||
Reference in New Issue
Block a user