|
@ -13,6 +13,7 @@ import com.yihu.wlyy.wechat.util.WeiXinTempMsgSendUtils;
|
|
import io.swagger.annotations.Api;
|
|
import io.swagger.annotations.Api;
|
|
import io.swagger.annotations.ApiOperation;
|
|
import io.swagger.annotations.ApiOperation;
|
|
import io.swagger.annotations.ApiParam;
|
|
import io.swagger.annotations.ApiParam;
|
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
import org.json.JSONObject;
|
|
import org.json.JSONObject;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
@ -148,9 +149,14 @@ public class ThirdJkEduArticleController extends BaseController {
|
|
@ApiParam(name = "articleCategoryId", value = "文章类别ID")
|
|
@ApiParam(name = "articleCategoryId", value = "文章类别ID")
|
|
@RequestParam(value = "articleCategoryId", required = false,defaultValue = "1") String articleCategoryId,
|
|
@RequestParam(value = "articleCategoryId", required = false,defaultValue = "1") String articleCategoryId,
|
|
@ApiParam(name = "articleCategoryName", value = "文章类别名称")
|
|
@ApiParam(name = "articleCategoryName", value = "文章类别名称")
|
|
@RequestParam(value = "articleCategoryName", required = false) String articleCategoryName){
|
|
|
|
|
|
@RequestParam(value = "articleCategoryName", required = false) String articleCategoryName,
|
|
|
|
@ApiParam(name = "userType", value = "1医生 2居民")
|
|
|
|
@RequestParam(value = "userType", required = false) String userType){
|
|
try {
|
|
try {
|
|
thirdJkEduArticleService.saveArticleCollection(articleId,articleCategoryId,articleCategoryName,getUID(),1);
|
|
|
|
|
|
if(StringUtils.isBlank(userType)){
|
|
|
|
userType = "1";
|
|
|
|
}
|
|
|
|
thirdJkEduArticleService.saveArticleCollection(articleId,articleCategoryId,articleCategoryName,getUID(),Integer.parseInt(userType));
|
|
// thirdJkEduArticleService.saveArticleCollection(articleId,articleCategoryId,articleCategoryName,"0de7295862dd11e69faffa163e8aee56",1);
|
|
// thirdJkEduArticleService.saveArticleCollection(articleId,articleCategoryId,articleCategoryName,"0de7295862dd11e69faffa163e8aee56",1);
|
|
|
|
|
|
return success("收藏成功!");
|
|
return success("收藏成功!");
|