Skip to content

Instantly share code, notes, and snippets.

@HACK21 HACK21/nn_api
Last active Aug 29, 2015

Embed
What would you like to do?
暖暖项目
|接口|URL|参数|返回|备注|
|-|-|-|-|
|发送验证码|/api/code|mobile|JSON|0新用户注册 1重置密码|
|用户注册|/api/sign-up|mobile,nickname,password,code|JSON|
|用户登录|/api/sign-in|mobile,password|JSON|
|修改密码|/api/password-update|uid,mobile,old_password,new_password|JSON|
|名医列表|/api/doctor-list|page,pagesize|JSON|
|创建问题(瓶子)|/api/question-create|uid,title,age,duration|JSON||
|问题列表|/api/question-list|uid,type,page,pagesize|JSON|type 1他人问题2我的问题|
|拾取瓶子|/api/question-random|doctor_id|JSON||
|扔掉瓶子|/api/question-throw|doctor_id|JSON||
|问题详情|/api/question-detail|id|JSON||
|回复问题|/api/question-reply|id,doctor_id,hg_id,reply|JSON||
|关闭问题|/api/question-close|id,uid,**[grade,1/3/5]**|JSON|uid是用户或者医生的id,grade是评分只能传1差,3中,5好|
|**正在进行中问题**|/api/question-replying|doctor_id或user_id|JSON||
|广告列表|/api/ad-list|无|JSON|
|广告详情|/api/ad-detail|id|HTML|
|资讯列表|/api/news-list|page,pagesize|JSON||
|资讯详情|/api/news-detail|id 资讯id|HTML||
|添加收藏|/api/coll-add|uid,type,colletion_id|JSON|type 1瓶子2医生3资讯|
|**删除收藏**|/api/coll-delete|uid,id|JSON|**id参数是收藏的id字段**|
|收藏列表|/api/coll-list|uid,type,page,pagesize|JSON|type 1瓶子2医生3资讯|
|**聊天记录**|/api/chat-history|id 问题id|JSON||
|**删除问题(用户)**|/api/question-delete|uid,id|JSON|id问题id|
|**修改密码**|/api/password-reset|mobile,new_password,new_passwordt,code|JSON|code请用短信接口发送|
|**医生详情**|/api/doc-detail|doctor_id|JSON|医生信息|doctor_id为医生uid|
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.