Commit cefa2de8 by 朱亚东

update 公共评论

parent 4b70f2f5
No preview for this file type
No preview for this file type
{
{
"info": {
"_postman_id": "1d4f980b-7403-4dd5-ae4e-f95201c11114",
"name": "公共评论",
"schema": "https://schema.getpostman.com/json/collection/v2.0.0/collection.json"
},
"item": [
{
"name": "APP端文章点赞",
"event": [
{
"listen": "test",
"script": {
"id": "587ed404-61d0-469c-af27-f160ecde9086",
"exec": [
"var jsonData = JSON.parse(responseBody);",
"if(jsonData.code === \"0\")",
"{",
" tests[\"code\"] = true;",
"}",
"else{",
" console.log(\"接口返回错误:\"+jsonData.msg);",
" tests[\"code\"+jsonData.msg]=false;",
"}"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "access-token",
"type": "text",
"value": "{{access-Token}}"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"commentThumbsUpTypeId\": {{commentThumbsUpTypeId}},\n \"commentThumbsUpSort\": {{commentThumbsUpSort}},\n \"thumbsUpType\": \"ARTICLE\",\n \"status\": {{status}}\n}"
},
"url": "{{gateway-user}}/app/public/comment/thumbs/up"
},
"response": []
},
{
"name": "APP端内容点赞",
"event": [
{
"listen": "test",
"script": {
"id": "587ed404-61d0-469c-af27-f160ecde9086",
"exec": [
"var jsonData = JSON.parse(responseBody);",
"if(jsonData.code === \"0\")",
"{",
" tests[\"code\"] = true;",
"}",
"else{",
" console.log(\"接口返回错误:\"+jsonData.msg);",
" tests[\"code\"+jsonData.msg]=false;",
"}"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "access-token",
"type": "text",
"value": "{{access-Token}}"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"commentThumbsUpTypeId\": {{commentThumbsUpTypeId}},\n \"commentThumbsUpSort\": {{commentThumbsUpSort}},\n \"commentReplyId\": {{commentReplyId}},\n \"thumbsUpType\": \"COMMENT\",\n \"status\": {{status}}\n}"
},
"url": "{{gateway-user}}/app/public/comment/thumbs/up"
},
"response": []
},
{
"name": "APP端文章评论",
"event": [
{
"listen": "test",
"script": {
"id": "587ed404-61d0-469c-af27-f160ecde9086",
"exec": [
"var jsonData = JSON.parse(responseBody);",
"if(jsonData.code === \"0\")",
"{",
" tests[\"code\"] = true;",
"}",
"else{",
" console.log(\"接口返回错误:\"+jsonData.msg);",
" tests[\"code\"+jsonData.msg]=false;",
"}"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "access-token",
"type": "text",
"value": "{{access-Token}}"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"commentTypeId\": {{commentTypeId}},\n \"commentSort\": \"NEWS\",\n \"commentType\": \"ARTICLE\",\n \"commentStatus\": \"COMMENT\",\n \"comment\": \"文章评论\",\n \"commentImg\": null\n}"
},
"url": "{{gateway-user}}/app/public/comment/comment"
},
"response": []
},
{
"name": "APP端内容评论",
"event": [
{
"listen": "test",
"script": {
"id": "587ed404-61d0-469c-af27-f160ecde9086",
"exec": [
"var jsonData = JSON.parse(responseBody);",
"if(jsonData.code === \"0\")",
"{",
" tests[\"code\"] = true;",
"}",
"else{",
" console.log(\"接口返回错误:\"+jsonData.msg);",
" tests[\"code\"+jsonData.msg]=false;",
"}"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "access-token",
"type": "text",
"value": "{{access-Token}}"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"commentTypeId\": {{commentTypeId}},\n \"commentSort\": \"NEWS\",\n \"toUserId\": {{toUserId}},\n \"commentReplyId\": {{commentReplyId}},\n \"commentType\": \"COMMENT\",\n \"commentStatus\": \"REPLY\",\n \"comment\": \"内容评论\",\n \"commentImg\": null\n}"
},
"url": "{{gateway-user}}/app/public/comment/comment"
},
"response": []
},
{
"name": "APP端分页获取某类型下评论列表",
"event": [
{
"listen": "test",
"script": {
"id": "587ed404-61d0-469c-af27-f160ecde9086",
"exec": [
"var jsonData = JSON.parse(responseBody);",
"if(jsonData.code === \"0\")",
"{",
" tests[\"code\"] = true;",
"}",
"else{",
" console.log(\"接口返回错误:\"+jsonData.msg);",
" tests[\"code\"+jsonData.msg]=false;",
"}"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "GET",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "access-token",
"type": "text",
"value": "{{access-Token}}"
}
],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "{{gateway-user}}/app/public/comment/list/comment/{{commentTypeId}}/{{commentSort}}?p=1&c=10",
"host": [
"{{gateway-user}}"
],
"path": [
"app",
"public",
"comment",
"list",
"comment",
"{{commentTypeId}}",
"{{commentSort}}"
],
"query": [
{
"key": "p",
"value": "1"
},
{
"key": "c",
"value": "10"
}
]
}
},
"response": []
},
{
"name": "APP端获取评论详情",
"event": [
{
"listen": "test",
"script": {
"id": "587ed404-61d0-469c-af27-f160ecde9086",
"exec": [
"var jsonData = JSON.parse(responseBody);",
"if(jsonData.code === \"0\")",
"{",
" tests[\"code\"] = true;",
"}",
"else{",
" console.log(\"接口返回错误:\"+jsonData.msg);",
" tests[\"code\"+jsonData.msg]=false;",
"}"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "GET",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "access-token",
"type": "text",
"value": "{{access-Token}}"
}
],
"body": {
"mode": "raw",
"raw": ""
},
"url": "{{gateway-user}}/app/public/comment/get/comment/info/{{id}}"
},
"response": []
},
{
"name": "App自定义删除评论",
"event": [
{
"listen": "test",
"script": {
"id": "587ed404-61d0-469c-af27-f160ecde9086",
"exec": [
"var jsonData = JSON.parse(responseBody);",
"if(jsonData.code === \"0\")",
"{",
" tests[\"code\"] = true;",
"}",
"else{",
" console.log(\"接口返回错误:\"+jsonData.msg);",
" tests[\"code\"+jsonData.msg]=false;",
"}"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "GET",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "access-token",
"type": "text",
"value": "{{access-Token}}"
}
],
"body": {
"mode": "raw",
"raw": ""
},
"url": "{{gateway-user}}/app/public/comment/remove/comment/{{commentId}}"
},
"response": []
},
{
"name": "用户登录",
"event": [
{
"listen": "test",
"script": {
"id": "ab616fda-d96b-4f71-a9aa-6c59ce279e71",
"exec": [
"// console.log(\"----------------responseBody--------------\"+responseBody);",
"var jsonData = JSON.parse(responseBody);",
"// console.log(\"----------------jsonData.data.accessToken--------------\"+jsonData.data.accessToken);",
"",
"if(jsonData.data !== null || jsonData.data !==\"\")",
"{",
" tests[\"accessToken\"] = true;",
" postman.setEnvironmentVariable(\"access-Token\",jsonData.data.accessToken);",
" ",
"}",
"else",
"{",
" console.log(\"接口返回错误:\"+jsonData.msg);",
" tests[\"accessToken\"]=false;",
"}",
""
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"userPhone\": {{user_phone}},\n \"userPassword\": {{userPassword}},\n \"equipment\": \"c5d93c486a95d658\",\n \"channelId\": 1\n}"
},
"url": "{{gateway-user}}/app/login"
},
"response": []
}
]
}
\ No newline at end of file
{
{
"id": "6ce3c9a1-00b6-4af5-92b5-e6426b45c82b",
"name": "公共评论_manage",
"values": [
{
"key": "gateway-user",
"value": "https://usergwtest.bgycc.com",
"enabled": true
},
{
"key": "user_phone",
"value": "13093585508",
"enabled": true
},
{
"key": "access-Token",
"value": "75ac588ae34d47f880fe019aed12e8f7",
"enabled": true
},
{
"key": "townId",
"value": "58",
"enabled": true
},
{
"key": "userPassword",
"value": "\"dong123\"",
"description": {
"content": "",
"type": "text/plain"
},
"enabled": true
},
{
"key": "commentThumbsUpTypeId",
"value": "15",
"description": {
"content": "",
"type": "text/plain"
},
"enabled": true
},
{
"key": "commentThumbsUpSort",
"value": "\"NEWS\"",
"description": {
"content": "",
"type": "text/plain"
},
"enabled": true
},
{
"key": "commentReplyId",
"value": "1620",
"description": {
"content": "",
"type": "text/plain"
},
"enabled": true
},
{
"key": "status",
"value": "\"ENABLE\"",
"description": {
"content": "",
"type": "text/plain"
},
"enabled": true
},
{
"key": "commentTypeId",
"value": "15",
"description": {
"content": "",
"type": "text/plain"
},
"enabled": true
},
{
"key": "commentSort",
"value": "NEWS",
"description": {
"content": "",
"type": "text/plain"
},
"enabled": true
},
{
"key": "toUserId",
"value": "129",
"description": {
"content": "",
"type": "text/plain"
},
"enabled": true
},
{
"key": "id",
"value": "1621",
"description": "",
"enabled": true
},
{
"key": "commentId",
"value": "1613",
"type": "text",
"description": "",
"enabled": true
}
],
"_postman_variable_scope": "environment",
"_postman_exported_at": "2019-01-07T07:35:39.635Z",
"_postman_exported_using": "Postman/6.6.1"
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment