Skip to content

Latest commit

 

History

History
614 lines (383 loc) · 9.34 KB

Project.md

File metadata and controls

614 lines (383 loc) · 9.34 KB
title language_tabs toc_footers includes search code_clipboard highlight_theme headingLevel generator
个人项目 v1.0.0
shell
Shell
http
HTTP
javascript
JavaScript
ruby
Ruby
python
Python
php
PHP
java
Java
go
Go
true
true
darkula
2
@tarslib/widdershins v4.0.17

个人项目

v1.0.0

Base URLs:

Authentication

  • API Key (apikey-query-token)
    • Parameter Name: token, in: query.

Project

GET 获取其他用户信息

GET /api/userGetInfo/1

Response Examples

200 Response

{}

Responses

HTTP Status Code Meaning Description Data schema
200 OK 成功 Inline

Responses Data Schema

GET 通过ID获取某个攻略

GET /api/guideGetByID

Params

Name Location Type Required Description
id query string no none

Response Examples

200 Response

{}

Responses

HTTP Status Code Meaning Description Data schema
200 OK 成功 Inline

Responses Data Schema

GET 删除某个攻略

GET /api/guideDel

Params

Name Location Type Required Description
id query string no none

Response Examples

200 Response

{}

Responses

HTTP Status Code Meaning Description Data schema
200 OK 成功 Inline

Responses Data Schema

GET 新增评论

GET /api/commentPush

"type", "id", "content"

Params

Name Location Type Required Description
type query string yes 整数0-2
id query string yes 特指 评论元素id序号
content query string yes 内容

Response Examples

200 Response

{}

Responses

HTTP Status Code Meaning Description Data schema
200 OK 成功 Inline

Responses Data Schema

GET 登录

GET /api/userLogin

Params

Name Location Type Required Description
id query integer no none
password query string no none
username query string yes none

Response Examples

200 Response

{}

Responses

HTTP Status Code Meaning Description Data schema
200 OK 成功 Inline

Responses Data Schema

GET 获取个人信息

GET /api/userInfo

Response Examples

200 Response

{}

Responses

HTTP Status Code Meaning Description Data schema
200 OK 成功 Inline

Responses Data Schema

GET 获取所有活动

GET /api/activityGetAll

Response Examples

200 Response

{}

Responses

HTTP Status Code Meaning Description Data schema
200 OK 成功 Inline

Responses Data Schema

GET 发布活动

GET /api/activityPush

"phone", "name", "price", "location", "desc", "headimg", "endtime"

Params

Name Location Type Required Description
phone query string no 手机
name query string no 名字
price query string no 价格1
location query string no 位置
desc query string no 描述
headimg query string no 图片
endtime query string no 活动结束时间

Response Examples

200 Response

{}

Responses

HTTP Status Code Meaning Description Data schema
200 OK 成功 Inline

Responses Data Schema

GET 获取某个的全部评论

GET /api/commentGetAll

Params

Name Location Type Required Description
type query string yes 0-2
id query string yes 特指 评论元素id序号

Response Examples

200 Response

{}

Responses

HTTP Status Code Meaning Description Data schema
200 OK 成功 Inline

Responses Data Schema

GET 通过ID获取某条评论

GET /api/commentGetByID

Params

Name Location Type Required Description
id query string no commentGetByID

Response Examples

200 Response

{}

Responses

HTTP Status Code Meaning Description Data schema
200 OK 成功 Inline

Responses Data Schema

GET 删除某条评论

GET /api/commentDel

Params

Name Location Type Required Description
id query string no none

Response Examples

200 Response

{}

Responses

HTTP Status Code Meaning Description Data schema
200 OK 成功 Inline

Responses Data Schema

GET 获取全部攻略

GET /api/guideGetAll

Response Examples

200 Response

{}

Responses

HTTP Status Code Meaning Description Data schema
200 OK 成功 Inline

Responses Data Schema

GET 添加攻略

GET /api/guidePush

Params

Name Location Type Required Description
content query string no none

Response Examples

200 Response

{}

Responses

HTTP Status Code Meaning Description Data schema
200 OK 成功 Inline

Responses Data Schema

GET 获取所有酒店

GET /api/hotelGetAll

Response Examples

200 Response

{}

Responses

HTTP Status Code Meaning Description Data schema
200 OK 成功 Inline

Responses Data Schema

GET 预定酒店

GET /api/orderSet

Params

Name Location Type Required Description
id query string no 酒店序号

Response Examples

200 Response

{}

Responses

HTTP Status Code Meaning Description Data schema
200 OK 成功 Inline

Responses Data Schema

GET 取消预定酒店

GET /api/orderCancel

Response Examples

200 Response

{}

Responses

HTTP Status Code Meaning Description Data schema
200 OK 成功 Inline

Responses Data Schema

GET 查询预定酒店

GET /api/orderGet

Response Examples

200 Response

{}

Responses

HTTP Status Code Meaning Description Data schema
200 OK 成功 Inline

Responses Data Schema

GET 获取所有公告

GET /api/noticeGetAll

Response Examples

200 Response

{}

Responses

HTTP Status Code Meaning Description Data schema
200 OK 成功 Inline

Responses Data Schema

GET 通过ID获取某条公告

GET /api/noticeGetByID

Params

Name Location Type Required Description
id query string no none

Response Examples

200 Response

{}

Responses

HTTP Status Code Meaning Description Data schema
200 OK 成功 Inline

Responses Data Schema

GET 添加公告

GET /api/noticePush

"message", "endtime"

Params

Name Location Type Required Description
message query string no none
endtime query string no none

Response Examples

200 Response

{}

Responses

HTTP Status Code Meaning Description Data schema
200 OK 成功 Inline

Responses Data Schema

GET 获取推荐景点数据

GET /api/recommendSceneGetAll

Response Examples

200 Response

{}

Responses

HTTP Status Code Meaning Description Data schema
200 OK 成功 Inline

Responses Data Schema

GET 获取推荐活动

GET /api/recommendActivityGetAll

Response Examples

200 Response

{}

Responses

HTTP Status Code Meaning Description Data schema
200 OK 成功 Inline

Responses Data Schema

GET 获取所有景点

GET /api/sceneGetAll

Response Examples

200 Response

{}

Responses

HTTP Status Code Meaning Description Data schema
200 OK 成功 Inline

Responses Data Schema

GET 景点点赞

GET /api/sceneLove

Params

Name Location Type Required Description
id query string no none

Response Examples

200 Response

{}

Responses

HTTP Status Code Meaning Description Data schema
200 OK 成功 Inline

Responses Data Schema

Data Schema