|
|
@@ -9,6 +9,7 @@ import org.springframework.web.bind.annotation.RestController;
|
|
|
import com.goafanti.achievement.service.AchievementInterestService;
|
|
|
import com.goafanti.achievement.service.AchievementService;
|
|
|
import com.goafanti.banners.service.BannersService;
|
|
|
+import com.goafanti.comment.service.CommentService;
|
|
|
import com.goafanti.common.bo.Result;
|
|
|
import com.goafanti.common.constant.ErrorConstants;
|
|
|
import com.goafanti.common.controller.BaseApiController;
|
|
|
@@ -29,6 +30,8 @@ public class OpenAppUserController extends BaseApiController {
|
|
|
@Resource
|
|
|
private MessageService messageService;
|
|
|
@Resource
|
|
|
+ private CommentService commentService;
|
|
|
+ @Resource
|
|
|
private EasemobUtils easemobUtils;
|
|
|
@Resource
|
|
|
private BannersService bannersService;
|
|
|
@@ -77,7 +80,7 @@ public class OpenAppUserController extends BaseApiController {
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * 专家详情
|
|
|
+ * 专家、顾问详情
|
|
|
*/
|
|
|
@RequestMapping(value = "/expertsDetail", method = RequestMethod.GET)
|
|
|
public Result expertsDetail(String id ) {
|
|
|
@@ -90,6 +93,20 @@ public class OpenAppUserController extends BaseApiController {
|
|
|
return res;
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 专家、顾问详情
|
|
|
+ */
|
|
|
+ @RequestMapping(value = "/expertsComment", method = RequestMethod.GET)
|
|
|
+ public Result expertsComment(String id ,Integer pageNo,Integer pageSize) {
|
|
|
+ Result res = new Result();
|
|
|
+ if (StringUtils.isBlank(id)) {
|
|
|
+ res.getError().add(buildError(ErrorConstants.PARAM_EMPTY_ERROR,"专家必须指定","专家"));
|
|
|
+ return res;
|
|
|
+ }
|
|
|
+ res.setData(commentService.selectExpertsComment(id, pageNo, pageSize));
|
|
|
+ return res;
|
|
|
+ }
|
|
|
+
|
|
|
@RequestMapping(value = "/index", method = RequestMethod.GET)
|
|
|
public Result index(){
|
|
|
Result res = new Result();
|