廖井涛
8 天以前 bad9ff47e7ed4965c6b3e93aebc38f28e97cca68
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
package com.example.erp.controller.userInfo;
 
import com.example.erp.common.Result;
import com.example.erp.service.userInfo.AppVersionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
 
@RestController
@RequestMapping("/appVersion")
public class AppVersionController {
    private final AppVersionService appVersionService;
 
    public AppVersionController(AppVersionService appVersionService) {
        this.appVersionService = appVersionService;
    }
 
 
    @PostMapping("searchVersion")
    public Result searchVersion(){
        return Result.success(appVersionService.searchVersion());
    }
}