Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
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
项目统一框架
amos-boot-biz
Commits
fdba34c3
Commit
fdba34c3
authored
Oct 20, 2021
by
tangwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加app接口
parent
74f0f25c
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
62 additions
and
0 deletions
+62
-0
PageDto.java
.../com/yeejoin/amos/boot/module/common/api/dto/PageDto.java
+6
-0
EquipFeignClient.java
...n/amos/boot/module/common/api/feign/EquipFeignClient.java
+11
-0
VideoFeignClient.java
...n/amos/boot/module/common/api/feign/VideoFeignClient.java
+21
-0
CommandController.java
...boot/module/command/biz/controller/CommandController.java
+24
-0
No files found.
amos-boot-module/amos-boot-module-api/amos-boot-module-common-api/src/main/java/com/yeejoin/amos/boot/module/common/api/dto/PageDto.java
View file @
fdba34c3
...
@@ -11,9 +11,15 @@ import lombok.Data;
...
@@ -11,9 +11,15 @@ import lombok.Data;
public
class
PageDto
{
public
class
PageDto
{
private
int
current
;
private
int
current
;
private
int
size
;
private
int
size
;
private
String
name
;
private
String
code
;
private
String
typeCode
;
public
PageDto
(
int
current
,
int
size
)
{
public
PageDto
(
int
current
,
int
size
)
{
this
.
current
=
current
;
this
.
current
=
current
;
this
.
size
=
size
;
this
.
size
=
size
;
}
}
public
PageDto
()
{
}
}
}
amos-boot-module/amos-boot-module-api/amos-boot-module-common-api/src/main/java/com/yeejoin/amos/boot/module/common/api/feign/EquipFeignClient.java
View file @
fdba34c3
...
@@ -193,6 +193,17 @@ public interface EquipFeignClient {
...
@@ -193,6 +193,17 @@ public interface EquipFeignClient {
*/
*/
@RequestMapping
(
value
=
"/video/pageVideo"
,
method
=
RequestMethod
.
GET
)
@RequestMapping
(
value
=
"/video/pageVideo"
,
method
=
RequestMethod
.
GET
)
ResponseModel
<
Page
<
Map
<
String
,
Object
>>>
pageVideo
(
@RequestParam
Integer
pageNum
,
@RequestParam
Integer
pageSize
,
@RequestParam
Double
longitude
,
@RequestParam
Double
latitude
,
@RequestParam
Double
distance
);
ResponseModel
<
Page
<
Map
<
String
,
Object
>>>
pageVideo
(
@RequestParam
Integer
pageNum
,
@RequestParam
Integer
pageSize
,
@RequestParam
Double
longitude
,
@RequestParam
Double
latitude
,
@RequestParam
Double
distance
);
@RequestMapping
(
value
=
"/video/pageList"
,
method
=
RequestMethod
.
GET
)
ResponseModel
<
Page
<
Map
<
String
,
Object
>>>
pageList
(
@RequestParam
Integer
current
,
@RequestParam
Integer
size
,
@RequestParam
String
code
,
@RequestParam
String
name
,
@RequestParam
String
typeCode
);
/**
/**
*
*
*获取视频列表
*获取视频列表
...
...
amos-boot-module/amos-boot-module-api/amos-boot-module-common-api/src/main/java/com/yeejoin/amos/boot/module/common/api/feign/VideoFeignClient.java
0 → 100644
View file @
fdba34c3
package
com
.
yeejoin
.
amos
.
boot
.
module
.
common
.
api
.
feign
;
import
org.springframework.cloud.openfeign.FeignClient
;
import
org.springframework.web.bind.annotation.PathVariable
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMethod
;
import
org.typroject.tyboot.core.restful.utils.ResponseModel
;
/**
* @description:
* @author: tw
* @createDate: 2021/10/20
*/
@FeignClient
(
name
=
"${video.fegin.name}"
,
path
=
"video"
,
configuration
=
{
MultipartSupportConfig
.
class
})
public
interface
VideoFeignClient
{
@RequestMapping
(
value
=
"/video-original/url/video/{indexCode}"
,
method
=
RequestMethod
.
GET
)
ResponseModel
<
String
>
videoUrlByIndexCode
(
@PathVariable
String
indexCode
);
}
amos-boot-module/amos-boot-module-biz/amos-boot-module-command-biz/src/main/java/com/yeejoin/amos/boot/module/command/biz/controller/CommandController.java
View file @
fdba34c3
...
@@ -23,6 +23,7 @@ import com.yeejoin.amos.boot.module.common.api.entity.Firefighters;
...
@@ -23,6 +23,7 @@ import com.yeejoin.amos.boot.module.common.api.entity.Firefighters;
import
com.yeejoin.amos.boot.module.common.api.entity.OrgUsr
;
import
com.yeejoin.amos.boot.module.common.api.entity.OrgUsr
;
import
com.yeejoin.amos.boot.module.common.api.feign.EquipFeignClient
;
import
com.yeejoin.amos.boot.module.common.api.feign.EquipFeignClient
;
import
com.yeejoin.amos.boot.module.common.api.feign.IotFeignClient
;
import
com.yeejoin.amos.boot.module.common.api.feign.IotFeignClient
;
import
com.yeejoin.amos.boot.module.common.api.feign.VideoFeignClient
;
import
com.yeejoin.amos.boot.module.common.api.service.IDutyCarService
;
import
com.yeejoin.amos.boot.module.common.api.service.IDutyCarService
;
import
com.yeejoin.amos.boot.module.common.api.service.IDutyPersonService
;
import
com.yeejoin.amos.boot.module.common.api.service.IDutyPersonService
;
import
com.yeejoin.amos.boot.module.common.api.service.IFireChemicalService
;
import
com.yeejoin.amos.boot.module.common.api.service.IFireChemicalService
;
...
@@ -123,6 +124,9 @@ public class CommandController extends BaseController {
...
@@ -123,6 +124,9 @@ public class CommandController extends BaseController {
private
String
readUrl
;
private
String
readUrl
;
@Autowired
@Autowired
EquipFeignClient
equipFeignClient
;
EquipFeignClient
equipFeignClient
;
@Autowired
VideoFeignClient
videoFeignClient
;
@Autowired
@Autowired
IKeySiteService
keySiteService
;
IKeySiteService
keySiteService
;
@Autowired
@Autowired
...
@@ -287,6 +291,26 @@ public class CommandController extends BaseController {
...
@@ -287,6 +291,26 @@ public class CommandController extends BaseController {
}
}
/**
* 水源列表分页查询
*
* @return
*/
@TycloudOperation
(
needAuth
=
true
,
ApiLevel
=
UserType
.
AGENCY
)
@PostMapping
(
value
=
"video/pageList"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
" app视频分页查询88"
,
notes
=
"app视频分页查询88"
)
public
ResponseModel
<
Object
>
pageList
(
@RequestBody
PageDto
pageDto
)
{
ResponseModel
<
Page
<
Map
<
String
,
Object
>>>
data
=
equipFeignClient
.
pageList
(
pageDto
.
getCurrent
(),
pageDto
.
getSize
(),
pageDto
.
getCode
(),
pageDto
.
getName
(),
pageDto
.
getTypeCode
());
return
ResponseHelper
.
buildResponse
(
data
!=
null
?
data
.
getResult
():
null
);
}
/**
/**
* 水源列表分页查询
* 水源列表分页查询
*
*
...
...
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