|
@@ -1,4 +1,4 @@
|
|
|
-package com.inspur.customer.web.controller;
|
|
|
|
|
|
|
+package com.inspur.customer.web.controller.tenant;
|
|
|
|
|
|
|
|
import com.alibaba.cola.dto.SingleResponse;
|
|
import com.alibaba.cola.dto.SingleResponse;
|
|
|
import com.inspur.customer.client.tenant.TenantExceptionInformStrategyService;
|
|
import com.inspur.customer.client.tenant.TenantExceptionInformStrategyService;
|
|
@@ -16,12 +16,12 @@ public class TenantExceptionInformStrategyController {
|
|
|
@DubboReference
|
|
@DubboReference
|
|
|
private TenantExceptionInformStrategyService tenantExceptionInformStrategyService;
|
|
private TenantExceptionInformStrategyService tenantExceptionInformStrategyService;
|
|
|
|
|
|
|
|
- @PostMapping("/device/informStrategy")
|
|
|
|
|
|
|
+ @PostMapping("/tenant/informStrategy")
|
|
|
public SingleResponse<TenantExceptionInformStrategyCO> setTenantInformStrategy(@RequestBody TenantExceptionInformStrategyCO informStrategyCo) {
|
|
public SingleResponse<TenantExceptionInformStrategyCO> setTenantInformStrategy(@RequestBody TenantExceptionInformStrategyCO informStrategyCo) {
|
|
|
return tenantExceptionInformStrategyService.setInformStrategy(informStrategyCo);
|
|
return tenantExceptionInformStrategyService.setInformStrategy(informStrategyCo);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- @GetMapping("/device/informStrategy")
|
|
|
|
|
|
|
+ @GetMapping("/tenant/informStrategy")
|
|
|
public SingleResponse<TenantExceptionInformStrategyCO> setTenantInformStrategy(@RequestParam String tenant) {
|
|
public SingleResponse<TenantExceptionInformStrategyCO> setTenantInformStrategy(@RequestParam String tenant) {
|
|
|
return tenantExceptionInformStrategyService.getTenantInformStrategy(tenant);
|
|
return tenantExceptionInformStrategyService.getTenantInformStrategy(tenant);
|
|
|
}
|
|
}
|