Commit 686d49d3 authored by RobertDing's avatar RobertDing

ADD - 帖子列表

parent 8b678671
......@@ -696,6 +696,62 @@ paths:
online_time: 1458730446
message: ''
error: 0
# ------------------------
/search/topic
get:
summary: 帖子列表
description: 搜索帖子列表, 搜正常的,公共的,在线的,咨询类的,tag相关的话题,根据时间降序排列
parameters:
- name: page
in: query
description: 分页
required: false
type: integer
format: integer
- name: tag_id
in: query
description: 标签 id, 数据从 /tag 获取
required: false
type: integer
format: integer
tags:
- Topic
responses:
'200':
description: OK
schema: {}
examples:
application/json:
data:
total: 1235
topics:
- title: '颜医生,请问玻尿酸丰下巴怎样收费'
doctor_num: 4
user_name: '变美不为男人'
city: '北京'
date: 145678345
error: 0
message: ""
/tag
get:
summary: 获取查询标签
description: 用于查询帖子列表的tags
tags:
- Topic
responses:
'200':
description: OK
schema: {}
examples:
application/json:
message: ''
error: 0
data:
total: 1234
tags:
- name: 眼睛
id: 123
# ------------------------
/reserve:
get:
......
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 to comment