|
@@ -1,10 +1,11 @@
|
|
package com.sooka.sponest.mobile.system.version.controller;
|
|
package com.sooka.sponest.mobile.system.version.controller;
|
|
|
|
|
|
import com.ruoyi.common.core.web.domain.AjaxResult;
|
|
import com.ruoyi.common.core.web.domain.AjaxResult;
|
|
-import com.sooka.sponest.mobile.system.version.service.AppVersionService;
|
|
|
|
|
|
+import com.sooka.sponest.mobile.remoteapi.RemoteSystemBaseService;
|
|
import io.swagger.annotations.ApiOperation;
|
|
import io.swagger.annotations.ApiOperation;
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
|
+import org.springframework.web.bind.annotation.RequestParam;
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
import javax.annotation.Resource;
|
|
@@ -14,7 +15,7 @@ import javax.annotation.Resource;
|
|
public class AppVersionController {
|
|
public class AppVersionController {
|
|
|
|
|
|
@Resource
|
|
@Resource
|
|
- AppVersionService appVersionService;
|
|
|
|
|
|
+ RemoteSystemBaseService remoteSystemBaseService;
|
|
|
|
|
|
/**
|
|
/**
|
|
* 手机端获取版本
|
|
* 手机端获取版本
|
|
@@ -25,8 +26,7 @@ public class AppVersionController {
|
|
**/
|
|
**/
|
|
@ApiOperation(value = "获取版本", notes = "获取版本")
|
|
@ApiOperation(value = "获取版本", notes = "获取版本")
|
|
@PostMapping("getVersionInfo")
|
|
@PostMapping("getVersionInfo")
|
|
- public AjaxResult getVersionInfo() {
|
|
|
|
- return appVersionService.getVersionInfo();
|
|
|
|
|
|
+ public AjaxResult getVersionInfo(@RequestParam("packageName") String packageName) {
|
|
|
|
+ return remoteSystemBaseService.getVersionInfo(packageName);
|
|
}
|
|
}
|
|
-
|
|
|
|
}
|
|
}
|