优化
This commit is contained in:
@ -0,0 +1,35 @@
|
||||
package com.ruoyi.web.controller.common;
|
||||
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.domain.Version;
|
||||
import com.ruoyi.common.service.IVersionService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
/**
|
||||
* APP版本Controller
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-05-08
|
||||
*/
|
||||
@Api(value = "APP版本控制器", tags = {"APP版本管理"})
|
||||
@RequiredArgsConstructor(onConstructor_ = @Autowired)
|
||||
@RestController
|
||||
@RequestMapping("/common/version")
|
||||
public class VersionController extends BaseController {
|
||||
|
||||
private final IVersionService iCommonVersionService;
|
||||
|
||||
|
||||
@ApiOperation("获取最新APP版本详细信息")
|
||||
@GetMapping("/latest")
|
||||
public AjaxResult<Version> getLatest(){
|
||||
return AjaxResult.success(iCommonVersionService.getLatest());
|
||||
}
|
||||
}
|
@ -28,7 +28,7 @@ captcha:
|
||||
# 开发环境配置
|
||||
server:
|
||||
# 服务器的HTTP端口,默认为8080
|
||||
port: 9099
|
||||
port: 9097
|
||||
servlet:
|
||||
# 应用的访问路径
|
||||
context-path: /ruoyi
|
||||
|
Reference in New Issue
Block a user