【改进】APP下载接口文档

This commit is contained in:
MichaelWin
2026-01-27 15:44:02 +08:00
parent bdd48ead74
commit c93a74e9a5

View File

@@ -4,6 +4,7 @@ import com.corewing.app.common.Result;
import com.corewing.app.entity.AppVersion; import com.corewing.app.entity.AppVersion;
import com.corewing.app.service.AppVersionService; import com.corewing.app.service.AppVersionService;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController; import org.springframework.web.bind.annotation.RestController;
@@ -13,14 +14,15 @@ import javax.annotation.Resource;
/** /**
* 获取最新的APP版本 * 获取最新的APP版本
*/ */
@Api("最新APP版本") @Api(tags = "官网APP版本")
@RestController @RestController
@RequestMapping("/api/app") @RequestMapping("/api/app")
public class AppVersionWebsiteController { public class WebsiteAppVersionController {
@Resource @Resource
private AppVersionService appVersionService; private AppVersionService appVersionService;
@ApiOperation("获取最新APP版本")
@GetMapping("/getAppVersion") @GetMapping("/getAppVersion")
public Result<AppVersion> getAppVersion() { public Result<AppVersion> getAppVersion() {
return Result.success(appVersionService.getAppVersion()); return Result.success(appVersionService.getAppVersion());