feat: integrate customer service chat
This commit is contained in:
@@ -126,6 +126,7 @@ type CustomerService struct {
|
||||
ServiceURL string `json:"service_url"`
|
||||
BackupContact string `json:"backup_contact"`
|
||||
PrivacyNotice string `json:"privacy_notice"`
|
||||
IMEnabled bool `json:"im_enabled"`
|
||||
}
|
||||
|
||||
func New(repository Repository) *Service {
|
||||
@@ -282,6 +283,7 @@ func (s *Service) CustomerServices(ctx context.Context, tenantID int64) ([]Custo
|
||||
OnlineStatus: customerServiceStatus(row.OnlineStatus), ServiceURL: safeExternalURL(row.ServiceURL),
|
||||
BackupContact: row.BackupContact,
|
||||
PrivacyNotice: "请勿在客服会话中发送登录密码、支付密码或短信验证码",
|
||||
IMEnabled: strings.TrimSpace(row.IMTenantCode) != "" && strings.TrimSpace(row.IMUserID) != "",
|
||||
})
|
||||
}
|
||||
return items, nil
|
||||
|
||||
Reference in New Issue
Block a user