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
7f3593f4
Commit
7f3593f4
authored
Aug 23, 2022
by
liming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加app下载接口
parent
59346168
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
77 additions
and
0 deletions
+77
-0
AppController.java
...ver/mobile/api/business/app/controller/AppController.java
+29
-0
AppBusinessMapper.java
...ver/mobile/api/business/app/mapper/AppBusinessMapper.java
+7
-0
AppService.java
...tp/server/mobile/api/business/app/service/AppService.java
+17
-0
AppDownloadPathVO.java
.../server/mobile/api/business/app/vo/AppDownloadPathVO.java
+15
-0
application.yaml
mobile-api/src/main/resources/application.yaml
+1
-0
AppBusinessMapper.xml
...e-api/src/main/resources/mapper/app/AppBusinessMapper.xml
+8
-0
No files found.
mobile-api/src/main/java/com/antai/sport/http/server/mobile/api/business/app/controller/AppController.java
0 → 100644
View file @
7f3593f4
package
com
.
antai
.
sport
.
http
.
server
.
mobile
.
api
.
business
.
app
.
controller
;
import
com.antai.sport.http.server.common.base.Result
;
import
com.antai.sport.http.server.mobile.api.business.app.service.AppService
;
import
com.antai.sport.http.server.mobile.api.business.app.vo.AppDownloadPathVO
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
org.springframework.http.ResponseEntity
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
javax.annotation.Resource
;
import
static
com
.
antai
.
sport
.
http
.
server
.
common
.
util
.
ResultUtil
.
success
;
@RestController
@RequestMapping
(
"app"
)
@Api
(
tags
=
{
"app相关接口"
})
public
class
AppController
{
@Resource
private
AppService
appService
;
@GetMapping
(
"download/path"
)
@ApiOperation
(
value
=
"获取app下载地址"
)
public
ResponseEntity
<
Result
<
AppDownloadPathVO
>>
getAppDownloadPath
()
{
return
success
(
appService
.
getAppDownloadPath
());
}
}
mobile-api/src/main/java/com/antai/sport/http/server/mobile/api/business/app/mapper/AppBusinessMapper.java
0 → 100644
View file @
7f3593f4
package
com
.
antai
.
sport
.
http
.
server
.
mobile
.
api
.
business
.
app
.
mapper
;
import
com.antai.sport.http.server.mobile.api.business.app.vo.AppDownloadPathVO
;
public
interface
AppBusinessMapper
{
AppDownloadPathVO
getAppDownloadPath
();
}
mobile-api/src/main/java/com/antai/sport/http/server/mobile/api/business/app/service/AppService.java
0 → 100644
View file @
7f3593f4
package
com
.
antai
.
sport
.
http
.
server
.
mobile
.
api
.
business
.
app
.
service
;
import
com.antai.sport.http.server.mobile.api.business.app.mapper.AppBusinessMapper
;
import
com.antai.sport.http.server.mobile.api.business.app.vo.AppDownloadPathVO
;
import
org.springframework.stereotype.Service
;
import
javax.annotation.Resource
;
@Service
public
class
AppService
{
@Resource
private
AppBusinessMapper
appBusinessMapper
;
public
AppDownloadPathVO
getAppDownloadPath
()
{
return
appBusinessMapper
.
getAppDownloadPath
();
}
}
mobile-api/src/main/java/com/antai/sport/http/server/mobile/api/business/app/vo/AppDownloadPathVO.java
0 → 100644
View file @
7f3593f4
package
com
.
antai
.
sport
.
http
.
server
.
mobile
.
api
.
business
.
app
.
vo
;
import
lombok.Data
;
/**
* @author lidong
* @Date 2019/11/14 15:16
* @Email 517440009@qq.com
*/
@Data
public
class
AppDownloadPathVO
{
String
androidPath
;
String
iosPath
;
}
mobile-api/src/main/resources/application.yaml
View file @
7f3593f4
...
...
@@ -52,6 +52,7 @@ project:
-
/match/bicycle/player/record
-
/match/bicycle/auto/create
-
/test/**
-
/app/download/path
swagger
:
enable
:
false
...
...
mobile-api/src/main/resources/mapper/app/AppBusinessMapper.xml
0 → 100644
View file @
7f3593f4
<?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.mobile.api.business.app.mapper.AppBusinessMapper"
>
<select
id=
"getAppDownloadPath"
resultType=
"com.antai.sport.http.server.mobile.api.business.app.vo.AppDownloadPathVO"
>
select (select url from app_version where client_type = 1 order by id desc limit 1) as android_path,
(select download_page_url from app_version where client_type = 2 order by id desc limit 1) as ios_path
</select>
</mapper>
\ No newline at end of file
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