ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
> 用户之间互发站内信息 ~~~[api] get:/index.php/message/Apimessage/member_send_message *int:from_userid= #发送用户 *int:to_userid= #收信用户 string:title= #信息标题 *string:content= #信息内容 <<< success { "err": 0, "data": { "id": 1, "title": "信息标题", "content": "信息内容", "addtime": 12345678910, "system_type": 1, "islook": 1, "from_userinfo": { "id": 10, "nickname": "昵称", "headpath": "http://open.cowcms.com/Public/css_js_font_img/plugg/img/logo.png", "logintime": 123465678910 }, "to_userinfo": { "id": 11, "nickname": "昵称", "headpath": "http://open.cowcms.com/Public/css_js_font_img/plugg/img/logo.png", "logintime": 123465678910 } } } <<< error { "err": 1, "code": 1000, "content": "错误信息" } ~~~ > 获取当前登录用户站内接收信息列表 ~~~[api] get:/index.php/message/Apimessage/member_to_message_list int:system_type=0 #信息类型 0:全部信息 1:系统信息, 2:收益信息,3:分享通知,4:评论信息,9:其它信息 int:pagesize=10#每页显示个数 int:page=1#显示页码数 string:keyword= #检索的关键字 string:sort= id #排序字段 string:sort_type= asc#排序类型 int:set_look= 0#是否设置查看状态,0:不设置,1:设置 <<< success { "err": 0, "page": 1, "pageTotal": 10, "pageSize": 10, "count": 1, "data": [ { "id": 1, "title": "信息标题", "content": "信息内容", "addtime": 12345678910, "system_type": 1, "islook": 1, "from_userinfo": { "id": 10, "nickname": "昵称", "headpath": "http://open.cowcms.com/Public/css_js_font_img/plugg/img/logo.png", "logintime": 123465678910 }, "to_userinfo": { "id": 11, "nickname": "昵称", "headpath": "http://open.cowcms.com/Public/css_js_font_img/plugg/img/logo.png", "logintime": 123465678910 } } ] } <<< error { "err": 1, "code": 1000, "content": "错误信息" } ~~~ > 获取当前登录用户站内发送信息列表 ~~~[api] get:/index.php/message/Apimessage/member_form_message_list int:system_type=0 #信息类型 0:全部信息 1:系统信息, 2:收益信息,3:分享通知,4:评论信息,9:其它信息 int:pagesize=10#每页显示个数 int:page=1#显示页码数 string:keyword= #检索的关键字 string:sort= id #排序字段 string:sort_type= asc#排序类型 int:set_look= 0#是否设置查看状态,0:不设置,1:设置 <<< success { "err": 0, "page": 1, "pageTotal": 10, "pageSize": 10, "count": 1, "data": [ { "id": 1, "title": "信息标题", "content": "信息内容", "addtime": 12345678910, "system_type": 1, "islook": 1, "from_userinfo": { "id": 10, "nickname": "昵称", "headpath": "http://open.cowcms.com/Public/css_js_font_img/plugg/img/logo.png", "logintime": 123465678910 }, "to_userinfo": { "id": 11, "nickname": "昵称", "headpath": "http://open.cowcms.com/Public/css_js_font_img/plugg/img/logo.png", "logintime": 123465678910 } } ] } <<< error { "err": 1, "code": 1000, "content": "错误信息" } ~~~ > 获取当前登录用户的每条站内信息 ~~~[api] get:/index.php/message/Apimessage/member_message_getInfo *int:id=0 #信息id <<< success { "err": 0, "data": { "id": 1, "title": "信息标题", "content": "信息内容", "addtime": 12345678910, "system_type": 1, "islook": 1, "from_userinfo": { "id": 10, "nickname": "昵称", "headpath": "http://open.cowcms.com/Public/css_js_font_img/plugg/img/logo.png", "logintime": 123465678910 }, "to_userinfo": { "id": 11, "nickname": "昵称", "headpath": "http://open.cowcms.com/Public/css_js_font_img/plugg/img/logo.png", "logintime": 123465678910 } } } <<< error { "err": 1, "code": 1000, "content": "错误信息" } ~~~ > 获取当前登录用户站内信息已读未都的条数 ~~~[api] get:/index.php/message/Apimessage/member_message_getCount <<< success { "err": 0, "data": { "1": { "total": 10, "already_read": 8, "un_read": 2 }, "3": { "total": 10, "already_read": 8, "un_read": 2 } } <<< error { "err": 1, "code": 1000, "content": "错误信息" } ~~~