guoyujie
2 天以前 c4b9a339caff12e95f61c3d5dc950aafcc8c566c
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.seccess(appVersionService.searchVersion());
    }
}