refactor: service module and dao module

This commit is contained in:
zchengo
2023-01-25 16:16:36 +08:00
parent 42d264f8ad
commit c1a3f31cad
17 changed files with 775 additions and 346 deletions
+5
View File
@@ -20,10 +20,14 @@ const (
ErrCodeEmailFormatInvalid = 10008 // 邮箱格式无效
ErrCodeUserPassResetFailed = 10009 // 用户密码重置失败
ErrCodeCustomerHasExist = 20001 // 客户名称已经存在
ErrCodePayFailed = 20001 // 支付宝支付失败
ErrCodeFileExportFailed = 30001 // 文件导出失败
ErrCodeProductHasExist = 40001 // 产品名称已经存在
ErrCodeMailConfigInvalid = 50001 // 邮件服务配置无效
ErrCodeMailSendFailed = 50002 // 邮件发送失败
ErrCodeMailSendUnEnable = 50003 // 邮件服务未开启
@@ -46,6 +50,7 @@ var msg = map[int]string{
ErrCodeEmailFormatInvalid: "email format invalid",
ErrCodeUserPassResetFailed: "user password reset failed",
ErrCodeFileExportFailed: "file export failed",
ErrCodeProductHasExist: "product has exist",
ErrCodeMailConfigInvalid: "mail config invalid",
ErrCodeMailSendFailed: "mail send failed",
ErrCodeMailSendUnEnable: "mail send server unEnable",