From eef67a436ea96d0d45ce948aa5388e0272a83bfd Mon Sep 17 00:00:00 2001 From: mlogclub Date: Tue, 14 Apr 2026 12:14:13 +0800 Subject: [PATCH] refactor: update GetCustomerSourceTypeLabel to use ExternalSource and remove CustomerSourceType alias --- internal/pkg/enums/customer.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/internal/pkg/enums/customer.go b/internal/pkg/enums/customer.go index 66d8dad..2a7d153 100644 --- a/internal/pkg/enums/customer.go +++ b/internal/pkg/enums/customer.go @@ -1,11 +1,8 @@ package enums -// CustomerSourceType 已合并为 ExternalIdentitySource,保留类型别名以兼容旧代码。 -type CustomerSourceType = ExternalSource - const CustomerSourceTypeWebChat = ExternalSourceWebChat -func GetCustomerSourceTypeLabel(sourceType CustomerSourceType) string { +func GetCustomerSourceTypeLabel(sourceType ExternalSource) string { return GetExternalSourceLabel(ExternalSource(sourceType)) }