ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
>发布评论内容 ~~~[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": "错误信息" } ~~~