|
@@ -3,6 +3,7 @@ package com.yh.saas.plugin.yiliangyiyun.controller;
|
|
|
|
|
|
import com.yh.saas.plugin.yiliangyiyun.entity.AppVersion;
|
|
|
import com.yh.saas.plugin.yiliangyiyun.service.IAppVersionService;
|
|
|
+import com.yh.saas.plugin.yiliangyiyun.util.GeTuiUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
@@ -23,14 +24,22 @@ import org.springframework.web.bind.annotation.RestController;
|
|
|
public class AppVersionController {
|
|
|
@Autowired
|
|
|
private IAppVersionService appVersionService;
|
|
|
+ @Autowired
|
|
|
+ private GeTuiUtils geTuiUtils;
|
|
|
/**
|
|
|
- * 查看合同信息
|
|
|
+ * 查看版本信息
|
|
|
*/
|
|
|
@GetMapping("/selectInfo")
|
|
|
public AppVersion selectInfo(@RequestParam String appid, String version, String imei) {
|
|
|
return appVersionService.selectInfo(appid,version,imei);
|
|
|
}
|
|
|
-
|
|
|
+ /**
|
|
|
+ * 推送测试
|
|
|
+ */
|
|
|
+ @GetMapping("/test")
|
|
|
+ public void test(@RequestParam String userId) {
|
|
|
+ geTuiUtils.pushByCid("推送测试","推送测试内容",userId);
|
|
|
+ }
|
|
|
|
|
|
}
|
|
|
|