init: taotie-api 项目初始化

This commit is contained in:
2026-05-16 00:14:19 +08:00
commit eb15ef4b87
33 changed files with 1746 additions and 0 deletions

10
common/erruser.go Normal file
View 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失败
)