实现首页功能,添加体育项目和今日比赛数据的加载,更新国际化文本,新增选择和日历模态框组件
This commit is contained in:
72
docs/开发文档.md
Normal file
72
docs/开发文档.md
Normal file
@@ -0,0 +1,72 @@
|
||||
开发地址后端 本地8000端口
|
||||
|
||||
获取所有启用的体育项目列表
|
||||
/v1/api/sports
|
||||
|
||||
{
|
||||
"code": 0,
|
||||
"message": "ok",
|
||||
"data": {
|
||||
"list": [
|
||||
{
|
||||
"id": 1,
|
||||
"name": "足球",
|
||||
"description": "足球",
|
||||
"icon": "",
|
||||
"isActive": false,
|
||||
"updatedAt": "",
|
||||
"createdAt": ""
|
||||
},
|
||||
{
|
||||
"id": 2,
|
||||
"name": "篮球",
|
||||
"description": "篮球",
|
||||
"icon": "",
|
||||
"isActive": false,
|
||||
"updatedAt": "",
|
||||
"createdAt": ""
|
||||
}
|
||||
],
|
||||
"total": 4
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/v1/api/matches/today
|
||||
Parameters
|
||||
Cancel
|
||||
Name Description
|
||||
sport_id *
|
||||
integer
|
||||
(query)
|
||||
体育项目ID (1:足球, 2:篮球, 3:网球, 4:板球)
|
||||
|
||||
|
||||
{
|
||||
"code": 0,
|
||||
"message": "ok",
|
||||
"data": {
|
||||
"list": [
|
||||
{
|
||||
"id": "27",
|
||||
"league": "EFL Trophy - 1/8-finals",
|
||||
"time": "20:00",
|
||||
"home": "AFC Wimbledon",
|
||||
"away": "West Ham U21",
|
||||
"meta": "The Cherry Red Records Stadium",
|
||||
"scoreText": "-",
|
||||
"fav": false
|
||||
},
|
||||
{
|
||||
"id": "241",
|
||||
"league": "Division di Honor",
|
||||
"time": "01:00",
|
||||
"home": "Estrella",
|
||||
"away": "Dakota",
|
||||
"scoreText": "-",
|
||||
"fav": false
|
||||
}
|
||||
],
|
||||
"total": 78
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user