初始化项目框架,完成部分接口开发

This commit is contained in:
2025-07-10 21:04:29 +08:00
commit b2871ec0d2
168 changed files with 6399 additions and 0 deletions

17
utility/ecode/common.go Normal file
View File

@ -0,0 +1,17 @@
package ecode
var (
OK = New(0, "success")
Sub = New(1, "") // 自定义错误信息
Fail = New(2, "server_error")
InvalidOperation = New(3, "invalid_operation")
Params = New(4, "params_error")
Logout = New(5, "not_login")
Disabled = New(6, "account_disabled")
Denied = New(7, "permission_denied")
Expire = New(8, "token_expired")
Auth = New(1000, "auth_failed")
Password = New(1001, "password_incorrect")
EmailExist = New(1002, "email_exists")
NotFound = New(1003, "not_found")
)