|
@@ -1,8 +1,12 @@
|
|
package com.qmth.demo.api.controller;
|
|
package com.qmth.demo.api.controller;
|
|
|
|
|
|
import com.qmth.boot.api.constant.ApiConstant;
|
|
import com.qmth.boot.api.constant.ApiConstant;
|
|
|
|
+import com.qmth.boot.core.retrofit.utils.SignatureInfo;
|
|
import com.qmth.boot.core.solar.service.SolarService;
|
|
import com.qmth.boot.core.solar.service.SolarService;
|
|
|
|
+import com.qmth.boot.tools.signature.SignatureType;
|
|
|
|
+import com.qmth.demo.api.client.SolarTestClient;
|
|
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,13 +18,21 @@ public class SolarController {
|
|
@Resource
|
|
@Resource
|
|
private SolarService solarService;
|
|
private SolarService solarService;
|
|
|
|
|
|
|
|
+ @Resource
|
|
|
|
+ private SolarTestClient solarTestClient;
|
|
|
|
+
|
|
@RequestMapping("/app/info")
|
|
@RequestMapping("/app/info")
|
|
- public Object appInfo() {
|
|
|
|
- return solarService.getAppInfo();
|
|
|
|
|
|
+ public Object appInfo(@RequestParam String accessKey, @RequestParam String accessSecret) {
|
|
|
|
+ return solarTestClient.getAppInfo(new SignatureInfo(SignatureType.SECRET, accessKey, accessSecret).toString());
|
|
}
|
|
}
|
|
|
|
|
|
- @RequestMapping("/org/list")
|
|
|
|
- public Object orgList() {
|
|
|
|
- return solarService.getOrgList();
|
|
|
|
- }
|
|
|
|
|
|
+ // @RequestMapping("/app/info")
|
|
|
|
+ // public Object appInfo() {
|
|
|
|
+ // return solarService.getAppInfo();
|
|
|
|
+ // }
|
|
|
|
+ //
|
|
|
|
+ // @RequestMapping("/org/list")
|
|
|
|
+ // public Object orgList() {
|
|
|
|
+ // return solarService.getOrgList();
|
|
|
|
+ // }
|
|
}
|
|
}
|