feat(ops): 注册 SocialUserApi 并添加 vsp-notify 配置
- RpcConfiguration 新增 SocialUserApi Feign 客户端注册 - application.yaml 新增 viewsh.ops.vsp-notify 配置段 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -5,6 +5,7 @@ import com.viewsh.module.iot.api.device.IotDeviceControlApi;
|
||||
import com.viewsh.module.iot.api.device.IotDeviceQueryApi;
|
||||
import com.viewsh.module.iot.api.device.IotDeviceStatusQueryApi;
|
||||
import com.viewsh.module.system.api.notify.NotifyMessageSendApi;
|
||||
import com.viewsh.module.system.api.social.SocialUserApi;
|
||||
import com.viewsh.module.system.api.user.AdminUserApi;
|
||||
import org.springframework.cloud.openfeign.EnableFeignClients;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
@@ -13,6 +14,7 @@ import org.springframework.context.annotation.Configuration;
|
||||
@EnableFeignClients(clients = {
|
||||
NotifyMessageSendApi.class,
|
||||
AdminUserApi.class,
|
||||
SocialUserApi.class,
|
||||
IotDeviceControlApi.class,
|
||||
IotDeviceQueryApi.class,
|
||||
IotDeviceStatusQueryApi.class,
|
||||
|
||||
@@ -139,6 +139,13 @@ viewsh:
|
||||
version: ${viewsh.info.version}
|
||||
tenant: # 多租户相关配置项
|
||||
enable: true
|
||||
ops:
|
||||
vsp-notify:
|
||||
enabled: true
|
||||
base-url: http://192.168.0.105:8000
|
||||
connect-timeout: 5000
|
||||
read-timeout: 10000
|
||||
max-retry: 2
|
||||
|
||||
--- #################### 工单相关配置 ####################
|
||||
|
||||
|
||||
Reference in New Issue
Block a user