|
|
|
@@ -9,6 +9,7 @@ import org.slf4j.LoggerFactory; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.web.bind.annotation.*; |
|
|
|
|
|
|
|
|
|
|
|
@RestController |
|
|
|
@RequestMapping("/api/topic") |
|
|
|
@Api(description = "专题相关接口") |
|
|
|
@@ -26,5 +27,12 @@ public class WxTopicController extends BaseController { |
|
|
|
return new ResultData(wxTopicService.show(wxTopic)); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@GetMapping("findById") |
|
|
|
public ResultData findById(WxTopic wxTopic) { |
|
|
|
logger.debug("[" + getIpAddr() + "] WxTopicController::findById"); |
|
|
|
String tenantId = getTenantId(); |
|
|
|
wxTopic.setTenantId(tenantId); |
|
|
|
WxTopic queryTopic = wxTopicService.findById(wxTopic); |
|
|
|
return new ResultData(queryTopic); |
|
|
|
} |
|
|
|
} |