🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
>发布评论内容 ~~~[api] post:/index.php/comment/Apicomment/member_submit *string:sign_name=curriculum#记录的内容标识 *int:sign_id=1#评论内容的id,如果sign为product表示产品的id,sign为curriculum表示课程的id string:title=评论标题#评论标题 *string:content=评论内容#评论内容 <<< success { "err": 0, "data": { "id": 10, "title": "", "content": "喜欢林老师的课!", "addtime": 12345678910, "sign": "product", "sign_id": 10, "sign_info": { "sign": "产品", "title": "产品名称", "describe": "描述", "thumb": "http://open.cowcms.com/Public/css_js_font_img/plugg/img/logo.png", }, "userinfo": { "id": 10, "name": "小怪兽123", "headPath": "http://open.cowcms.com/Public/css_js_font_img/plugg/img/logo.png" } } } <<< error { "err": 1, "code": 1000, "content": "错误信息" } ~~~ >获取评论列表 ~~~[api] get:/index.php/comment/Apicomment/getList *string:sign_name=curriculum#记录的内容标识 *int:sign_id=1#评论内容的id,如果sign为product表示产品的id,sign为curriculum表示课程的id int:pagesize=10#每页显示个数 int:page=1#显示页码数 string:sort= id #排序字段 string:sort_type= asc#排序类型 <<< success { "err": 0, "page": 1, "pageTotal": 10, "pageSize": 10, "count": 1, "data": [ { "id": 10, "title": "", "content": "喜欢林老师的课!", "addtime": 12345678910, "userinfo": { "id": 10, "name": "小怪兽123", "headPath": "http://open.cowcms.com/Public/css_js_font_img/plugg/img/logo.png" } } ] } <<< error { "err": 1, "code": 1000, "content": "错误信息" } ~~~ >获取评论详情 ~~~[api] get:/index.php/comment/Apicomment/getInfo *int:id=1#评论记录的id <<< success { "err": 0, "data": { "id": 10, "title": "", "content": "喜欢林老师的课!", "addtime": 12345678910, "sign": "product", "sign_id": 10, "sign_info": { "sign": "产品", "title": "产品名称", "describe": "描述", "thumb": "http://open.cowcms.com/Public/css_js_font_img/plugg/img/logo.png", }, "userinfo": { "id": 10, "name": "小怪兽123", "headPath": "http://open.cowcms.com/Public/css_js_font_img/plugg/img/logo.png" } } } <<< error { "err": 1, "code": 1000, "content": "错误信息" } ~~~ >获取当前登录会员评论列表 ~~~[api] get:/index.php/comment/Apicomment/member_getList string:sign_name=curriculum#记录的内容标识 int:sign_id=1#评论内容的id,如果sign为product表示产品的id,sign为curriculum表示课程的id int:pagesize=10#每页显示个数 int:page=1#显示页码数 string:sort= id #排序字段 string:sort_type= asc#排序类型 <<< success { "err": 0, "page": 1, "pageTotal": 10, "pageSize": 10, "count": 1, "data": [ { "id": 10, "title": "", "content": "喜欢林老师的课!", "addtime": 12345678910, "sign": "product", "sign_id": 10, "sign_info": { "sign": "产品", "title": "产品名称", "describe": "描述", "thumb": "http://open.cowcms.com/Public/css_js_font_img/plugg/img/logo.png", } } ] } <<< error { "err": 1, "code": 1000, "content": "错误信息" } ~~~