barbie

作者: songzailaile | 来源:发表于2016-04-01 10:38 被阅读0次

异常说明

9999 系统错误
9901 字符串参数异常 
9902  数字参数异常
9903  会员id不存在
其它编号为对应接口异常,如0101为接口1 的异常

811 该条动态你已收藏,请勿重复收藏
1211 该条动态您已赞过,请不要贪心哦
2001 关注 和 被关注 id 不能相同
2101 记录不存在
2201 手机和会员id不能同时为空
2202  该手机已注册
2203  id 不存在
2301 标签重复
2401 标签不能为空或null
2402 要删除的标签不存在
2701 验证码不正确
2801, 验证码发送失败
2901 手机号不存在
3401 type 值不合规范
3402 id 记录不存在

1.公共信息接口

访问路径

http://jtest.babilama.com/companyInfo

参数

返回结果

说明:
defaultPortrait (默认头像) baseUrl (基本域名)

{
"message": "ok",
"data": {
"baseUrl": "http://7xsqyg.com1.z0.glb.clouddn.com/",
"hotLabels": ["爱做辅食", "厨艺", "才艺", "健身达人", "搞笑", "时尚达人", "八卦", "美妆达人"],
"defaultPortrait": "http://www.baidu.com"
},
"code": 0
}

2.主页广告图接口

访问路径

http://jtest.babilama.com/advertisement

参数

返回结果

{
"message": "ok",
"data": [
{
"id": 1,
"imgUrl": "http://7xsqyg.com2.z0.glb.qiniucdn.com/Fm7P8a7asuVbEMDCuzab-0sW09lN",
"url":"http://www.baidu.com"
},
{
"id": 2,
"imgUrl": "http://www.baidu.com",
"url":"http://www.baidu.com"
}
],
"code": 0
}

3.消息计数接口

访问路径

http://jtest.babilama.com/message/count

参数

memberId (发请求会员id 必填)

返回结果

说明: barbieRead (芭比消息已读数), barbieUnread (芭比消息未读数), commentRead (评论消息已读数), commentUnread (评论消息未读数), praiseRead (赞消息已读数), praiseUnread (赞消息未读数), privateUnread (私信未读), privateRead (私信已读) hasNew (是否有新消息)
{
"code": "0",
"data": {
"praiseUnread": 0,
"privateUnread": 0,
"commentUnread": 0,
"praiseRead": 0,
"barbieUnread": 0,
"commentRead": 0,
"barbieRead": 0,
"hasNew": false,
"privateRead": 1
},
"message": "ok"
}

4.芭比消息视图接口

访问路径

http://jtest.babilama.com/message/barbie

参数

memberId (发请求会员id 必填),page(页码,默认1),pageSize(一页多少个 ,默认10)

返回结果

说明: title (消息标题) portrait (头像) content (消息内容) imgs(图片url) time (时间) url :(跳转url)

{
"message": "ok",
"data": [
{
"title":"这是标题",
"portrait": "http://www.baidu.com/pic1.jpg",
"content": "这是一条消息",
"hasRead": true,
"imgs": "http://www.baidu.com/pic1.jpg",
"time": "刚刚",
"url":"http://jtest.babilama.com/resources/BarbieMessage/1"
}

],
"code": 1

}

5.评论消息视图接口

访问路径

http://jtest.babilama.com/message/comment

参数

memberId (发请求会员id 必填),page(页码,默认1),pageSize(一页多少个 ,默认10)

返回结果

说明: id (评论id), content (消息内容) nickname (昵称) portrait (头像) imgs(图片url) time (时间) hasRead (是否已读) dynamicId(动态id)

{
"message": "ok",
"data": [
{
"id":1,
"imgs": "http://www.baidu.com/pic1.jpg",
"content": "这是一条消息",
"hasRead": true,
"nickname": "芭比娃娃",
"portrait": "http://www.baidu.com/pic1.jpg",
"time": "刚刚",
"dynamicId":1
}
],
"code": 1
}

6.赞消息视图接口

访问路径

http://jtest.babilama.com/message/praise

参数

memberId (发请求会员id 必填),page(页码,默认1),pageSize(一页多少个 ,默认10)

返回结果

说明: content (消息内容) nickname (昵称) portrait (头像) imgs(图片url) time (时间) hasRead (是否已读) dynamicId(动态id)

{
"message": "ok",
"data": [
{
"imgs": "http://www.baidu.com/pic1.jpg",
"content": "这是一条消息",
"hasRead": true,
"nickname": "芭比娃娃",
"portrait": "http://www.baidu.com/pic1.jpg",
"time": "刚刚",
"dynamicId":1
}
],
"code": 1
}

7.主页动态展示接口

访问路径

http://jtest.babilama.com/dynamic/mainPage

参数

memberId : (会员id 登录传,不登录不传) page(页码,默认1),pageSize(一页多少个 ,默认10)

返回结果

说明: memberId : (会员id), words (动态内容), dynamicId:(动态id), hasPraised (是否赞过) hasCollected (是否收藏) nickname (昵称) portrait (头像url) date (发表动态的时间) heat (热度) pictureUrl (图片地址) videoUrl (视频地址) videoPictureUrl (视频图片地址) praiseCount ( 点赞数) commentCount (评论数) firstComment (第一条评论) firstCommentPortrait (第一条评论人头像) firstCommentNickname (第一条评论人昵称) firstCommentDateTime (第一条评论日期) firstCommentId (第一条评论id) firstCommentatorId (第一条评论人id)

{
"message": "ok",
"code": 0,
"data": [
{
"memberId" : 1,
"words": "拍的不错!",
"dynamicId":1,
"hasPraised" : false,
"hasCollected":true
"commentCount": 99,
"date": "2016-04-13",
"firstComment": "很棒,再接再厉!",
"firstCommentId":1,
"第一条评论id":1,
"firstCommentDateTie": "2016-04-13 14:22",
"firstCommentNickname": "tooonly",
"firstCommentPortrait": "http://fawef.cdsafdsa.csdrf.qiuniucdn.com",
"heat": 8888,
"nickname": "图灵能量",
"pictureUrl": "http://5432.fafa.fawf.qiniucdn.com",
"portrait": "http://324fsdfa.cofaf.zfewaf.qiniucdn.com",
"praiseCount": 88,
"videoPictureUrl": "http://faeswf.cdszf.cedsaf.qiuniucdn.com",
"videoUrl": "http://faewsfdaws.vaafew.qiuniucdn.video.com",

    }
]

}

8.收藏一条动态接口

访问路径

http://jtest.babilama.com/dynamic/collect

参数

memberId (发请求会员id 必填), dynamicId (动态id 必填)

返回结果

说明: id (动态id)

{"message":"ok","code":0,"data":{"id":1}}

9.取消收藏一条动态接口

访问路径

http://jtest.babilama.com/dynamic/collect/cancel

参数

memberId (发请求会员id 必填), dynamicId (动态id 必填)

返回结果

说明: id (动态id)

{"message":"ok","code":0,"data":{"id":1}}

10.评论接口

访问路径

http://jtest.babilama.com/dynamic/comment

参数

memberId (发请求会员id 必填), dynamicId (动态id 必填),content (评论内容 必填)

返回结果

说明: dynamicId (动态id), commentId (动态id),

{"message":"ok","code":0,"data":{"dynamicId":1,"commentId":1}

11.取消评论接口

访问路径

http://jtest.babilama.com/dynamic/comment/cancel

参数

commentId (评论id 必填)

返回结果

说明: dynamicId (动态id), commentId (动态id),

{"message":"ok","code":0,"data":{"dynamicId":1,"commentId":1}

12.点赞接口

访问路径

http://jtest.babilama.com/dynamic/praise

参数

memberId (发请求会员id 必填), dynamicId (动态id 必填)

返回结果

说明: id (动态id)
{"message":"ok","code":0,"data":{"id":1}

13.取消赞接口

访问路径

http://jtest.babilama.com/dynamic/praise/cancel

参数

memberId (发请求会员id 必填), dynamicId (动态id 必填)

返回结果

说明: id (动态id)
{"message":"ok","code":0,"data":{"id":1}}

14.删除一条动态接口

访问路径

http://jtest.babilama.com/dynamic/delete

参数

dynamicId (动态id 必填)

返回结果

说明: id (动态id)
{"message":"ok","code":0,"data":{"id":1}}

15.个人动态展示接口

访问路径

http://jtest.babilama.com/dynamic/barbie

参数

fromId (发请求会员id ,登录传,不登录不传), memberId(请求目标id 必填) page(页码,默认1),pageSize(一页多少个 ,默认10)

返回结果

说明: memberId : (会员id), dynamicId:(动态id), hasPraised (是否赞过) hasCollected (是否收藏过) nickname (昵称) portrait (头像url) date (发表动态的时间) heat (热度) pictureUrl (图片地址) videoUrl (视频地址) videoPictureUrl (视频图片地址) praiseCount ( 点赞数) commentCount (评论数) firstComment (第一条评论) firstCommentPortrait (第一条评论人头像) firstCommentNickname (第一条评论人昵称) firstCommentDateTime (第一条评论日期) firstCommentId (第一条评论人id) words (动态内容)

{
"message": "ok",
"code": 0,
"data": [
{
"memberId" : 1,
"dynamicId":1,
"hasPraised":false,
"hasCollected":true,
"commentCount": 99,
"date": "2016-04-13",
"firstComment": "很棒,再接再厉!",
"firstCommentId":1,
"firstCommentDateTie": "2016-04-13 14:22",
"firstCommentNickname": "tooonly",
"firstCommentPortrait": "http://fawef.cdsafdsa.csdrf.qiuniucdn.com",
"heat": 8888,
"nickname": "图灵能量",
"pictureUrl": "http://5432.fafa.fawf.qiniucdn.com",
"portrait": "http://324fsdfa.cofaf.zfewaf.qiniucdn.com",
"praiseCount": 88,

        "videoPictureUrl": "http://faeswf.cdszf.cedsaf.qiuniucdn.com",
        "videoUrl": "http://faewsfdaws.vaafew.qiuniucdn.video.com",
         "words": "拍的不错!"
    }
]

}

16.收藏动态展示接口

访问路径

http://jtest.babilama.com/dynamic/collect/list

参数

memberId (发请求会员id 必填),page(页码,默认1),pageSize(一页多少个 ,默认10)

返回结果

说明: dynamicId (动态id) words (动态内容) memberId (会员id) nickname (昵称) portrait (头像url) date (发表动态的时间) heat (热度) pictureUrl (图片地址) videoUrl (视频地址) videoPictureUrl (视频图片地址) praiseCount ( 点赞数) commentCount (评论数) firstComment (第一条评论) firstCommentPortrait (第一条评论人头像) firstCommentNickname (第一条评论人昵称) firstCommentDateTime (第一条评论日期) firstCommentId (第一条评论人id)

{
"message": "ok",
"code": 0,
"data": [
{
"dynamicId":1,
"memberId":1,
"commentCount": 99,
"date": "2016-04-13",
"firstComment": "很棒,再接再厉!",
"firstCommentId":1,
"firstCommentDateTie": "2016-04-13 14:22",
"firstCommentNickname": "tooonly",
"firstCommentPortrait": "http://fawef.cdsafdsa.csdrf.qiuniucdn.com",
"heat": 8888,
"nickname": "图灵能量",
"pictureUrl": "http://5432.fafa.fawf.qiniucdn.com",
"portrait": "http://324fsdfa.cofaf.zfewaf.qiniucdn.com",
"praiseCount": 88,
"videoPictureUrl": "http://faeswf.cdszf.cedsaf.qiuniucdn.com",
"videoUrl": "http://faewsfdaws.vaafew.qiuniucdn.video.com",
"words": "拍的不错!"
}
]
}

17.发布动态接口

访问路径

http://jtest.babilama.com/dynamic/publish

参数

memberId (发请求会员id 必填), words (文字描述 必填), pictureUrl (图片路径,多张图片以逗号隔开), videoUrl (视频路径) videoPictureUrl (视频截图路径)

返回结果

说明: dynamicId (动态id)
{"message":"ok","code":0,"data":{"id":1}}

18.动态详情接口

访问路径

http://jtest.babilama.com/dynamic/detail

参数

fromId(登录传,不登录不传), dynamicId (动态id 必填)

返回结果

`说明:
hasPraised (是否赞过)
hasCollected (是否收藏过)
praiseList. id (赞id) ,
praiseList. memberId (点赞人id) ,
praiseList. portrait (点赞人头像),
createTime (动态创建时间),
heat (发动态人辣度),
pictureUrl (动态图片内容),
memberId (发动态人id),
nickname (发动态人昵称),
portrait (发动态人头像) ,
praise (该评论点赞数),
videoPictureUrl (视频缩略图),
videoUrl (视频路径),
words (动态内容),
hasFocused (是否已经关注)

{
"message": "ok",
"code": 0,
"data": {
"hasPraised":true,
"hasFocused":true,
"hasCollected":true,
"createTime": "2016-04-14",
"heat": 8888,
"pictureUrl": "http://faef.cszc.ewr.vdsa.fgaesf.qiniucdn.com.jpg",
"memberId": 3,
"nickname": "图灵能量",
"portrait": "http://vds.cvdsz.fedsaf.qiniucdn.com.jpeg",
"praise": 88888,
"praiseList": [
{
"id":1,
"memberId": 5,
"portrait": "http://vdasf.czmx.fsae.img.qiniucdn.com.head0",
"nickname":"尼日利亚"
}
],
"videoPictureUrl": "http://vdssa.vcxvxniucdn.com.jpg",
"videoUrl": "http://cs/feawfdsafdsa.faef.fsdf.qiniucdn.com.video",

    "words": "拍的不错!"
}

}

19.一条动态的赞的列表接口

访问路径

http://jtest.babilama.com/dynamic/praise/list

参数

memberId : (会员id 登录传,不登录不传),dynamicId (动态id 必填),page(页码,默认1),pageSize(一页多少个 ,默认10)

返回结果

`说明:
portrait (头像),
memberId (id),
nickname (昵称),
heat (热度),
hasFocused (是否已经关注)

{
"message": "ok",
"data": [
{
"nickname": "奥哈有",
"memberId": 1,
"portrait": "http://www.baidu.com/hello",
"heat":888,
"hasFocused":true
}
],
"code": 1
}

20.关注接口

访问路径

http://jtest.babilama.com/barbie/focus

参数

memberId (发请求会员id 必填), targetId (被关注会员id 必填)

返回结果

{"message":"ok","code":0,"data":{"memberId":1,"targetId":2}}

21.取消关注接口

访问路径

http://jtest.babilama.com/barbie/focus/cancel

参数

memberId (发请求会员id 必填), targetId (被关注会员id 必填)

返回结果

{"message":"ok","code":0,"data":{"memberId":1,"targetId":2}}

22.编辑个人资料接口

访问路径

http://jtest.babilama.com/barbie/edit

参数

id (发请求会员id 必填) childAge (孩子年龄) nickname (昵称), portrait (头像url), backgroud (背景图片URL), mobile (手机号) sex (性别(1 男,2 女)), city (所在城市), constellation (星座), labels (标签), share (分享)

返回结果

{"message":"ok","code":0,"data":{"id":3}}

23.添加标签接口

访问路径

http://jtest.babilama.com/barbie/addLabel

参数

memberId (发请求会员id 必填), label (标签内容 必填)

返回结果

说明 : id (会员id)
{"message":"ok","code":0,"data":{"id":1}}

24.删除标签接口

访问路径

http://jtest.babilama.com/barbie/delLabel

参数

memberId (发请求会员id 必填), label (标签内容 必填)

返回结果

说明 : id (会员id)
{"message":"ok","code":0,"data":{"id":1}}

25.周排行接口

访问路径

http://jtest.babilama.com/barbie/rank

参数

memberId (发请求会员id 必填)

返回结果

{
"code": 0,
"data": {
"rank": 1,
"countList": [
{
"周一": 0
},
{
"周二": 12
},
{
"周三": 9
},
{
"周四": 7
},
{
"周五": 0
},
{
"上周六": 0
},
{
"周日": 0
}
]
},
"message": "ok"
}

26.个人信息接口

访问路径

http://jtest.babilama.com/barbie/info

参数

memberId (请求信息会员id 必填) fromId(发请求会员id 可不填)

返回结果

id; hasFocused (是否已经关注) createTime (创建时间) childAge (孩子年龄), nickname (昵称), portrait ( 头像url), heat (热度), praise (被赞数), publish (发布数) fans ( 粉丝数), share (分享数), backgroud (背景图片URL), mobile (手机号), sex (性别(1 男,2 女)), city (所在城市), constellation (星座), labels (标签)
{
"message": "ok",
"code": 0,
"data": {
"hasFocused":true,
"backgroud": "http://fcadwsfcvaegf.fvavbv.fvaesgf.qiuniucdn.fad.jpg",
"city": "北京",
"constellation": "金牛座",
"createTime": "2016-04-13",
"fans": 88888,
"heat": 8888,
"id": 6,
"labels": "label",
"mobile": "15757180956",
"nickname": "图灵能量",
"portrait": "http://fasf.vszdgda.fewagt23.qiniucdn.com",
"praise": 88,
"publish": 888,
"sex": 1,
"share": 8888888,
"childAge":0
}
}

27.登录接口

访问路径

http://jtest.babilama.com/login

参数

phone (手机号 必填), code (短信验证码)

返回结果

{"message":"ok","data":{"id":1},"code":0}

28.请求短信验证码接口

访问路径

http://jtest.babilama.com/sms/sendCode

参数

mobile (手机号 必填)

返回结果

{"message":"ok","code":0,"data":""}

29.退出登录接口

访问路径

http://jtest.babilama.com/logout

参数

memberId (发请求会员id 必填)

返回结果

{"message":"ok","data":{"id":1},"code":0}

30.获取七牛授权接口

访问路径

http://jtest.babilama.com/qiniu/auth

参数

memberId (发请求会员id 必填)

返回结果

{
"message": "ok",
"data": {
"auth": "eHRwljLZmXXS8GQhYQ4bVFzmfQme5y3sM375Qjki:lJmftCPqNni1QNtaovSFcSRLvco=:eyJzY29wZSI6ImJhcmJpZSIsImRlYWRsaW5lIjoxNDYwNjE3NDM2fQ=="
},
"code": 1
}

31.设备号记录接口

访问路径

http://jtest.babilama.com/barbie/device

参数

memberId (会员号 必填), deviceNo (设备编号), deviceType (设备类型 1 Android ,2iOS)

返回结果

{"message":"ok","data":"","code":0}

32.辣度榜动态展示接口

访问路径

http://jtest.babilama.com/dynamic/heatRank

参数

memberId (登录传,不登录不传), page(页码,默认1),pageSize(一页多少个 ,默认10)

返回结果

说明: hasPraised (是否赞过) hasCollected (是否收藏过) nickname (昵称) portrait (头像url) date (发表动态的时间) heat (热度) pictureUrl (图片地址) videoUrl (视频地址) videoPictureUrl (视频图片地址) praiseCount ( 点赞数) commentCount (评论数) firstComment (第一条评论) firstCommentPortrait (第一条评论人头像) firstCommentNickname (第一条评论人昵称) firstCommentDateTime (第一条评论日期) firstCommentId (第一条评论者id)

{
"message": "ok",
"code": 0,
"data": [
{
"hasPraised" : false,
"hasCollected":true,

        "commentCount": 99,
        "date": "2016-04-13",
        "firstComment": "很棒,再接再厉!",
        "firstCommentId":1,
        "firstCommentDateTie": "2016-04-13 14:22",
        "firstCommentNickname": "tooonly",
        "firstCommentPortrait": "http://fawef.cdsafdsa.csdrf.qiuniucdn.com",
        "heat": 8888,
        "nickname": "图灵能量",
        "pictureUrl": "http://5432.fafa.fawf.qiniucdn.com",
        "portrait": "http://324fsdfa.cofaf.zfewaf.qiniucdn.com",
        "praiseCount": 88,
        "videoPictureUrl": "http://faeswf.cdszf.cedsaf.qiuniucdn.com",
        "videoUrl": "http://faewsfdaws.vaafew.qiuniucdn.video.com"
    }
]

}

33.一条动态的评论的列表接口

访问路径

http://jtest.babilama.com/dynamic/comment/list

参数

dynamicId (动态id 必填),page(页码,默认1),pageSize(一页多少个 ,默认10)

返回结果

`说明:
id (评论id),
content (评论内容),
createTime (评论时间),
fromId (评论人id),
nickname (昵称),
portrait (头像),

{
"message": "ok",
"data": [
{
"id":1,
"content": "天气不错,赞一个!",
"createTime": "2016-04-14",
"fromId": 10,
"nickname": "tooonly",
"portrait": "http://cvsda/cdsaf.zfcs.cdn.qiniu.com.head.jpg"
}
],
"code": 0
}

34.消息已读接口

访问路径

http://jtest.babilama.com/message/read

参数

memberId (消息id 必填) type (消息类型 1评论 ,2赞 , 3私信 必填 )

返回结果

说明: id (消息id)
{
"message": "ok",
"data": null,
"code": 0
}

35.是否强制更新

访问路径

http://jtest.babilama.com/allow

参数

currVersion (当前客户端版本必填) type (设备类型 1安卓 ,2ios 必填)

返回结果

说明: allow (是否强制更新), latest (最新版本)
{"code":"0","data":{"allow":"false","latest":1.1},"message":"ok"}

36.分享接口

访问路径

http://jtest.babilama.com/barbie/share

参数

id (发请求会员id必填) dynamicId (作品id)

返回结果

id 会员id
{"code":"0","data":{"id":1,"dynamicId":1},"message":"ok"}

37.私信视图接口

访问路径

http://jtest.babilama.com/barbie/message/privaetMessaeList?memberId=43

参数

memberId (发请求会员id必填)

返回结果

``
{
"code": "0",
"data": [
{
"content": "1",
"createTime": {
"date": 17,
"day": 5,
"hours": 9,
"minutes": 50,
"month": 5,
"seconds": 17,
"time": 1466128217000,
"timezoneOffset": -480,
"year": 116
},
"fromId": 42,
"fromNickname": "阿强",
"fromPortrait": "FtS_biMx23OjaSpj-bI13uU50Y3C",
"hasRead": 0,
"id": 1,
"title": "1",
"toId": 43,
"toNickname": "道理我都懂",
"toPortrait": "Fh0s4j0VcK6tbndPLIU3W5r-sPR4"
}
],
"message": "ok"
}

相关文章

网友评论

      本文标题:barbie

      本文链接:https://www.haomeiwen.com/subject/pmhylttx.html