|
|
|
@@ -1,5 +1,6 @@ |
|
|
|
package com.iformall.controller; |
|
|
|
|
|
|
|
import com.iformall.annotation.RedisCache; |
|
|
|
import com.iformall.common.ResultData; |
|
|
|
import com.iformall.domain.po.WxTopic; |
|
|
|
import com.iformall.enums.EnumWxTopicType; |
|
|
|
@@ -21,6 +22,7 @@ public class WxTopicController extends BaseController { |
|
|
|
@Autowired |
|
|
|
private WxTopicService wxTopicService; |
|
|
|
|
|
|
|
@RedisCache |
|
|
|
@GetMapping("show") |
|
|
|
public ResultData show(Integer topicType) { |
|
|
|
logger.debug("[" + getIpAddr() + "] WxTopicController::show"); |
|
|
|
@@ -33,6 +35,7 @@ public class WxTopicController extends BaseController { |
|
|
|
return new ResultData(wxTopicService.show(wxTopic)); |
|
|
|
} |
|
|
|
|
|
|
|
@RedisCache |
|
|
|
@GetMapping("showList") |
|
|
|
public ResultData showList() { |
|
|
|
logger.debug("[" + getIpAddr() + "] WxTopicController::showList"); |
|
|
|
@@ -42,6 +45,7 @@ public class WxTopicController extends BaseController { |
|
|
|
return new ResultData(wxTopicService.showList(wxTopic)); |
|
|
|
} |
|
|
|
|
|
|
|
@RedisCache |
|
|
|
@GetMapping("findById") |
|
|
|
public ResultData findById(WxTopic wxTopic) { |
|
|
|
logger.debug("[" + getIpAddr() + "] WxTopicController::findById"); |
|
|
|
|