Commit 08f00124 by 阳浪

查看我的投稿接口

parent 7a784d71
...@@ -59,6 +59,25 @@ public class SitePublicationManageController { ...@@ -59,6 +59,25 @@ public class SitePublicationManageController {
} }
/** /**
* 投稿列表
*
* @return
*/
@ApiOperation(value = "查看我的投稿", notes = "查看我的投稿", response = PublicationParamVO.class)
@PostMapping("/listByMyself")
public Response<Page<PublicationVo>> listByMyself(@RequestBody PublicationParamVO vo) {
try {
vo.setCreateById(ContextHolder.get().getAccountId());
vo.setSiteId(ContextHolder.get().getSiteId());
return Response.ok(publicationManageFeignClients.list(vo));
} catch (Exception e) {
e.printStackTrace();
LOGGER.error("", e);
return Response.fail(ReturnCode.SERVICE_UNAVAILABLE.getCode(),ReturnCode.SERVICE_UNAVAILABLE.getMsg());
}
}
/**
* 投稿发布的列表 * 投稿发布的列表
* *
*/ */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment