Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
A
antai-sport-http-server
Project
Project
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
antai-sport
antai-sport-http-server
Commits
ce1ffe6a
Commit
ce1ffe6a
authored
Aug 20, 2022
by
liming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加课程相关数据表
parent
7da79aab
Hide whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
1115 additions
and
584 deletions
+1115
-584
antai-sport.ndm2
doc/antai-sport.ndm2
+584
-584
AppVersion.java
...i/sport/http/server/repository/app/entity/AppVersion.java
+76
-0
AppVersionMapper.java
...t/http/server/repository/app/mapper/AppVersionMapper.java
+16
-0
Course.java
...ai/sport/http/server/repository/course/entity/Course.java
+91
-0
CourseItem.java
...port/http/server/repository/course/entity/CourseItem.java
+102
-0
CourseRecord.java
...rt/http/server/repository/course/entity/CourseRecord.java
+157
-0
CourseItemMapper.java
...ttp/server/repository/course/mapper/CourseItemMapper.java
+16
-0
CourseMapper.java
...rt/http/server/repository/course/mapper/CourseMapper.java
+16
-0
CourseRecordMapper.java
...p/server/repository/course/mapper/CourseRecordMapper.java
+16
-0
AppVersionMapper.xml
...sitory/src/main/resources/mapper/app/AppVersionMapper.xml
+5
-0
CourseItemMapper.xml
...ory/src/main/resources/mapper/course/CourseItemMapper.xml
+5
-0
CourseMapper.xml
repository/src/main/resources/mapper/course/CourseMapper.xml
+5
-0
CourseRecordMapper.xml
...y/src/main/resources/mapper/course/CourseRecordMapper.xml
+5
-0
CourseController.java
...rver/api/business/course/controller/CourseController.java
+14
-0
CourseService.java
...ver/server/api/business/course/service/CourseService.java
+7
-0
No files found.
doc/antai-sport.ndm2
View file @
ce1ffe6a
...
...
@@ -23572,8 +23572,8 @@
},
{
"objectType": "Table_MYSQL",
"name": "course_
item
",
"comment": "课程
章节
",
"name": "course_
record
",
"comment": "课程
记录
",
"engine": "InnoDB",
"characterSet": "utf8mb4",
"collation": "utf8mb4_0900_ai_ci",
...
...
@@ -23648,35 +23648,35 @@
},
{
"objectType": "TableField_MYSQL",
"name": "
name
",
"type": "
varchar
",
"length":
100
,
"name": "
course_id
",
"type": "
bigint
",
"length":
-2147483648
,
"decimals": -2147483648,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
"isBinary": false,
"charset": "
utf8mb4
",
"collation": "
utf8mb4_0900_ai_ci
",
"charset": "",
"collation": "",
"isNullable": true,
"defaultType": "
Null
",
"defaultType": "
Others
",
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "
章节名称
",
"comment": "
课程id
",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "
name
"
"oldName": "
course_id
"
},
{
"objectType": "TableField_MYSQL",
"name": "
target_typ
e",
"type": "
int
",
"length":
-2147483648
,
"name": "
course_nam
e",
"type": "
varchar
",
"length":
255
,
"decimals": -2147483648,
"isUnsigned": false,
"isZeroFill": false,
...
...
@@ -23689,19 +23689,19 @@
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "
指标类型 1:ftp 2:踏频 3:速度
",
"comment": "
课程名称
",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "
target_typ
e"
"oldName": "
course_nam
e"
},
{
"objectType": "TableField_MYSQL",
"name": "
target_value_type
",
"type": "int",
"name": "
player_id
",
"type": "
big
int",
"length": -2147483648,
"decimals": -2147483648,
"isUnsigned": false,
...
...
@@ -23711,25 +23711,25 @@
"charset": "",
"collation": "",
"isNullable": true,
"defaultType": "
Others
",
"defaultType": "
Null
",
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "
目标值类型
",
"comment": "
用户id
",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "
target_value_type
"
"oldName": "
player_id
"
},
{
"objectType": "TableField_MYSQL",
"name": "
target_value
",
"type": "
int
",
"length":
-2147483648
,
"decimals":
-2147483648
,
"name": "
map
",
"type": "
varchar
",
"length":
255
,
"decimals":
0
,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
...
...
@@ -23741,21 +23741,21 @@
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "
目标值
",
"comment": "
地图名称
",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "
target_value
"
"oldName": "
map
"
},
{
"objectType": "TableField_MYSQL",
"name": "
allowable_deviation
",
"type": "
decimal
",
"length":
1
,
"decimals":
2
,
"name": "
path
",
"type": "
varchar
",
"length":
255
,
"decimals":
0
,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
...
...
@@ -23767,14 +23767,14 @@
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "
允许偏差
",
"comment": "
路线名称
",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "
allowable_deviation
"
"oldName": "
path
"
},
{
"objectType": "TableField_MYSQL",
...
...
@@ -23789,11 +23789,11 @@
"charset": "",
"collation": "",
"isNullable": true,
"defaultType": "
Others
",
"defaultType": "
Null
",
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "
持续时长s
",
"comment": "
骑行时长(秒)
",
"columnFormat": "",
"storage": "",
"isVirtual": false,
...
...
@@ -23804,10 +23804,10 @@
},
{
"objectType": "TableField_MYSQL",
"name": "d
escription
",
"type": "
varchar
",
"length": 1
000
,
"decimals":
-2147483648
,
"name": "d
istance
",
"type": "
decimal
",
"length": 1
8
,
"decimals":
2
,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
...
...
@@ -23815,22 +23815,100 @@
"charset": "",
"collation": "",
"isNullable": true,
"defaultType": "
Others
",
"defaultType": "
Null
",
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "
描述
",
"comment": "
骑行总长度
",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "d
escription
"
"oldName": "d
istance
"
},
{
"objectType": "TableField_MYSQL",
"name": "show_order",
"name": "climb_distance",
"type": "decimal",
"length": 18,
"decimals": 2,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
"isBinary": false,
"charset": "",
"collation": "",
"isNullable": true,
"defaultType": "Null",
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "爬坡距离",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "climb_distance"
},
{
"objectType": "TableField_MYSQL",
"name": "avg_ftp",
"type": "decimal",
"length": 18,
"decimals": 2,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
"isBinary": false,
"charset": "",
"collation": "",
"isNullable": true,
"defaultType": "Null",
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "平均功率",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "avg_ftp"
},
{
"objectType": "TableField_MYSQL",
"name": "avg_speed",
"type": "decimal",
"length": 18,
"decimals": 2,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
"isBinary": false,
"charset": "",
"collation": "",
"isNullable": true,
"defaultType": "Null",
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "平均速度",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "avg_speed"
},
{
"objectType": "TableField_MYSQL",
"name": "calorie",
"type": "int",
"length": -2147483648,
"decimals": -2147483648,
...
...
@@ -23842,24 +23920,24 @@
"collation": "",
"isNullable": true,
"defaultType": "Others",
"defaultValue": "
0
",
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "
显示顺序
",
"comment": "
卡路里
",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "
show_order
"
"oldName": "
calorie
"
},
{
"objectType": "TableField_MYSQL",
"name": "
version
",
"type": "
bigint
",
"length":
-214748364
8,
"decimals":
-2147483648
,
"name": "
weight
",
"type": "
decimal
",
"length":
1
8,
"decimals":
2
,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
...
...
@@ -23868,24 +23946,24 @@
"collation": "",
"isNullable": true,
"defaultType": "Others",
"defaultValue": "
0
",
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "
版本号
",
"comment": "
体重
",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "
version
"
"oldName": "
weight
"
},
{
"objectType": "TableField_MYSQL",
"name": "
deleted
",
"type": "
tinyint
",
"length":
-214748364
8,
"decimals":
-2147483648
,
"name": "
one_minutes_ftp
",
"type": "
decimal
",
"length":
1
8,
"decimals":
2
,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
...
...
@@ -23894,24 +23972,24 @@
"collation": "",
"isNullable": true,
"defaultType": "Others",
"defaultValue": "
0
",
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "
删除标记
",
"comment": "
1分钟平均最佳FTP
",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "
deleted
"
"oldName": "
one_minutes_ftp
"
},
{
"objectType": "TableField_MYSQL",
"name": "
create_by
",
"type": "
bigint
",
"length":
-214748364
8,
"decimals":
-2147483648
,
"name": "
five_minutes_ftp
",
"type": "
decimal
",
"length":
1
8,
"decimals":
2
,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
...
...
@@ -23923,21 +24001,21 @@
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "
创建人
",
"comment": "
5分钟平均最佳FTP
",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "
create_by
"
"oldName": "
five_minutes_ftp
"
},
{
"objectType": "TableField_MYSQL",
"name": "
create_time
",
"type": "d
atetime
",
"length":
-214748364
8,
"decimals":
-2147483648
,
"name": "
twenty_minutes_ftp
",
"type": "d
ecimal
",
"length":
1
8,
"decimals":
2
,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
...
...
@@ -23946,24 +24024,24 @@
"collation": "",
"isNullable": true,
"defaultType": "Others",
"defaultValue": "
CURRENT_TIMESTAMP
",
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "
创建时间
",
"comment": "
20分钟平均最佳FTP
",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "
create_time
"
"oldName": "
twenty_minutes_ftp
"
},
{
"objectType": "TableField_MYSQL",
"name": "
update_by
",
"type": "
bigint
",
"length":
-214748364
8,
"decimals":
-2147483648
,
"name": "
one_minutes_wkg
",
"type": "
decimal
",
"length":
1
8,
"decimals":
2
,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
...
...
@@ -23975,21 +24053,21 @@
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "
修改人
",
"comment": "
1分钟平均最佳功体比
",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "
update_by
"
"oldName": "
one_minutes_wkg
"
},
{
"objectType": "TableField_MYSQL",
"name": "
update_time
",
"type": "d
atetime
",
"length":
-214748364
8,
"decimals":
-2147483648
,
"name": "
five_minutes_wkg
",
"type": "d
ecimal
",
"length":
1
8,
"decimals":
2
,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
...
...
@@ -23998,24 +24076,232 @@
"collation": "",
"isNullable": true,
"defaultType": "Others",
"defaultValue": "
CURRENT_TIMESTAMP
",
"isOnUpdateCurrentTimestamp":
tru
e,
"defaultValue": "",
"isOnUpdateCurrentTimestamp":
fals
e,
"isAutoInc": false,
"comment": "
修改时间
",
"comment": "
5分钟平均最佳功体比
",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "update_time"
}
],
"indexes": [],
"primaryKey": {
"objectType": "PrimaryKey_MYSQL",
"name": "",
"fields": [
"oldName": "five_minutes_wkg"
},
{
"objectType": "TableField_MYSQL",
"name": "twenty_minutes_wkg",
"type": "decimal",
"length": 18,
"decimals": 2,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
"isBinary": false,
"charset": "",
"collation": "",
"isNullable": true,
"defaultType": "Others",
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "20分钟平均最佳功体比",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "twenty_minutes_wkg"
},
{
"objectType": "TableField_MYSQL",
"name": "score",
"type": "decimal",
"length": 18,
"decimals": 2,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
"isBinary": false,
"charset": "",
"collation": "",
"isNullable": true,
"defaultType": "Others",
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "得分",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "score"
},
{
"objectType": "TableField_MYSQL",
"name": "praise_num",
"type": "int",
"length": 0,
"decimals": 0,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
"isBinary": false,
"charset": "",
"collation": "",
"isNullable": true,
"defaultType": "Others",
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "获攒数量",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "praise_num"
},
{
"objectType": "TableField_MYSQL",
"name": "status",
"type": "tinyint",
"length": 4,
"decimals": 0,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
"isBinary": false,
"charset": "",
"collation": "",
"isNullable": true,
"defaultType": "Others",
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "状态 10.未提交数据 20.已提交数据",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "status"
},
{
"objectType": "TableField_MYSQL",
"name": "version",
"type": "bigint",
"length": -2147483648,
"decimals": -2147483648,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
"isBinary": false,
"charset": "",
"collation": "",
"isNullable": true,
"defaultType": "Others",
"defaultValue": "0",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "版本号",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "version"
},
{
"objectType": "TableField_MYSQL",
"name": "deleted",
"type": "tinyint",
"length": -2147483648,
"decimals": -2147483648,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
"isBinary": false,
"charset": "",
"collation": "",
"isNullable": true,
"defaultType": "Others",
"defaultValue": "0",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "删除标记",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "deleted"
},
{
"objectType": "TableField_MYSQL",
"name": "create_time",
"type": "datetime",
"length": -2147483648,
"decimals": -2147483648,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
"isBinary": false,
"charset": "",
"collation": "",
"isNullable": true,
"defaultType": "Others",
"defaultValue": "CURRENT_TIMESTAMP",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "创建时间",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "create_time"
},
{
"objectType": "TableField_MYSQL",
"name": "update_time",
"type": "datetime",
"length": -2147483648,
"decimals": -2147483648,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
"isBinary": false,
"charset": "",
"collation": "",
"isNullable": true,
"defaultType": "Others",
"defaultValue": "CURRENT_TIMESTAMP",
"isOnUpdateCurrentTimestamp": true,
"isAutoInc": false,
"comment": "修改时间",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "update_time"
}
],
"indexes": [],
"primaryKey": {
"objectType": "PrimaryKey_MYSQL",
"name": "",
"fields": [
{
"objectType": "IndexField_MYSQL",
"name": "id",
...
...
@@ -24121,13 +24407,6 @@
"order": "",
"oldName": ""
},
{
"objectType": "IndexField_MYSQL",
"name": "",
"keyLength": 0,
"order": "",
"oldName": ""
},
{
"objectType": "IndexField_MYSQL",
"name": "",
...
...
@@ -24146,8 +24425,8 @@
},
{
"objectType": "Table_MYSQL",
"name": "
course_record
",
"comment": "
课程记录
",
"name": "
app_version
",
"comment": "
app版本升级
",
"engine": "InnoDB",
"characterSet": "utf8mb4",
"collation": "utf8mb4_0900_ai_ci",
...
...
@@ -24222,8 +24501,8 @@
},
{
"objectType": "TableField_MYSQL",
"name": "c
ourse_id
",
"type": "
big
int",
"name": "c
lient_type
",
"type": "int",
"length": -2147483648,
"decimals": -2147483648,
"isUnsigned": false,
...
...
@@ -24237,437 +24516,21 @@
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "
课程id
",
"comment": "
1:android 2:ios
",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "c
ourse_id
"
"oldName": "c
lient_type
"
},
{
"objectType": "TableField_MYSQL",
"name": "course_name",
"type": "varchar",
"length": 255,
"decimals": -2147483648,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
"isBinary": false,
"charset": "",
"collation": "",
"isNullable": true,
"defaultType": "Others",
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "课程名称",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "course_name"
},
{
"objectType": "TableField_MYSQL",
"name": "player_id",
"type": "bigint",
"length": -2147483648,
"decimals": -2147483648,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
"isBinary": false,
"charset": "",
"collation": "",
"isNullable": true,
"defaultType": "Null",
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "用户id",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "player_id"
},
{
"objectType": "TableField_MYSQL",
"name": "map",
"type": "varchar",
"length": 255,
"decimals": 0,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
"isBinary": false,
"charset": "",
"collation": "",
"isNullable": true,
"defaultType": "Others",
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "地图名称",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "map"
},
{
"objectType": "TableField_MYSQL",
"name": "path",
"type": "varchar",
"length": 255,
"decimals": 0,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
"isBinary": false,
"charset": "",
"collation": "",
"isNullable": true,
"defaultType": "Others",
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "路线名称",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "path"
},
{
"objectType": "TableField_MYSQL",
"name": "duration",
"type": "int",
"length": -2147483648,
"decimals": -2147483648,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
"isBinary": false,
"charset": "",
"collation": "",
"isNullable": true,
"defaultType": "Null",
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "骑行时长(秒)",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "duration"
},
{
"objectType": "TableField_MYSQL",
"name": "distance",
"type": "decimal",
"length": 18,
"decimals": 2,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
"isBinary": false,
"charset": "",
"collation": "",
"isNullable": true,
"defaultType": "Null",
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "骑行总长度",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "distance"
},
{
"objectType": "TableField_MYSQL",
"name": "climb_distance",
"type": "decimal",
"length": 18,
"decimals": 2,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
"isBinary": false,
"charset": "",
"collation": "",
"isNullable": true,
"defaultType": "Null",
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "爬坡距离",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "climb_distance"
},
{
"objectType": "TableField_MYSQL",
"name": "avg_ftp",
"type": "decimal",
"length": 18,
"decimals": 2,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
"isBinary": false,
"charset": "",
"collation": "",
"isNullable": true,
"defaultType": "Null",
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "平均功率",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "avg_ftp"
},
{
"objectType": "TableField_MYSQL",
"name": "avg_speed",
"type": "decimal",
"length": 18,
"decimals": 2,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
"isBinary": false,
"charset": "",
"collation": "",
"isNullable": true,
"defaultType": "Null",
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "平均速度",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "avg_speed"
},
{
"objectType": "TableField_MYSQL",
"name": "calorie",
"type": "int",
"length": -2147483648,
"decimals": -2147483648,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
"isBinary": false,
"charset": "",
"collation": "",
"isNullable": true,
"defaultType": "Others",
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "卡路里",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "calorie"
},
{
"objectType": "TableField_MYSQL",
"name": "weight",
"type": "decimal",
"length": 18,
"decimals": 2,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
"isBinary": false,
"charset": "",
"collation": "",
"isNullable": true,
"defaultType": "Others",
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "体重",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "weight"
},
{
"objectType": "TableField_MYSQL",
"name": "one_minutes_ftp",
"type": "decimal",
"length": 18,
"decimals": 2,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
"isBinary": false,
"charset": "",
"collation": "",
"isNullable": true,
"defaultType": "Others",
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "1分钟平均最佳FTP",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "one_minutes_ftp"
},
{
"objectType": "TableField_MYSQL",
"name": "five_minutes_ftp",
"type": "decimal",
"length": 18,
"decimals": 2,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
"isBinary": false,
"charset": "",
"collation": "",
"isNullable": true,
"defaultType": "Others",
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "5分钟平均最佳FTP",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "five_minutes_ftp"
},
{
"objectType": "TableField_MYSQL",
"name": "twenty_minutes_ftp",
"type": "decimal",
"length": 18,
"decimals": 2,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
"isBinary": false,
"charset": "",
"collation": "",
"isNullable": true,
"defaultType": "Others",
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "20分钟平均最佳FTP",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "twenty_minutes_ftp"
},
{
"objectType": "TableField_MYSQL",
"name": "one_minutes_wkg",
"type": "decimal",
"length": 18,
"decimals": 2,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
"isBinary": false,
"charset": "",
"collation": "",
"isNullable": true,
"defaultType": "Others",
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "1分钟平均最佳功体比",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "one_minutes_wkg"
},
{
"objectType": "TableField_MYSQL",
"name": "five_minutes_wkg",
"type": "decimal",
"length": 18,
"decimals": 2,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
"isBinary": false,
"charset": "",
"collation": "",
"isNullable": true,
"defaultType": "Others",
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "5分钟平均最佳功体比",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "five_minutes_wkg"
},
{
"objectType": "TableField_MYSQL",
"name": "twenty_minutes_wkg",
"type": "decimal",
"length": 18,
"decimals": 2,
"name": "version",
"type": "varchar",
"length": 50,
"decimals": -2147483648,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
...
...
@@ -24679,21 +24542,21 @@
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "
20分钟平均最佳功体比
",
"comment": "
版本号x.y.z
",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "
twenty_minutes_wkg
"
"oldName": "
version
"
},
{
"objectType": "TableField_MYSQL",
"name": "
score
",
"type": "
decimal
",
"length": 1
8
,
"decimals":
2
,
"name": "
content
",
"type": "
varchar
",
"length": 1
000
,
"decimals":
-2147483648
,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
...
...
@@ -24705,21 +24568,21 @@
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "
得分
",
"comment": "
更新内容
",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "
score
"
"oldName": "
content
"
},
{
"objectType": "TableField_MYSQL",
"name": "
praise_num
",
"type": "
int
",
"length": 0,
"decimals":
0
,
"name": "
url
",
"type": "
varchar
",
"length":
50
0,
"decimals":
-2147483648
,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
...
...
@@ -24731,21 +24594,21 @@
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "
获攒数量
",
"comment": "
下载地址
",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "
praise_num
"
"oldName": "
url
"
},
{
"objectType": "TableField_MYSQL",
"name": "
status
",
"type": "
tinyin
t",
"length":
4
,
"decimals":
0
,
"name": "
force
",
"type": "
bi
t",
"length":
-2147483648
,
"decimals":
-2147483648
,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
...
...
@@ -24757,18 +24620,18 @@
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "
状态 10.未提交数据 20.已提交数据
",
"comment": "
是否强制更新
",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "
status
"
"oldName": "
force
"
},
{
"objectType": "TableField_MYSQL",
"name": "
version
",
"name": "
create_by
",
"type": "bigint",
"length": -2147483648,
"decimals": -2147483648,
...
...
@@ -24780,22 +24643,22 @@
"collation": "",
"isNullable": true,
"defaultType": "Others",
"defaultValue": "
0
",
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "
版本号
",
"comment": "
创建人
",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "
version
"
"oldName": "
create_by
"
},
{
"objectType": "TableField_MYSQL",
"name": "
deleted
",
"type": "
tinyint
",
"name": "
create_time
",
"type": "
datetime
",
"length": -2147483648,
"decimals": -2147483648,
"isUnsigned": false,
...
...
@@ -24806,22 +24669,22 @@
"collation": "",
"isNullable": true,
"defaultType": "Others",
"defaultValue": "
0
",
"defaultValue": "
CURRENT_TIMESTAMP
",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "
删除标记
",
"comment": "
创建时间
",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "
deleted
"
"oldName": "
create_time
"
},
{
"objectType": "TableField_MYSQL",
"name": "
create_time
",
"type": "
datetime
",
"name": "
update_by
",
"type": "
bigint
",
"length": -2147483648,
"decimals": -2147483648,
"isUnsigned": false,
...
...
@@ -24832,17 +24695,17 @@
"collation": "",
"isNullable": true,
"defaultType": "Others",
"defaultValue": "
CURRENT_TIMESTAMP
",
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "
创建时间
",
"comment": "
修改人
",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "
create_time
"
"oldName": "
update_by
"
},
{
"objectType": "TableField_MYSQL",
...
...
@@ -24981,6 +24844,13 @@
"order": "",
"oldName": ""
},
{
"objectType": "IndexField_MYSQL",
"name": "",
"keyLength": 0,
"order": "",
"oldName": ""
},
{
"objectType": "IndexField_MYSQL",
"name": "",
...
...
@@ -24999,8 +24869,8 @@
},
{
"objectType": "Table_MYSQL",
"name": "
app_version
",
"comment": "
app版本升级
",
"name": "
course_item
",
"comment": "
课程章节
",
"engine": "InnoDB",
"characterSet": "utf8mb4",
"collation": "utf8mb4_0900_ai_ci",
...
...
@@ -25075,7 +24945,33 @@
},
{
"objectType": "TableField_MYSQL",
"name": "client_type",
"name": "name",
"type": "varchar",
"length": 100,
"decimals": -2147483648,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
"isBinary": false,
"charset": "utf8mb4",
"collation": "utf8mb4_0900_ai_ci",
"isNullable": true,
"defaultType": "Null",
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "章节名称",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "name"
},
{
"objectType": "TableField_MYSQL",
"name": "target_type",
"type": "int",
"length": -2147483648,
"decimals": -2147483648,
...
...
@@ -25090,20 +24986,20 @@
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "
1:android 2:ios
",
"comment": "
指标类型 1:ftp 2:踏频 3:速度
",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "
clien
t_type"
"oldName": "
targe
t_type"
},
{
"objectType": "TableField_MYSQL",
"name": "
version
",
"type": "
varchar
",
"length":
50
,
"name": "
target_value_type
",
"type": "
int
",
"length":
-2147483648
,
"decimals": -2147483648,
"isUnsigned": false,
"isZeroFill": false,
...
...
@@ -25116,20 +25012,20 @@
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "
版本号x.y.z
",
"comment": "
目标值类型
",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "
version
"
"oldName": "
target_value_type
"
},
{
"objectType": "TableField_MYSQL",
"name": "
content
",
"type": "
varchar
",
"length":
1000
,
"name": "
target_value
",
"type": "
int
",
"length":
-2147483648
,
"decimals": -2147483648,
"isUnsigned": false,
"isZeroFill": false,
...
...
@@ -25142,20 +25038,72 @@
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "
更新内容
",
"comment": "
目标值
",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "
content
"
"oldName": "
target_value
"
},
{
"objectType": "TableField_MYSQL",
"name": "url",
"name": "allowable_deviation",
"type": "decimal",
"length": 18,
"decimals": 2,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
"isBinary": false,
"charset": "",
"collation": "",
"isNullable": true,
"defaultType": "Others",
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "允许偏差",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "allowable_deviation"
},
{
"objectType": "TableField_MYSQL",
"name": "duration",
"type": "int",
"length": -2147483648,
"decimals": -2147483648,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
"isBinary": false,
"charset": "",
"collation": "",
"isNullable": true,
"defaultType": "Others",
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "持续时长s",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "duration"
},
{
"objectType": "TableField_MYSQL",
"name": "description",
"type": "varchar",
"length":
5
00,
"length":
10
00,
"decimals": -2147483648,
"isUnsigned": false,
"isZeroFill": false,
...
...
@@ -25168,19 +25116,19 @@
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "
下载地址
",
"comment": "
描述
",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "
url
"
"oldName": "
description
"
},
{
"objectType": "TableField_MYSQL",
"name": "
force
",
"type": "
bi
t",
"name": "
show_order
",
"type": "
in
t",
"length": -2147483648,
"decimals": -2147483648,
"isUnsigned": false,
...
...
@@ -25191,17 +25139,69 @@
"collation": "",
"isNullable": true,
"defaultType": "Others",
"defaultValue": "",
"defaultValue": "
0
",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "
是否强制更新
",
"comment": "
显示顺序
",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "force"
"oldName": "show_order"
},
{
"objectType": "TableField_MYSQL",
"name": "version",
"type": "bigint",
"length": -2147483648,
"decimals": -2147483648,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
"isBinary": false,
"charset": "",
"collation": "",
"isNullable": true,
"defaultType": "Others",
"defaultValue": "0",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "版本号",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "version"
},
{
"objectType": "TableField_MYSQL",
"name": "deleted",
"type": "tinyint",
"length": -2147483648,
"decimals": -2147483648,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
"isBinary": false,
"charset": "",
"collation": "",
"isNullable": true,
"defaultType": "Others",
"defaultValue": "0",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "删除标记",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "deleted"
},
{
"objectType": "TableField_MYSQL",
...
...
repository/src/main/java/com/antai/sport/http/server/repository/app/entity/AppVersion.java
0 → 100644
View file @
ce1ffe6a
package
com
.
antai
.
sport
.
http
.
server
.
repository
.
app
.
entity
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
java.time.LocalDateTime
;
import
java.io.Serializable
;
import
lombok.Data
;
import
lombok.EqualsAndHashCode
;
/**
* <p>
*
* </p>
*
* @author liming
* @since 2022-08-20
*/
@Data
@EqualsAndHashCode
(
callSuper
=
false
)
public
class
AppVersion
implements
Serializable
{
private
static
final
long
serialVersionUID
=
1L
;
/**
* 主键
*/
@TableId
(
value
=
"id"
,
type
=
IdType
.
AUTO
)
private
Long
id
;
/**
* 1:android 2:ios
*/
private
Integer
clientType
;
/**
* 版本号x.y.z
*/
private
String
version
;
/**
* 更新内容
*/
private
String
content
;
/**
* 下载地址
*/
private
String
url
;
/**
* 是否强制更新
*/
private
Boolean
force
;
/**
* 创建人
*/
private
Long
createBy
;
/**
* 创建时间
*/
private
LocalDateTime
createTime
;
/**
* 修改人
*/
private
Long
updateBy
;
/**
* 修改时间
*/
private
LocalDateTime
updateTime
;
}
repository/src/main/java/com/antai/sport/http/server/repository/app/mapper/AppVersionMapper.java
0 → 100644
View file @
ce1ffe6a
package
com
.
antai
.
sport
.
http
.
server
.
repository
.
app
.
mapper
;
import
com.antai.sport.http.server.repository.app.entity.AppVersion
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
/**
* <p>
* Mapper 接口
* </p>
*
* @author liming
* @since 2022-08-20
*/
public
interface
AppVersionMapper
extends
BaseMapper
<
AppVersion
>
{
}
repository/src/main/java/com/antai/sport/http/server/repository/course/entity/Course.java
0 → 100644
View file @
ce1ffe6a
package
com
.
antai
.
sport
.
http
.
server
.
repository
.
course
.
entity
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
java.time.LocalDateTime
;
import
java.io.Serializable
;
import
lombok.Data
;
import
lombok.EqualsAndHashCode
;
/**
* <p>
*
* </p>
*
* @author liming
* @since 2022-08-20
*/
@Data
@EqualsAndHashCode
(
callSuper
=
false
)
public
class
Course
implements
Serializable
{
private
static
final
long
serialVersionUID
=
1L
;
/**
* 主键
*/
@TableId
(
value
=
"id"
,
type
=
IdType
.
AUTO
)
private
Long
id
;
/**
* 课程类型
*/
private
Integer
type
;
/**
* 课程名称
*/
private
String
name
;
/**
* 持续时长s
*/
private
Integer
duration
;
/**
* 描述
*/
private
String
description
;
/**
* 状态 10:未发布 20:已发布
*/
private
Integer
status
;
/**
* 显示顺序
*/
private
Integer
showOrder
;
/**
* 版本号
*/
private
Long
version
;
/**
* 删除标记
*/
private
Integer
deleted
;
/**
* 创建人
*/
private
Long
createBy
;
/**
* 创建时间
*/
private
LocalDateTime
createTime
;
/**
* 修改人
*/
private
Long
updateBy
;
/**
* 修改时间
*/
private
LocalDateTime
updateTime
;
}
repository/src/main/java/com/antai/sport/http/server/repository/course/entity/CourseItem.java
0 → 100644
View file @
ce1ffe6a
package
com
.
antai
.
sport
.
http
.
server
.
repository
.
course
.
entity
;
import
java.math.BigDecimal
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
java.time.LocalDateTime
;
import
java.io.Serializable
;
import
lombok.Data
;
import
lombok.EqualsAndHashCode
;
/**
* <p>
*
* </p>
*
* @author liming
* @since 2022-08-20
*/
@Data
@EqualsAndHashCode
(
callSuper
=
false
)
public
class
CourseItem
implements
Serializable
{
private
static
final
long
serialVersionUID
=
1L
;
/**
* 主键
*/
@TableId
(
value
=
"id"
,
type
=
IdType
.
AUTO
)
private
Long
id
;
/**
* 章节名称
*/
private
String
name
;
/**
* 指标类型 1:ftp 2:踏频 3:速度
*/
private
Integer
targetType
;
/**
* 目标值类型
*/
private
Integer
targetValueType
;
/**
* 目标值
*/
private
Integer
targetValue
;
/**
* 允许偏差
*/
private
BigDecimal
allowableDeviation
;
/**
* 持续时长s
*/
private
Integer
duration
;
/**
* 描述
*/
private
String
description
;
/**
* 显示顺序
*/
private
Integer
showOrder
;
/**
* 版本号
*/
private
Long
version
;
/**
* 删除标记
*/
private
Integer
deleted
;
/**
* 创建人
*/
private
Long
createBy
;
/**
* 创建时间
*/
private
LocalDateTime
createTime
;
/**
* 修改人
*/
private
Long
updateBy
;
/**
* 修改时间
*/
private
LocalDateTime
updateTime
;
}
repository/src/main/java/com/antai/sport/http/server/repository/course/entity/CourseRecord.java
0 → 100644
View file @
ce1ffe6a
package
com
.
antai
.
sport
.
http
.
server
.
repository
.
course
.
entity
;
import
java.math.BigDecimal
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
java.time.LocalDateTime
;
import
java.io.Serializable
;
import
lombok.Data
;
import
lombok.EqualsAndHashCode
;
/**
* <p>
*
* </p>
*
* @author liming
* @since 2022-08-20
*/
@Data
@EqualsAndHashCode
(
callSuper
=
false
)
public
class
CourseRecord
implements
Serializable
{
private
static
final
long
serialVersionUID
=
1L
;
/**
* 主键
*/
@TableId
(
value
=
"id"
,
type
=
IdType
.
AUTO
)
private
Long
id
;
/**
* 课程id
*/
private
Long
courseId
;
/**
* 课程名称
*/
private
String
courseName
;
/**
* 用户id
*/
private
Long
playerId
;
/**
* 地图名称
*/
private
String
map
;
/**
* 路线名称
*/
private
String
path
;
/**
* 骑行时长(秒)
*/
private
Integer
duration
;
/**
* 骑行总长度
*/
private
BigDecimal
distance
;
/**
* 爬坡距离
*/
private
BigDecimal
climbDistance
;
/**
* 平均功率
*/
private
BigDecimal
avgFtp
;
/**
* 平均速度
*/
private
BigDecimal
avgSpeed
;
/**
* 卡路里
*/
private
Integer
calorie
;
/**
* 体重
*/
private
BigDecimal
weight
;
/**
* 1分钟平均最佳FTP
*/
private
BigDecimal
oneMinutesFtp
;
/**
* 5分钟平均最佳FTP
*/
private
BigDecimal
fiveMinutesFtp
;
/**
* 20分钟平均最佳FTP
*/
private
BigDecimal
twentyMinutesFtp
;
/**
* 1分钟平均最佳功体比
*/
private
BigDecimal
oneMinutesWkg
;
/**
* 5分钟平均最佳功体比
*/
private
BigDecimal
fiveMinutesWkg
;
/**
* 20分钟平均最佳功体比
*/
private
BigDecimal
twentyMinutesWkg
;
/**
* 得分
*/
private
BigDecimal
score
;
/**
* 获攒数量
*/
private
Integer
praiseNum
;
/**
* 状态 10.未提交数据 20.已提交数据
*/
private
Integer
status
;
/**
* 版本号
*/
private
Long
version
;
/**
* 删除标记
*/
private
Integer
deleted
;
/**
* 创建时间
*/
private
LocalDateTime
createTime
;
/**
* 修改时间
*/
private
LocalDateTime
updateTime
;
}
repository/src/main/java/com/antai/sport/http/server/repository/course/mapper/CourseItemMapper.java
0 → 100644
View file @
ce1ffe6a
package
com
.
antai
.
sport
.
http
.
server
.
repository
.
course
.
mapper
;
import
com.antai.sport.http.server.repository.course.entity.CourseItem
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
/**
* <p>
* Mapper 接口
* </p>
*
* @author liming
* @since 2022-08-20
*/
public
interface
CourseItemMapper
extends
BaseMapper
<
CourseItem
>
{
}
repository/src/main/java/com/antai/sport/http/server/repository/course/mapper/CourseMapper.java
0 → 100644
View file @
ce1ffe6a
package
com
.
antai
.
sport
.
http
.
server
.
repository
.
course
.
mapper
;
import
com.antai.sport.http.server.repository.course.entity.Course
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
/**
* <p>
* Mapper 接口
* </p>
*
* @author liming
* @since 2022-08-20
*/
public
interface
CourseMapper
extends
BaseMapper
<
Course
>
{
}
repository/src/main/java/com/antai/sport/http/server/repository/course/mapper/CourseRecordMapper.java
0 → 100644
View file @
ce1ffe6a
package
com
.
antai
.
sport
.
http
.
server
.
repository
.
course
.
mapper
;
import
com.antai.sport.http.server.repository.course.entity.CourseRecord
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
/**
* <p>
* Mapper 接口
* </p>
*
* @author liming
* @since 2022-08-20
*/
public
interface
CourseRecordMapper
extends
BaseMapper
<
CourseRecord
>
{
}
repository/src/main/resources/mapper/app/AppVersionMapper.xml
0 → 100644
View file @
ce1ffe6a
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"com.antai.sport.http.server.repository.app.mapper.AppVersionMapper"
>
</mapper>
repository/src/main/resources/mapper/course/CourseItemMapper.xml
0 → 100644
View file @
ce1ffe6a
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"com.antai.sport.http.server.repository.course.mapper.CourseItemMapper"
>
</mapper>
repository/src/main/resources/mapper/course/CourseMapper.xml
0 → 100644
View file @
ce1ffe6a
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"com.antai.sport.http.server.repository.course.mapper.CourseMapper"
>
</mapper>
repository/src/main/resources/mapper/course/CourseRecordMapper.xml
0 → 100644
View file @
ce1ffe6a
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"com.antai.sport.http.server.repository.course.mapper.CourseRecordMapper"
>
</mapper>
server-api/src/main/java/com/antai/sport/http/server/server/api/business/course/controller/CourseController.java
0 → 100644
View file @
ce1ffe6a
package
com
.
antai
.
sport
.
http
.
server
.
server
.
api
.
business
.
course
.
controller
;
import
com.antai.sport.http.server.server.api.business.course.service.CourseService
;
import
io.swagger.annotations.Api
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
@RestController
@RequestMapping
(
"course"
)
@Api
(
tags
=
{
"课程训练接口"
})
public
class
CourseController
{
private
CourseService
courseService
;
}
server-api/src/main/java/com/antai/sport/http/server/server/api/business/course/service/CourseService.java
0 → 100644
View file @
ce1ffe6a
package
com
.
antai
.
sport
.
http
.
server
.
server
.
api
.
business
.
course
.
service
;
import
org.springframework.stereotype.Service
;
@Service
public
class
CourseService
{
}
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