refactor(系统设置): 修改类名

--user=郭雨琦
This commit is contained in:
guoyuqi 2022-11-19 12:46:00 +08:00 committed by xiaomeinvG
parent c77bc99a05
commit 01d9072787
3 changed files with 10 additions and 10 deletions

View File

@ -1,6 +1,6 @@
package io.metersphere.controller.remote;
import io.metersphere.service.remote.SystemSettingService;
import io.metersphere.service.remote.BaseSystemSettingService;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
@ -12,17 +12,17 @@ import javax.servlet.http.HttpServletRequest;
public class BasePlatformPluginController {
@Resource
SystemSettingService systemSettingService;
BaseSystemSettingService baseSystemSettingService;
@PostMapping("/**")
public Object list(HttpServletRequest request, @RequestBody Object param) {
String url = request.getRequestURI().replace("/global", "");
return systemSettingService.post(url, param);
return baseSystemSettingService.post(url, param);
}
@GetMapping("/**")
public Object get(HttpServletRequest request) {
String url = request.getRequestURI().replace("/global", "");
return systemSettingService.get(url);
return baseSystemSettingService.get(url);
}
}

View File

@ -5,8 +5,8 @@ import io.metersphere.service.RemoteService;
import org.springframework.stereotype.Service;
@Service
public class SystemSettingService extends RemoteService {
public SystemSettingService() {
public class BaseSystemSettingService extends RemoteService {
public BaseSystemSettingService() {
super(MicroServiceName.SYSTEM_SETTING);
}
}

View File

@ -1,7 +1,7 @@
package io.metersphere.controller.remote;
import io.metersphere.remote.service.PlatformPluginService;
import io.metersphere.service.remote.SystemSettingService;
import io.metersphere.service.remote.BaseSystemSettingService;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
@ -14,18 +14,18 @@ import javax.servlet.http.HttpServletResponse;
})
public class SystemSettingController {
@Resource
SystemSettingService systemSettingService;
BaseSystemSettingService baseSystemSettingService;
@Resource
PlatformPluginService platformPluginService;
@PostMapping("/**")
public Object list(HttpServletRequest request, @RequestBody Object param) {
return systemSettingService.post(request, param);
return baseSystemSettingService.post(request, param);
}
@GetMapping("/**")
public Object get(HttpServletRequest request) {
return systemSettingService.get(request);
return baseSystemSettingService.get(request);
}
@GetMapping("/resource/{pluginId}")