ResourcesGoodsPoolController.java
1.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
package com.yohoufo.resource.controller;
import com.yoho.tools.docs.ApiOperation;
import com.yohoufo.common.ApiResponse;
import com.yohoufo.common.annotation.IgnoreSession;
import com.yohoufo.resource.service.IConfigTypeService;
import com.yohoufo.resource.service.impl.ResourcesGoodsPoolService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;
import java.util.Map;
/**
* Created by li.ma on 2018/11/17.
*/
@RestController
public class ResourcesGoodsPoolController {
private static final Logger logger = LoggerFactory.getLogger(ResourcesGoodsPoolController.class);
@Autowired
private ResourcesGoodsPoolService resourcesGoodsPoolService;
/**
* <p>获取配置列表,返回map</p>
*
*/
@ApiOperation(name = "ufo.resource.goodsPool", desc="获取首页资源位商品池")
@RequestMapping(params = "method=ufo.resource.goodsPool")
@ResponseBody
@IgnoreSession
public Map<Integer,Integer> goodsPoolList() {
logger.info("goodsPool begin.");
Map<Integer,Integer> data = resourcesGoodsPoolService.configTypeList();
logger.info("goodsPool success. result is {}", data);
return data;
}
}