|
@@ -1546,6 +1546,7 @@ func (this *UserCommonController) LoginPublic() {
|
|
|
|
|
|
// @Title 获取我的留言
|
|
|
// @Description 获取我的留言列表
|
|
|
+// @Param CommentType query int true "留言种类,1报告 2微路演"
|
|
|
// @Success 200 {object} models.CygxCommentListResp
|
|
|
// @router /comment/list [get]
|
|
|
func (this *UserController) CommnetList() {
|
|
@@ -1561,8 +1562,10 @@ func (this *UserController) CommnetList() {
|
|
|
br.Ret = 408
|
|
|
return
|
|
|
}
|
|
|
+ commentType, _ := this.GetInt("CommentType", 1)
|
|
|
+
|
|
|
userId := this.User.UserId
|
|
|
- commentlist, err := models.GetCommentList(userId)
|
|
|
+ commentlist, err := models.GetCommentList(userId, commentType)
|
|
|
if err != nil && err.Error() != utils.ErrNoRow() {
|
|
|
br.Msg = "获取失败"
|
|
|
br.ErrMsg = "获取我的留言列表失败,Err:" + err.Error()
|