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()); } }