package com.ruoyi.controller;

import com.ruoyi.frequency.appversion.service.AppVersionService;
import com.ruoyi.response.ResponseData;
import com.ruoyi.vo.RyController;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * 版本更新
 *
 * @author a
 * @date 2023/8/18 15:28
 */

@RestController
@CrossOrigin
@RequestMapping("/api/appVersion")
@Api(tags = "版本更新")
public class ApiAppVersionController extends RyController {

    @Autowired
    private AppVersionService appVersionService;

    @PostMapping("/isUpgrade/{appType}")
    @ApiOperation(value = "版本更新", notes = "版本更新")
    public ResponseData isUpgrade(@PathVariable Integer appType) {
        return appVersionService.isUpgrade(appType);
    }

}
