1.查看是否有新消息
url:/get/message/status?user_id={user_id}
method:get
response:
{ "code": "ok", "msg": "", "data": 0 //新消息数目 }
2.获取消息列表
url:/get/message/list?user_id={user_id}&page={page}
method:get
response:
{ "code": "ok", "msg": "", "data": [ //消息列表 { "user_id": "11071840", "content": "xxxxxxxxxxxxxxxxxxxxxxxxx", //消息内容 "time": "2015-02-03 14:07", "status": "read", //消息状态:read|unread|delete "elaspe_time": 24387, //消息创建到现在的时间(秒) "id": "54d0658ad02badcb7f000001" //消息ID,删除时需要 } ] }
3.删除消息
url:/delete/message?id={msg_id}
method:get
response:
{ "code": "ok", "msg": "", "data": 1 }
4.获取等级信息
url:/get/level?user_id={user_id}
method:get
response:
{ "code": "ok", "msg": "", "data": { "level2": { "status": "unlock", //等级状态 unlock|locked "ratio": "+5%", //加成比例 "conditions": [ { "content": "1.Two free download to complete the offers", "status": "uncompleted" //条件状态 completed|uncompelted }, { "content": "2.Give praise in the Google play", "status": "uncompleted" } ] }, "level3": { "status": "unlock", "ratio": "+8%", "conditions": [ { "content": "1.A total of 5 offers to complete download", "status": "uncompleted" }, { "content": "2.The completion of the 3 different channels to share", "status": "uncompleted" } ] }, "level4": { "status": "unlock", "ratio": "+15%", "conditions": [ { "content": "1.Complete lottery 3 times", "status": "uncompleted" }, { "content": "2.The number of friends more than 3", "status": "uncompleted" } ] }, "level5": { "status": "unlock", "ratio": "+20%", "conditions": [ { "content": "1.A total of 8 offers to complete download", "status": "uncompleted" }, { "content": "2.The number of friends more than 15", "status": "uncompleted" } ] }, "level6": { "status": "unlock", "ratio": "+30%", "conditions": [ { "content": "1.The number of friends more than 50", "status": "uncompleted" } ] }, "level7": { "status": "unlock", "ratio": "+40%", "conditions": [ { "content": "1.The number of friends more than 100", "status": "uncompleted" } ] } } }
时间: 2024-10-08 10:35:36