|
@@ -266,6 +266,203 @@ define({ "api": [
|
|
|
"filename": "/root/input/content/v1/Review.php",
|
|
|
"groupTitle": "Comment"
|
|
|
},
|
|
|
+ {
|
|
|
+ "type": "get",
|
|
|
+ "url": "v1/share.reflux",
|
|
|
+ "title": "分享回流",
|
|
|
+ "version": "1.0.0",
|
|
|
+ "name": "share_reflux",
|
|
|
+ "group": "Comment",
|
|
|
+ "description": "<p>用户分享回流接口,当path路径中有share_id时,请调用本接口</p>",
|
|
|
+ "parameter": {
|
|
|
+ "fields": {
|
|
|
+ "Parameter": [
|
|
|
+ {
|
|
|
+ "group": "Parameter",
|
|
|
+ "type": "Number",
|
|
|
+ "optional": false,
|
|
|
+ "field": "appid",
|
|
|
+ "description": "<p>小程序id</p>"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "group": "Parameter",
|
|
|
+ "type": "Number",
|
|
|
+ "optional": false,
|
|
|
+ "field": "uid",
|
|
|
+ "description": "<p>用户id</p>"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "group": "Parameter",
|
|
|
+ "type": "String",
|
|
|
+ "optional": false,
|
|
|
+ "field": "session",
|
|
|
+ "description": "<p>验证用户的session</p>"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "group": "Parameter",
|
|
|
+ "type": "Number",
|
|
|
+ "optional": false,
|
|
|
+ "field": "share_uid",
|
|
|
+ "description": "<p>分享人的用户id</p>"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "group": "Parameter",
|
|
|
+ "type": "Number",
|
|
|
+ "optional": false,
|
|
|
+ "field": "share_id",
|
|
|
+ "description": "<p>分享的id</p>"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "group": "Parameter",
|
|
|
+ "type": "Number",
|
|
|
+ "optional": false,
|
|
|
+ "field": "share_key",
|
|
|
+ "description": "<p>分享的session</p>"
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "success": {
|
|
|
+ "fields": {
|
|
|
+ "Success 200": [
|
|
|
+ {
|
|
|
+ "group": "Success 200",
|
|
|
+ "type": "Bool",
|
|
|
+ "optional": false,
|
|
|
+ "field": "state",
|
|
|
+ "description": "<p>是否成功,无需关注这个接口返回值</p>"
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ "examples": [
|
|
|
+ {
|
|
|
+ "title": "操作成功",
|
|
|
+ "content": "{\"status\":1,\"code\":1,\"msg\":\"success\",\"data\":true}",
|
|
|
+ "type": "json"
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ "error": {
|
|
|
+ "examples": [
|
|
|
+ {
|
|
|
+ "title": "操作失败",
|
|
|
+ "content": "{\"status\":2,\"code\":1,\"msg\":\"\\u9519\\u8bef\\u7684\\u5c0f\\u7a0b\\u5e8fid\"}",
|
|
|
+ "type": "json"
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ "filename": "/root/input/content/v1/Share.php",
|
|
|
+ "groupTitle": "Comment"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "get",
|
|
|
+ "url": "v1/share.submit",
|
|
|
+ "title": "提交分享",
|
|
|
+ "version": "1.0.0",
|
|
|
+ "name": "share_submit",
|
|
|
+ "group": "Comment",
|
|
|
+ "description": "<p>用户提交分享接口</p>",
|
|
|
+ "parameter": {
|
|
|
+ "fields": {
|
|
|
+ "Parameter": [
|
|
|
+ {
|
|
|
+ "group": "Parameter",
|
|
|
+ "type": "Number",
|
|
|
+ "optional": false,
|
|
|
+ "field": "appid",
|
|
|
+ "description": "<p>小程序id</p>"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "group": "Parameter",
|
|
|
+ "type": "Number",
|
|
|
+ "optional": false,
|
|
|
+ "field": "uid",
|
|
|
+ "description": "<p>用户id</p>"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "group": "Parameter",
|
|
|
+ "type": "String",
|
|
|
+ "optional": false,
|
|
|
+ "field": "session",
|
|
|
+ "description": "<p>验证用户的session</p>"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "group": "Parameter",
|
|
|
+ "type": "Number",
|
|
|
+ "optional": false,
|
|
|
+ "field": "type",
|
|
|
+ "description": "<p>分享的类型:1为资讯2为课程</p>"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "group": "Parameter",
|
|
|
+ "type": "Number",
|
|
|
+ "optional": false,
|
|
|
+ "field": "id",
|
|
|
+ "description": "<p>分享的类型id</p>"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "group": "Parameter",
|
|
|
+ "type": "String",
|
|
|
+ "optional": false,
|
|
|
+ "field": "content",
|
|
|
+ "description": "<p>分享的内容</p>"
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "success": {
|
|
|
+ "fields": {
|
|
|
+ "Success 200": [
|
|
|
+ {
|
|
|
+ "group": "Success 200",
|
|
|
+ "type": "Number",
|
|
|
+ "optional": false,
|
|
|
+ "field": "share_uid",
|
|
|
+ "description": "<p>用户id</p>"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "group": "Success 200",
|
|
|
+ "type": "String",
|
|
|
+ "optional": false,
|
|
|
+ "field": "share_key",
|
|
|
+ "description": "<p>分享的session</p>"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "group": "Success 200",
|
|
|
+ "type": "Number",
|
|
|
+ "optional": false,
|
|
|
+ "field": "share_id",
|
|
|
+ "description": "<p>分享的唯一id</p>"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "group": "Success 200",
|
|
|
+ "type": "String",
|
|
|
+ "optional": false,
|
|
|
+ "field": "desc",
|
|
|
+ "description": "<p>请将上述几个字段都放到分享的path中:/path/?share_uid=1&share_key=1&share_id=1</p>"
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ "examples": [
|
|
|
+ {
|
|
|
+ "title": "操作成功",
|
|
|
+ "content": "{\"status\":1,\"code\":1,\"msg\":\"success\",\"data\":{\"type\":1,\"id\":1,\"uid\":1,\"key\":\"11\", \"share_id\":1}}",
|
|
|
+ "type": "json"
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ "error": {
|
|
|
+ "examples": [
|
|
|
+ {
|
|
|
+ "title": "操作失败",
|
|
|
+ "content": "{\"status\":2,\"code\":1,\"msg\":\"\\u9519\\u8bef\\u7684\\u5c0f\\u7a0b\\u5e8fid\"}",
|
|
|
+ "type": "json"
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ "filename": "/root/input/content/v1/Share.php",
|
|
|
+ "groupTitle": "Comment"
|
|
|
+ },
|
|
|
{
|
|
|
"type": "get",
|
|
|
"url": "v1/vote.submit",
|