Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
shouzhouServer
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
chenjinjing
shouzhouServer
Commits
f771f1df
Commit
f771f1df
authored
Jul 04, 2024
by
Leo Zheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
编写 README.md
parent
b73ae1c6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
46 additions
and
4 deletions
+46
-4
README.md
README.md
+46
-4
No files found.
README.md
View file @
f771f1df
# 寿州古城数据接口
# 寿州古城数据接口
[
中文
](
#中文
)
[
English
]
(#
E
nglish)
[
中文
](
#中文
)
[
English
]
(#
e
nglish)
# 中文
# 中文
## 端点:`/szgc/getdata`
## 端点:`/szgc/getdata`
## 参数:
## 参数:
...
@@ -24,10 +24,52 @@
...
@@ -24,10 +24,52 @@
-
getEventSourceCount
-
getEventSourceCount
-
getGridEventCount
-
getGridEventCount
-
getEventProcessingTime
-
getEventProcessingTime
-
`date`
: 要检索数据的日期。例子:
`2023-05-03`
-
`sight`
: 景点名称。例子:
`八公山森林公园`
-
`year`
:要检索数据的年份。例子:
`2023`
## 示例:
```
http://localhost:30016/getdata?content=sightVisitorFlowByDay&date=2023-05-03&sight=八公山森林公园```
## 运行服务器
1. 克隆仓库
2. 在根目录运行:```npm install```
3. 在VSCode编译器里按F5开始运行服务器
# English
## Endpoint: /szgc/getdata
## parameters:
- `content`:
- Left Side API:
- sightVisitorFlowByDay
- gateStatus
- sightVisitorFlowPerHour
- guchengLoad
- totalVisitorFlow
- totalVisitorFlowByDay
- Middle API:
- currentEventStrategy
- totalEventCount
- allEvents
- Right Side API:
- getEventCountByYear
- getEventTimeDistribution
- getEventMonthDistribution
- getEventCategoryCount
- getEventSubCategoryCount
- getEventSourceCount
- getGridEventCount
- getEventProcessingTime
- `date`: The date you are searching. E.g. `2023-05-03`
- `sight`: The name of the sight. E.g. `八公山森林公园`
- `year`:The year you are searching. E.g. `2023`
## Example Request:
- Left Side:
```
http://localhost:30016/getdata?content=sightVisitorFlowByDay&date=2023-05-03&sight=八公山森林公园
```
- Middle: ```
http://localhost:30016/getdata?content=currentEventStrategy&date=2023-05-03
```
- Right Side: ```
http://localhost:30016/getdata?content=getEventCategoryCount&year=2024
```
## How to Run:
1. Clone the Repository (```
git clone http://123.207.147.179:8888/chenjinjing/shouzhouServer.git
```)
2. In the root directory, run ```
npm install
```
3.
Using VScode IDE, press F5 to start the server.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment