|
|
|
@@ -1,6 +1,8 @@ |
|
|
|
package com.iformall.controller; |
|
|
|
|
|
|
|
import com.iformall.common.Result; |
|
|
|
import com.iformall.common.ResultData; |
|
|
|
import com.iformall.domain.po.WxActivity; |
|
|
|
import com.iformall.service.WxActivityService; |
|
|
|
import io.swagger.annotations.Api; |
|
|
|
import io.swagger.annotations.ApiImplicitParam; |
|
|
|
@@ -12,6 +14,8 @@ import org.springframework.web.bind.annotation.GetMapping; |
|
|
|
import org.springframework.web.bind.annotation.RequestMapping; |
|
|
|
import org.springframework.web.bind.annotation.RestController; |
|
|
|
|
|
|
|
import javax.servlet.http.HttpServletResponse; |
|
|
|
|
|
|
|
/** |
|
|
|
* @author gongbiao |
|
|
|
*/ |
|
|
|
@@ -32,4 +36,20 @@ public class WxActivityController extends BaseController { |
|
|
|
return wxActivityService.queryStatus(id); |
|
|
|
} |
|
|
|
|
|
|
|
@ApiOperation("根据id查询接口") |
|
|
|
@GetMapping("/findById") |
|
|
|
@ApiImplicitParam(name = "id", value = "id", dataType = "Long", paramType = "query", required = true) |
|
|
|
public ResultData findById(Long id) { |
|
|
|
WxActivity wxActivity = wxActivityService.getById(id); |
|
|
|
return new ResultData(Result.SUCCESS, "查询成功", wxActivity); |
|
|
|
} |
|
|
|
|
|
|
|
@ApiOperation("输出富文本内容") |
|
|
|
@GetMapping("/printHtmlById") |
|
|
|
@ApiImplicitParam(name = "id", value = "id", dataType = "Long", paramType = "query", required = true) |
|
|
|
public void printHtmlById(Long id, HttpServletResponse response) { |
|
|
|
wxActivityService.printHtmlById(id, response); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |