fix: 修正删除客户时的错误代码,更新授权码和许可证相关的错误信息
This commit is contained in:
1 parent
251fcba655
commit
3edbaef170
1 file changed
+2
-2
@@ -240,7 +240,7 @@ func (s *customerService) DeleteCustomer(ctx context.Context, id string) error {
|
||||
return i18n.NewI18nError("900004", lang, err.Error())
|
||||
}
|
||||
if hasAuthCodes {
|
||||
return i18n.NewI18nError("200006", lang)
|
||||
return i18n.NewI18nError("200008", lang)
|
||||
}
|
||||
|
||||
// 检查是否有关联的许可证
|
||||
@@ -249,7 +249,7 @@ func (s *customerService) DeleteCustomer(ctx context.Context, id string) error {
|
||||
return i18n.NewI18nError("900004", lang, err.Error())
|
||||
}
|
||||
if hasLicenses {
|
||||
return i18n.NewI18nError("200006", lang)
|
||||
return i18n.NewI18nError("200008", lang)
|
||||
}
|
||||
|
||||
// 委托给Repository层进行物理删除
|
||||
|
||||
Reference in new issue
Block a user