# bigdata_depression **Repository Path**: wrm244/bigdata_depression ## Basic Information - **Project Name**: bigdata_depression - **Description**: 对全球抑郁症患者数量大数据分析项目后端SpringBoot框架 - **Primary Language**: Java - **License**: MIT - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2023-07-16 - **Last Updated**: 2023-07-16 ## Categories & Tags **Categories**: Uncategorized **Tags**: BigData ## README ## depression 项目后端API说明 > 运行环境:JDK@1.8 Springboot@2.7.13 > API v1.0.0 Base URLs: * 测试环境: ``http://localhost`` * 正式环境: ``https://bdapi.gxist.cn`` ## 前端页面截图([前端代码仓库](https://github.com/wrm244/depression_demo/)) ![image](https://github.com/wrm244/depression_demo/assets/54385511/ea97d683-dc4f-47f6-85b1-88e48366e15f) ![image](https://github.com/wrm244/depression_demo/assets/54385511/a3768e53-c0a6-484b-88be-ae40b78577bf) ![image](https://github.com/wrm244/depression_demo/assets/54385511/bdbb6573-cd6a-4bb3-813e-b5859c5ee754) ## 贡献者(大数据小组01)
wrm244
RiverMountain
Gmorning730
Morning Jia
dignity666
dignity666
Guoxxxl
Guoxxxl
peoplemaker
peoplemaker
## GET age-depressed GET /api/age-depressed 年龄段与抑郁人数关系选择所有数据返回 > 返回示例 > 成功 ```json { "code": 20011, "data": [ { "age": "5-14", "depressedNo": 52264 }, { "age": "55-74", "depressedNo": 1658443 }, { "age": "35-54", "depressedNo": 2452141 }, { "age": "15-24", "depressedNo": 808542 }, { "age": "75+", "depressedNo": 653118 }, { "age": "25-34", "depressedNo": 1123912 } ], "msg": "" } ``` > 404 Response ```json { "code": 404, "data": null, "msg": "请求资源未找到" } ``` ### 返回结果 |状态码|状态码含义|说明|数据模型| |---|---|---|---| |200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|成功|Inline| |404|[Not Found](https://tools.ietf.org/html/rfc7231#section-6.5.4)|记录不存在|Inline| ### 返回数据结构 状态码 **200** |名称|类型|必选|约束|中文名|说明| |---|---|---|---|---|---| |» code|integer|true|none||none| |» data|[object]|true|none||none| |»» age|string|true|none||none| |»» depressedNo|integer|true|none||none| |» msg|string|true|none||none| 状态码 **404** |名称|类型|必选|约束|中文名|说明| |---|---|---|---|---|---| |» code|integer|true|none||none| |» data|null|true|none||none| |» msg|string|true|none||none| ## GET hdi-depressed GET /api/hdi-depressed 人类每年发展系数与抑郁人数关系选择所有数据返回 > 返回示例 > 成功 ```json { "code": 20011, "data": [ { "hdiForYear": "0.55-0.60", "depressedNo": 19954 }, { "hdiForYear": "0.85-0.90", "depressedNo": 530630 } ], "msg": "" } ``` ### 返回结果 |状态码|状态码含义|说明|数据模型| |---|---|---|---| |200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|成功|Inline| ### 返回数据结构 状态码 **200** |名称|类型|必选|约束|中文名|说明| |---|---|---|---|---|---| |» code|integer|true|none||none| |» data|[object]|true|none||none| |»» hdiForYear|string|true|none||none| |»» depressedNo|integer|true|none||none| |» msg|string|true|none||none| ## GET year-depressed GET /api/year-depressed 年份与抑郁人数关系选择所有数据返回 > 返回示例 > 成功 ```json { "code": 20011, "data": [ { "year": "2000", "depressedNo": 255832 } ], "msg": "" } ``` ### 返回结果 |状态码|状态码含义|说明|数据模型| |---|---|---|---| |200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|成功|Inline| ### 返回数据结构 状态码 **200** |名称|类型|必选|约束|中文名|说明| |---|---|---|---|---|---| |» code|integer|true|none||none| |» data|[object]|true|none||none| |»» year|string|true|none||none| |»» depressedNo|integer|true|none||none| |» msg|string|true|none||none| ## GET country-depressed-per GET /api/country-depressed-per 不同国家的平均抑郁症患者人数 > 返回示例 > 成功 ```json { "code": 20011, "data": [ { "country": "Lithuania", "average_depression_ratio": 4.004393939393939 }, { "country": "Republic of Korea", "average_depression_ratio": 3.5325984848484837 } ], "msg": "" } ``` ```json { "code": 60001, "data": null, "msg": "业务错误,请检查代码" } ``` ### 返回结果 |状态码|状态码含义|说明|数据模型| |---|---|---|---| |200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|成功|Inline| ### 返回数据结构 状态码 **200** |名称|类型|必选|约束|中文名|说明| |---|---|---|---|---|---| |» code|integer|true|none||none| |» data|[object]|true|none||none| |»» country|string|true|none||none| |»» average_depression_ratio|number|true|none||none| |» msg|string|true|none||none| ## GET year-per-depressed GET /api/year-per-depressed 不同年份的不同性别抑郁症患者api选择所有数据返回 ### 请求参数 |名称|位置|类型|必选|说明| |---|---|---|---|---| |sex|query|array[string]| 否 |性别参数,male表示男性,female表示女性| > 返回示例 > 成功 ```json { "code": 20011, "data": [ { "year": "1985", "depressed_no": 83584 }, { "year": "1986", "depressed_no": 86818 } ], "msg": "" } ``` ```json { "code": 60001, "data": null, "msg": "mal 参数传递错误!" } ``` ### 返回结果 |状态码|状态码含义|说明|数据模型| |---|---|---|---| |200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|成功|Inline| ### 返回数据结构 状态码 **200** |名称|类型|必选|约束|中文名|说明| |---|---|---|---|---|---| |» code|integer|true|none||none| |» data|[object]|true|none||none| |»» year|string|true|none||none| |»» depressed_no|integer|true|none||none| |» msg|string|true|none||none| ## GET gdp-per-section GET /api/gdp-per-section 各GPU不同区间返回的抑郁症患者人数 > 返回示例 > 成功 ```json { "code": 20011, "data": [ { "gdpPerCapita": "<300", "depressedNo": 603 }, { "gdpPerCapita": "300-500", "depressedNo": 20016 }, { "gdpPerCapita": "500-1000", "depressedNo": 178063 }, { "gdpPerCapita": ">1000", "depressedNo": 6549738 } ], "msg": "" } ``` ### 返回结果 |状态码|状态码含义|说明|数据模型| |---|---|---|---| |200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|成功|Inline| ### 返回数据结构 状态码 **200** |名称|类型|必选|约束|中文名|说明| |---|---|---|---|---|---| |» code|integer|true|none||none| |» data|[object]|true|none||none| |»» gdpPerCapita|string|true|none||none| |»» depressedNo|integer|true|none||none| |» msg|string|true|none||none| ## GET year-country-depressed-per GET /api/year-country-depressed-per 返回不同年份不同国家的总抑郁率 > 返回示例 > 成功 ```json { "code": 20011, "data": [ { "country": "Puerto Rico", "year": "1986", "totalDepressedRate": 178.23000000000002 }, { "country": "Belize", "year": "1987", "totalDepressedRate": 31.41 } ], "msg": "" } ``` ```json { "code": 60001, "data": null, "msg": "业务错误,请检查代码" } ``` ### 返回结果 |状态码|状态码含义|说明|数据模型| |---|---|---|---| |200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|成功|Inline| ### 返回数据结构 状态码 **200** |名称|类型|必选|约束|中文名|说明| |---|---|---|---|---|---| |» code|integer|true|none||none| |» data|[object]|true|none||none| |»» country|string|true|none||none| |»» year|string|true|none||none| |»» totalDepressedRate|number|true|none||none| |» msg|string|true|none||none| ## GET year-country-depression-no GET /api/year-country-depression-no 返回不同年份不同国家的总抑郁人数 > 返回示例 > 成功 ```json { "code": 20011, "data": [ { "country": "Colombia", "year": "1985", "totalDepressedNo": 1001 }, { "country": "Japan", "year": "1985", "totalDepressedNo": 23257 } ], "msg": "" } ``` ### 返回结果 |状态码|状态码含义|说明|数据模型| |---|---|---|---| |200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|成功|Inline| ### 返回数据结构 状态码 **200** |名称|类型|必选|约束|中文名|说明| |---|---|---|---|---|---| |» code|integer|true|none||none| |» data|[object]|true|none||none| |»» country|string|true|none||none| |»» year|string|true|none||none| |»» totalDepressedNo|integer|true|none||none| |» msg|string|true|none||none| ## GET sex-depressed GET /api/sex-depressed 男女不同的抑郁症人数 > 返回示例 > 成功 ```json { "code": 20011, "data": [ { "sex": "male", "depressedSex": 5188910 }, { "sex": "female", "depressedSex": 1559510 } ], "msg": "" } ``` ```json { "code": 60001, "data": null, "msg": "业务错误,请检查代码" } ``` ### 返回结果 |状态码|状态码含义|说明|数据模型| |---|---|---|---| |200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|成功|Inline| ### 返回数据结构 状态码 **200** |名称|类型|必选|约束|中文名|说明| |---|---|---|---|---|---| |» code|integer|true|none||none| |» data|[object]|true|none||none| |»» sex|string|true|none||none| |»» depressedSex|integer|true|none||none| |» msg|string|true|none||none|