🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
## :-: **获取(个人/所有)用户分享作品数据** #### 说明:传token获取用户分享作品;不传则获取所有分享作品。 ~~~[api] post:/index/opus/index *string:token=7cfd27a233ad389dd11ed7f66bc5b8d4#header模式向服务器传token码 string:myOpus=yes#是否获取自己的标识 <<< ssuccess { "code": 0, "msg": "获取成功", "user": { "id": 2, "userid": null, "email": "123456@qq.com", "password": "14e1b600b1fd579f47433b88e8d85291", "paypwd": null, "sex": 0, "birthday": 0, "reg_time": 1542781390, "last_login_time": 0, "last_login_ip": "", "qq": "", "mobile": "18092591522", "mobile_validated": 1, "oauth": "", "openid": null, "unionid": null, "avatar": null, "province": 0, "city": 0, "district": 0, "email_validated": 0, "name": null, "username": "嘻嘻", "level": 1, "is_lock": 0, "token": "", "sign": "", "status": "hide", "validate": "app\\common\\validate\\Member", "opusCount": 1 }, "dataCount": 1, "data": [ { "id": 2, "uid": 2, "content": "奥里给!", "ip": "127.0.0.1", "status": 1, "create_time": "2020.07.30 08:57 52", "comment_count": 3, "member": { "id": 2, "username": "嘻嘻", "avatar": null, "validate": "app\\common\\validate\\Member" }, "comment": [ { "id": 3, "opusId": 2, "uid": 3, "comment": "哈哈哈", "status": 1, "create_time": "2020.07.31 17:04 53", "member": { "id": 3, "username": null, "avatar": null, "validate": "app\\common\\validate\\Member" } }, { "id": 4, "opusId": 2, "uid": 3, "comment": "哈哈哈", "status": 1, "create_time": "2020.08.01 10:28 09", "member": { "id": 3, "username": null, "avatar": null, "validate": "app\\common\\validate\\Member" } }, { "id": 5, "opusId": 2, "uid": 3, "comment": "哈哈哈", "status": 1, "create_time": "2020.08.01 16:22 19", "member": { "id": 3, "username": null, "avatar": null, "validate": "app\\common\\validate\\Member" } } ] } ] } ~~~ ### 返回字段说明 | 字段 | 说明 | | --- | --- | | user | 会员详情信息 | | dataCount | 作品个数 | | data | 作品列表 | | data.content | 作品列表内容 | | data.ip | 作品列表内容ip | | data.status | 等级id(0=删除 1=正常) | | data.create_time | 作品列表内容时间 | | data.comment_count | 作品列表内容评论个数 | | data.member | 作品发表者信息 | | data.comment | 作品内容评论列表 |