Commit 6c6a3d19 by 杨林龙

完成基本开发

1 parent 02c17e9c
......@@ -81,4 +81,9 @@ public class DubboConfig {
public UserMgrService userMgrService() {
return referenceBuilderFactory.builder(UserMgrService.class).check(false).timeout(30000).build();
}
@Bean
public IceOpenApiService iceOpenApiService() {
return referenceBuilderFactory.builder(IceOpenApiService.class).check(false).timeout(30000).build();
}
}
package com.glsx.controller;
import cn.com.glsx.openplatform.service.DeviceMgrService;
import cn.com.glsx.openplatform.service.IceOpenApiService;
import cn.com.glsx.openplatform.vo.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;
import java.util.List;
import java.util.Map;
@RestController
@RequestMapping(value = "/iceOpenApi")
public class IceOpenApiController {
@Autowired
private IceOpenApiService iceOpenApiService;
@RequestMapping(value = "/getDataView", method = RequestMethod.GET)
@ResponseBody
public R getUserInfo(int userId) {
Map<String, Integer> dataViewMap = iceOpenApiService.getDataView(userId);
return R.ok().data(dataViewMap);
}
}
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!