feat: file upload and remove
This commit is contained in:
@@ -7,15 +7,15 @@ const (
|
||||
ErrCodeNoLogin = 3 // 未登录或非法访问
|
||||
ErrCodeTokenExpire = 4 // Token过期
|
||||
|
||||
ErrCodeInitDataFailed = 10 // 初始化数据失败
|
||||
ErrCodeInitDataFailed = 10 // 初始化数据失败
|
||||
ErrCodeFileUploadFailed = 11 // 文件上传失败
|
||||
ErrCodeFileRemoveFailed = 12 // 文件移除失败
|
||||
|
||||
ErrCodeUserHasExist = 10001 // 用户已经存在
|
||||
ErrCodeUserNotExist = 10002 // 用户不存在
|
||||
ErrCOdeUserEmailOrPass = 10003 // 用户邮箱或密码错误
|
||||
ErrCodeVerityCodeSendFailed = 10004 // 验证码发送失败
|
||||
ErrCodeVerityCodeInvalid = 10005 // 验证码无效
|
||||
ErrCodeCompanyCreateFailed = 10006 // 企业创建失败
|
||||
ErrCodeCompanyIdNotExist = 10007 // 企业编号不存在
|
||||
ErrCodeEmailFormatInvalid = 10008 // 邮箱格式无效
|
||||
ErrCodeUserPassResetFailed = 10009 // 用户密码重置失败
|
||||
|
||||
@@ -40,12 +40,12 @@ var msg = map[int]string{
|
||||
ErrCodeNoLogin: "no login",
|
||||
ErrCodeTokenExpire: "token expire",
|
||||
ErrCodeInitDataFailed: "data init failed",
|
||||
ErrCodeFileUploadFailed: "file upload failed",
|
||||
ErrCodeUserHasExist: "user has exist",
|
||||
ErrCodeUserNotExist: "user not exist",
|
||||
ErrCOdeUserEmailOrPass: "user email or password error",
|
||||
ErrCodeVerityCodeSendFailed: "verify code send failed",
|
||||
ErrCodeVerityCodeInvalid: "verify code invalid",
|
||||
ErrCodeCompanyCreateFailed: "company create failed",
|
||||
ErrCodeEmailFormatInvalid: "email format invalid",
|
||||
ErrCodeUserPassResetFailed: "user password reset failed",
|
||||
ErrCodeFileExportFailed: "file export failed",
|
||||
|
||||
Reference in New Issue
Block a user