IceOpenApiController.java 961 Bytes
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);
    }
}