package cn.com.citycloud.rent.controller;

import cn.com.citycloud.common.Response;
import cn.com.citycloud.configuration.BasicController;
import cn.com.citycloud.entity.querySrm.SrmBankInfo;
import cn.com.citycloud.rent.service.querySrm.QuerySrmService;
import com.alibaba.fastjson.JSONObject;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;
import java.util.Map;


/**
 * 商品控制层
 *
 * @author changyq
 * @version 2017/3/6 19:02
 */
@RestController
@RequestMapping("/query/srm")
@Api(tags = {"rentApply"}, description = "设备租赁申请")
public class QuerySrmController extends BasicController {

    private static final Logger logger = LoggerFactory.getLogger(QuerySrmController.class);

    @Autowired
    private QuerySrmService querySrmService;

    @RequestMapping(value = "/getBankData", method = RequestMethod.GET)
    @ApiOperation(value = "查询SRM银行数据", notes = "查询SRM银行数据", httpMethod = "GET")
    public Response<List<SrmBankInfo>> getBankData(Integer shopId) {

        List<SrmBankInfo> SrmBankInfoList = querySrmService.getBankData(shopId);
        return new Response().message("").success().data(SrmBankInfoList);

    }

}
