Authored by liangyi.chen@yoho.cn

增加文章编辑接口

... ... @@ -57,6 +57,17 @@ public class GrassArticleController {
return new ApiResponse.ApiResponseBuilder().build();
}
@RequestMapping("/editArticle")
public ApiResponse editArticle(@RequestBody GrassArticleReq req){
logger.info("grassArticle editArticle begin, req is {}");
try {
grassArticleService.updateArticle(req);
} catch (PlatformException e) {
return new ApiResponse.ApiResponseBuilder().code(e.getCode()).message(e.getMessage()).build();
}
return new ApiResponse.ApiResponseBuilder().build();
}
@RequestMapping("/getUserInfo")
public ApiResponse getUserInfo(@RequestBody GrassUserManageReq req){
logger.info("grassArticle getUserInfo begin, req is {}");
... ...