|
@ -608,7 +608,7 @@ public class DoctorHealthEduArticleController extends WeixinBaseController {
|
|
|
public String getDoctorArticalList(@ApiParam(name = "articleTitle", value = "文章标题")
|
|
|
@RequestParam(value = "articleTitle", required = false) String articleTitle,
|
|
|
@ApiParam(name = "articleState", value = "文章状态(1、正常、2删除 3、草稿)")
|
|
|
@RequestParam(value = "articleState", required = true,defaultValue = "1") Integer articleState,
|
|
|
@RequestParam(value = "articleState", required = true) Integer articleState,
|
|
|
@ApiParam(name = "firstLevelCategoryId", value = "一级类别ID ,多个逗号隔开")
|
|
|
@RequestParam(value = "firstLevelCategoryId", required = false) String firstLevelCategoryId,
|
|
|
@ApiParam(name = "pageIndex", value = "起始页数 0开始,默认0")
|
|
@ -616,12 +616,12 @@ public class DoctorHealthEduArticleController extends WeixinBaseController {
|
|
|
@ApiParam(name = "pageSize", value = "每页显示数 ,默认5")
|
|
|
@RequestParam(value = "pageSize", required = false) Integer pageSize){
|
|
|
try {
|
|
|
// com.alibaba.fastjson.JSONArray response = healthEducationArticleService.getDoctorArticalList(articleTitle,articleState,firstLevelCategoryId,pageIndex,pageSize,getUID());
|
|
|
com.alibaba.fastjson.JSONArray response = healthEducationArticleService.getDoctorArticalList(articleTitle,articleState,firstLevelCategoryId,pageIndex,pageSize,"0de7295862dd11e69faffa163e8aee56");
|
|
|
com.alibaba.fastjson.JSONArray response = healthEducationArticleService.getDoctorArticalList(articleTitle,articleState,firstLevelCategoryId,pageIndex,pageSize,getUID());
|
|
|
// com.alibaba.fastjson.JSONArray response = healthEducationArticleService.getDoctorArticalList(articleTitle,articleState,firstLevelCategoryId,pageIndex,pageSize,"0de7295862dd11e69faffa163e8aee56");
|
|
|
return write(200,"查询成功!","data",response);
|
|
|
}catch (Exception e){
|
|
|
e.printStackTrace();
|
|
|
return write(-1,"查询失败!");
|
|
|
return error(-1,"查询失败!");
|
|
|
}
|
|
|
}
|
|
|
|
|
@ -634,7 +634,7 @@ public class DoctorHealthEduArticleController extends WeixinBaseController {
|
|
|
return write(200,"查询成功!","data",response);
|
|
|
}catch (Exception e){
|
|
|
e.printStackTrace();
|
|
|
return write(-1,"查询失败!");
|
|
|
return error(-1,"查询失败!");
|
|
|
}
|
|
|
}
|
|
|
|
|
@ -643,7 +643,7 @@ public class DoctorHealthEduArticleController extends WeixinBaseController {
|
|
|
public String getCollectionArticalList(@ApiParam(name = "articleTitle", value = "文章标题")
|
|
|
@RequestParam(value = "articleTitle", required = false) String articleTitle,
|
|
|
@ApiParam(name = "articleState", value = "文章状态(1、正常、2删除 3、草稿)")
|
|
|
@RequestParam(value = "articleState", required = true,defaultValue = "1") Integer articleState,
|
|
|
@RequestParam(value = "articleState", required = true) Integer articleState,
|
|
|
@ApiParam(name = "firstLevelCategoryId", value = "一级类别ID ,多个逗号隔开")
|
|
|
@RequestParam(value = "firstLevelCategoryId", required = false) String firstLevelCategoryId,
|
|
|
@ApiParam(name = "pageIndex", value = "起始页数 0开始,默认0")
|
|
@ -656,7 +656,7 @@ public class DoctorHealthEduArticleController extends WeixinBaseController {
|
|
|
return write(200,"查询成功!","data",response);
|
|
|
}catch (Exception e){
|
|
|
e.printStackTrace();
|
|
|
return write(-1,"查询失败!");
|
|
|
return error(-1,"查询失败!");
|
|
|
}
|
|
|
}
|
|
|
|
|
@ -669,7 +669,7 @@ public class DoctorHealthEduArticleController extends WeixinBaseController {
|
|
|
return write(200,"查询成功!","data",response);
|
|
|
}catch (Exception e){
|
|
|
e.printStackTrace();
|
|
|
return write(-1,"查询失败!");
|
|
|
return error(-1,"查询失败!");
|
|
|
}
|
|
|
}
|
|
|
|
|
@ -679,12 +679,12 @@ public class DoctorHealthEduArticleController extends WeixinBaseController {
|
|
|
public String cancelArticleCollection(@ApiParam(name = "articleId", value = "文章id",defaultValue = "1")
|
|
|
@RequestParam(value = "articleId", required = true) String articleId){
|
|
|
try {
|
|
|
// String response = healthEducationArticleService.cancelArticleCollection(articleId,getUID(),1);
|
|
|
String response = healthEducationArticleService.cancelArticleCollection(articleId,"0de7295862dd11e69faffa163e8aee56",1);
|
|
|
return write(200,"查询成功!","data",response);
|
|
|
healthEducationArticleService.cancelArticleCollection(articleId,getUID(),1);
|
|
|
// healthEducationArticleService.cancelArticleCollection(articleId,"0de7295862dd11e69faffa163e8aee56",1);
|
|
|
return success("取消成功!");
|
|
|
}catch (Exception e){
|
|
|
e.printStackTrace();
|
|
|
return write(-1,"查询失败!");
|
|
|
return error(-1,"取消失败!");
|
|
|
}
|
|
|
}
|
|
|
|
|
@ -694,17 +694,17 @@ public class DoctorHealthEduArticleController extends WeixinBaseController {
|
|
|
public String saveArticleCollection(@ApiParam(name = "articleId", value = "文章id")
|
|
|
@RequestParam(value = "articleId", required = true) String articleId,
|
|
|
@ApiParam(name = "articleCategoryId", value = "文章类别ID")
|
|
|
@RequestParam(value = "articleCategoryId", required = true,defaultValue = "1") String articleCategoryId,
|
|
|
@RequestParam(value = "articleCategoryId", required = false,defaultValue = "1") String articleCategoryId,
|
|
|
@ApiParam(name = "articleCategoryName", value = "文章类别名称")
|
|
|
@RequestParam(value = "articleCategoryName", required = true) String articleCategoryName){
|
|
|
@RequestParam(value = "articleCategoryName", required = false) String articleCategoryName){
|
|
|
try {
|
|
|
// String response = healthEducationArticleService.saveArticleCollection(articleId,articleCategoryId,articleCategoryName,getUID(),1);
|
|
|
String response = healthEducationArticleService.saveArticleCollection(articleId,articleCategoryId,articleCategoryName,"0de7295862dd11e69faffa163e8aee56",1);
|
|
|
healthEducationArticleService.saveArticleCollection(articleId,articleCategoryId,articleCategoryName,getUID(),1);
|
|
|
// healthEducationArticleService.saveArticleCollection(articleId,articleCategoryId,articleCategoryName,"0de7295862dd11e69faffa163e8aee56",1);
|
|
|
|
|
|
return write(200,"查询成功!","data",response);
|
|
|
return success("收藏成功!");
|
|
|
}catch (Exception e){
|
|
|
e.printStackTrace();
|
|
|
return write(-1,"查询失败!");
|
|
|
return error(-1,"收藏失败!");
|
|
|
}
|
|
|
}
|
|
|
|
|
@ -713,7 +713,7 @@ public class DoctorHealthEduArticleController extends WeixinBaseController {
|
|
|
public String getDoctorArticalByUserId(@ApiParam(name = "articleTitle", value = "文章标题")
|
|
|
@RequestParam(value = "articleTitle", required = false) String articleTitle,
|
|
|
@ApiParam(name = "articleState", value = "文章状态(1、正常、2删除 3、草稿)")
|
|
|
@RequestParam(value = "articleState", required = true,defaultValue = "1") Integer articleState,
|
|
|
@RequestParam(value = "articleState", required = true) Integer articleState,
|
|
|
@ApiParam(name = "firstLevelCategoryId", value = "一级类别ID ,多个逗号隔开")
|
|
|
@RequestParam(value = "firstLevelCategoryId", required = false) String firstLevelCategoryId,
|
|
|
@ApiParam(name = "pageIndex", value = "起始页数 0开始,默认0")
|
|
@ -721,12 +721,12 @@ public class DoctorHealthEduArticleController extends WeixinBaseController {
|
|
|
@ApiParam(name = "pageSize", value = "每页显示数 ,默认5")
|
|
|
@RequestParam(value = "pageSize", required = false) Integer pageSize){
|
|
|
try {
|
|
|
// com.alibaba.fastjson.JSONArray response = healthEducationArticleService.getDoctorArticalByUserId(articleTitle,articleState,firstLevelCategoryId,pageIndex,pageSize,getUID());
|
|
|
com.alibaba.fastjson.JSONArray response = healthEducationArticleService.getDoctorArticalByUserId(articleTitle,articleState,firstLevelCategoryId,pageIndex,pageSize,"0de7295862dd11e69faffa163e8aee56");
|
|
|
com.alibaba.fastjson.JSONArray response = healthEducationArticleService.getDoctorArticalByUserId(articleTitle,articleState,firstLevelCategoryId,pageIndex,pageSize,getUID());
|
|
|
// com.alibaba.fastjson.JSONArray response = healthEducationArticleService.getDoctorArticalByUserId(articleTitle,articleState,firstLevelCategoryId,pageIndex,pageSize,"0de7295862dd11e69faffa163e8aee56");
|
|
|
return write(200,"查询成功!","data",response);
|
|
|
}catch (Exception e){
|
|
|
e.printStackTrace();
|
|
|
return write(-1,"查询失败!");
|
|
|
return error(-1,"查询失败!");
|
|
|
}
|
|
|
}
|
|
|
|