✨ 添加系统设置页面.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
### 查询应用信息
|
||||
GET {{baseUrl}}/infra/system/app-info
|
||||
GET {{baseUrl}}/infra/system-setting/app-info
|
||||
Authorization: {{token}}
|
||||
|
||||
@@ -4,7 +4,7 @@ import com.orion.visor.framework.log.core.annotation.IgnoreLog;
|
||||
import com.orion.visor.framework.log.core.enums.IgnoreLogMode;
|
||||
import com.orion.visor.framework.web.core.annotation.RestWrapper;
|
||||
import com.orion.visor.module.infra.entity.vo.AppInfoVO;
|
||||
import com.orion.visor.module.infra.service.SystemService;
|
||||
import com.orion.visor.module.infra.service.SystemSettingService;
|
||||
import io.swagger.v3.oas.annotations.Operation;
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
@@ -27,18 +27,18 @@ import javax.annotation.Resource;
|
||||
@Validated
|
||||
@RestWrapper
|
||||
@RestController
|
||||
@RequestMapping("/infra/system")
|
||||
@RequestMapping("/infra/system-setting")
|
||||
@SuppressWarnings({"ELValidationInJSP", "SpringElInspection"})
|
||||
public class SystemController {
|
||||
public class SystemSettingController {
|
||||
|
||||
@Resource
|
||||
private SystemService systemService;
|
||||
private SystemSettingService systemSettingService;
|
||||
|
||||
@IgnoreLog(IgnoreLogMode.RET)
|
||||
@GetMapping("/app-info")
|
||||
@Operation(summary = "查询应用信息")
|
||||
public AppInfoVO getAppInfo() {
|
||||
return systemService.getAppInfo();
|
||||
return systemSettingService.getAppInfo();
|
||||
}
|
||||
|
||||
}
|
||||
@@ -9,7 +9,7 @@ import com.orion.visor.module.infra.entity.vo.AppInfoVO;
|
||||
* @version 1.0.0
|
||||
* @since 2024/6/17 18:10
|
||||
*/
|
||||
public interface SystemService {
|
||||
public interface SystemSettingService {
|
||||
|
||||
/**
|
||||
* 获取应用信息
|
||||
@@ -7,7 +7,7 @@ import com.orion.visor.framework.common.constant.AppConst;
|
||||
import com.orion.visor.framework.common.constant.Const;
|
||||
import com.orion.visor.framework.common.utils.Mixes;
|
||||
import com.orion.visor.module.infra.entity.vo.AppInfoVO;
|
||||
import com.orion.visor.module.infra.service.SystemService;
|
||||
import com.orion.visor.module.infra.service.SystemSettingService;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
/**
|
||||
@@ -18,7 +18,7 @@ import org.springframework.stereotype.Service;
|
||||
* @since 2024/6/17 18:10
|
||||
*/
|
||||
@Service
|
||||
public class SystemServiceImpl implements SystemService {
|
||||
public class SystemSettingServiceImpl implements SystemSettingService {
|
||||
|
||||
private String uuid;
|
||||
|
||||
Reference in New Issue
Block a user