wiki:pcauto_magazine_interface_3.1.0

Version 9 (modified by dengyurong, 10 years ago) (diff)

--

汽车杂志iPhone3.1.0 & iPad5.1.0

mrobot代理环境说明:

192.168.10.198 端口为 1080 连的是QA测试环境(192.168.74.80)
192.168.10.199 端口为 1080 连的是dev40的开发环境(192.168.75.40)
ps:对于mrobot.pcauto.com.cn/x/前缀的接口,mrobot仅作代理,没有任何逻辑处理。

1.消息中心


1.1系统消息&赞与回复消息

(开发已完成)

mrobot地址: http://dev40.pcauto.com.cn/xsp/s/auto/info/cms/getSystemMessage.xsp?pageNo=1&pageSize=20

联系杂志君后台开发环境: http://test232.pconline.com.cn:8001/intf/sysnotice.jsp?act=find&siteId=2&typeIds=2007&pageNo=&pageSize=

 http://test232.pconline.com.cn:8001/intf/sysnotice.jsp?act=find&siteId=2&typeIds=2041&pageNo=&pageSize=
 http://test232.pconline.com.cn:8001//intf/sysnotice.jsp?act=find&siteId=2&typeIds=2042&pageNo=&pageSize=

联系杂志君后台线上环境: http://bip.pcauto.com.cn/intf/sysnotice.jsp?act=find&siteId=2&typeIds=2007&pageNo=&pageSize=

 http://bip.pcauto.com.cn/intf/sysnotice.jsp?act=find&siteId=2&typeIds=2041&pageNo=&pageSize=
 http://bip.pcauto.com.cn/intf/sysnotice.jsp?act=find&siteId=2&typeIds=2042&pageNo=&pageSize=

说明

系统消息&赞与回复消息 可用测试环境sn25018537这个账号测试

缓存时间

0

提交方式

GET

是否登录

数据来源

bip

参数

参数名 参数含义 类型 默认值 是否必须 说明
pageNo 页码 string
pageSize 每页条数 string

返回

{
    "totalPage": 2,
    "pageNo": "1",
    "pageSize": "10",
    "data": [
        {
            "createTime": "2015-11-27 14:52:25",
            "myselfContent": "我们就那样了哦~哈哈~",     //被点赞的内容
            "topicTitle": "我们的http://magazine.pcauto.com.cn/497/6584",    
            "topicUrl": "http://magazine.pcauto.com.cn/497/6584",        //文章链接
            "supUserId": 388,             //点赞用户id
            "supNikeName": "fish",        //点赞用户昵称
            "topicId": 13278890,          
            "cmtFloor": 13,              
            "cmtId": 100939,     
            "messageType": "commentLike",     //消息类型:点赞
            "time": "2015-11-27 14:52:25",   //点赞时间
            "messageId": 8542489,           //消息id
            "magazineId": "497",            //杂志id
            "articleId": "6584",            //文章id
            "face": "http://dev2.pcauto.com.cn:9191/upchead/38/8/388_100x100",    //用户头像
            "articleTitle": "我们的http://magazine.pcauto.com.cn/497/6584"        //文章标题
        },
        {
            "createTime": "2015-11-27 14:51:51",
            "myselfContent": "召唤我大点赞党~",
            "topicTitle": "我们的http://magazine.pcauto.com.cn/497/6584",
            "topicUrl": "http://magazine.pcauto.com.cn/497/6584",
            "supUserId": 0,
            "supNikeName": "广东省广州市网友",
            "topicId": 13278890,
            "cmtFloor": 12,
            "cmtId": 100939,
            "messageType": "commentLike",
            "time": "2015-11-27 14:51:51",
            "messageId": 8542490,
            "magazineId": "497",
            "articleId": "6584",
            "face": "http://dev2.pcauto.com.cn:9191/upchead/0/0_100x100",
            "articleTitle": "我们的http://magazine.pcauto.com.cn/497/6584"
        },
        {
            "createTime": "2015-11-27 14:51:31",
            "myselfContent": "求啊求点赞,赞呢~卧槽,亏如狗~",
            "topicTitle": "我们的http://magazine.pcauto.com.cn/497/6584",
            "topicUrl": "http://magazine.pcauto.com.cn/497/6584",
            "supUserId": 0,
            "supNikeName": "广东省广州市网友",
            "topicId": 13278890,
            "cmtFloor": 11,
            "cmtId": 100939,
            "messageType": "commentLike",
            "time": "2015-11-27 14:51:31",
            "messageId": 8542491,
            "magazineId": "497",
            "articleId": "6584",
            "face": "http://dev2.pcauto.com.cn:9191/upchead/0/0_100x100",
            "articleTitle": "我们的http://magazine.pcauto.com.cn/497/6584"
        },
        {
            "createTime": "2015-11-26 16:32:32",
            "cmtContent": "感觉不错啊~",          //评论者发表的回复
            "myselfContent": "还阔以哦~",         //被评论的内容
            "topicTitle": "test magazine",        
            "topicUrl": "http://magazine.pcauto.com.cn/497/6589",    //文章链接
            "client": 1,
            "topicId": 13278933,
            "cmtFloor": 13,
            "cmtUserId": 826717,                  //评论用户id
            "cmtAuthor": "深海无声",              //评论用户昵称
            "cmtId": 100939,
            "cmtListUrl": "http://192.168.50.69/topic/a0/r0/p1/ps30/t13278933.html",
            "messageType": "commentReply",           //消息类型:评论
            "time": "2015-11-26 16:32:32",           //评论时间
            "messageId": 8542430,                    //消息id
            "magazineId": "497",                     //杂志id
            "articleId": "6589",                     //文章id
            "face": "http://dev2.pcauto.com.cn:9191/upchead/82/67/17/826717_100x100",        //评论用户头像
            "articleTitle": "test magazine"          //文章标题
        },
        {
            "content": "dfdfdfd",           //消息内容
            "link": "baidu.com",            //链接
            "subType": "linking",           //系统消息的类型
            "time": "2015-11-25 10:01:24",  //消息时间
            "messageId": 61,                //消息id
            "messageType": "sysMessage"     //消息类型:系统消息
        },
        {
            "content": "hjahfjah ",
            "subType": "contactUs",
            "time": "2015-11-23 18:25:36",
            "messageId": 52,
            "messageType": "sysMessage"
        },
        {
            "content": "nice",
            "link": "baidu.com",
            "subType": "linking",
            "time": "2015-11-23 18:24:19",
            "messageId": 51,
            "messageType": "sysMessage"
        },
        {
            "content": "百度一下,你就知道",
            "subType": "contactUs",
            "time": "2015-11-23 15:11:22",
            "messageId": 22,
            "messageType": "sysMessage"
        },
        {
            "articleData": {
                "articleId": 12121,
                "magazineId": 2626
            },
            "content": "百度一下,你就知道",
            "subType": "messageArticle",
            "time": "2015-11-23 15:11:09",
            "messageId": 21,
            "messageType": "sysMessage"
        },
        {
            "content": "HSY,等10分钟看看",
            "subType": "contactUs",
            "time": "2015-11-20 15:30:03",
            "messageId": 17,
            "messageType": "sysMessage"
        }
    ]
}

返回参数说明

参数名 参数含义 参数名 参数含义
messageType sysMessage:系统消息,commentReply:回复,commentLike:点赞 total 消息数
pageNo 页码 pageSize 每页大小
pageCount 页数 content 消息内容
messageId 消息id subType contactUs:联系杂志君,linking:外链,messageArticle:期刊文章
time 时间 link 外链地址
articleData 期刊文章信息 messageId 消息id
cmtContent 评论者发表的回复 myselfContent 被评论的内容
articleTitle 文章标题 topicUrl 文章链接
cmtUserId 评论用户id cmtAuthor 评论用户昵称
magazineId 期刊id articleId 文章id
cmtContent 评论者发表的回复 myselfContent 被评论的内容
face 用户头像 supUserId 点赞用户id
supUserNickName 点赞用户昵称

2.联系杂志君


2.1 联系杂志君对话内容

(开发已完成)

mrobot地址: http://dev40.pcauto.com.cn/xsp/s/auto/info/cms/getMessageList.xsp?accountId=863178&pageNo=1&pageSize=10

联系杂志君后台开发环境: http://v47.pchouse.com.cn:8003/message/getMessageList.do?accountId=863178&pageNo=1&pageSize=10
联系杂志君后台线上环境:

说明

联系杂志君对话内容

缓存时间

0

提交方式

GET

是否登录

数据来源

联系杂志君后台

参数

参数名 参数含义 类型 默认值 是否必须 说明
accountId 账户id int
pageNo 页码 string
pageSize 每页条数 string

返回

{
    "data": [
        {
            "content": "我的评论被删了",
            "from": "user",
            "messageId": 71,
            "time": 1447756244000
        }
    ],
    "errorCode": 200,
    "message": "查询成功",
    "pageNo": 1,
    "pageSize": 10,
    "totalPage": 10
}

返回参数说明

参数名 参数含义 参数名 参数含义
content 内容 from 消息来源
messageId 消息id time 时间戳

2.2 发送消息

(非mrobot接口)

杂志君后台开发环境: http://v47.pchouse.com.cn:8003/message/addUserMessage.do?accountId=863178&content=%E6%88%91%E7%9A%84%E8%AF%84%E8%AE%BA%E8%A2%AB%E5%88%A0%E4%BA%86&bigImage=http://img.pchouse.com.cn/images/upload/upc/tx/coin/1511/11/c0/15115638_15115638_1447210609718_500x500.jpg&smallImage=

提交方式

Post

参数

参数名 参数含义 类型 默认值 是否必须 说明
accountId 用户ID string
content 消息内容 string
bigImage 原图链接 string
smallImage 小图链接 string

返回

{"errorCode":200,"message":"操作成功"}
{"errorCode":1,"message":"通信证id有误"} 
{"errorCode":110 ,"message":"参数有误,内容和图片为空"}
{"errorCode":111 ,"message":"参数有误,内容长度过长"}

2.3 更新杂志君消息已读状态

(开发已完成)

mrobot地址: http://dev40.pcauto.com.cn/xsp/s/auto/info/cms/updateIsReaded.xsp?accountId=863178

杂志君开发环境: http://v47.pchouse.com.cn:8003/message/updateIsReaded.do?accountId=863178
杂志君线上环境:

说明

更新杂志君消息已读状态

缓存时间

0

提交方式

GET

是否登录

数据来源

学车后台

参数

参数名 参数含义 类型 默认值 是否必须 说明
accountId 用户ID long

返回

{
    "errorCode": 200,
    "message": "查询成功"
}

返回参数说明

参数名 参数含义 参数名 参数含义
errorCode 返回码 message 信息

2.4 获取消息数

(开发已完成)

mrobot地址: http://dev40.pcauto.com.cn/xsp/s/auto/info/cms/getMessageNum.xsp?accountId=25018537

杂志君开发环境: http://v47.pchouse.com.cn:8003/message/getMessageNum.do?accountId=25018537
杂志君线上环境:

说明

获取消息数

缓存时间

0

提交方式

GET

是否登录

数据来源

杂志君后台

参数

参数名 参数含义 类型 默认值 是否必须 说明
accountId 用户ID long

返回

{
    "contactNum": 0,
    "errorCode": 200,
    "message": "查询成功",
    "sysNum": 7
}

返回参数说明

参数名 参数含义 参数名 参数含义
contactNum 联系杂志君数目 sysNum 消息中心数目