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
53299f6c
Commit
53299f6c
authored
Aug 17, 2021
by
tangwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
视频接口编写
parent
c7df5c1e
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
37 additions
and
1 deletion
+37
-1
RequestData.java
.../yeejoin/amos/boot/module/common/api/dto/RequestData.java
+3
-0
EquipFeignClient.java
...n/amos/boot/module/common/api/feign/EquipFeignClient.java
+11
-1
CommandController.java
...boot/module/command/biz/controller/CommandController.java
+23
-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/RequestData.java
View file @
53299f6c
...
@@ -36,4 +36,7 @@ public class RequestData {
...
@@ -36,4 +36,7 @@ public class RequestData {
@ApiModelProperty
(
value
=
"灾情状态"
)
@ApiModelProperty
(
value
=
"灾情状态"
)
private
int
status
=
0
;
private
int
status
=
0
;
@ApiModelProperty
(
value
=
"灾情ID"
)
private
Long
alertId
;
}
}
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 @
53299f6c
...
@@ -139,7 +139,17 @@ public interface EquipFeignClient {
...
@@ -139,7 +139,17 @@ public interface EquipFeignClient {
* @param
* @param
* @return
* @return
*/
*/
@RequestMapping
(
value
=
"/
/
building/video/page"
,
method
=
RequestMethod
.
GET
)
@RequestMapping
(
value
=
"/building/video/page"
,
method
=
RequestMethod
.
GET
)
ResponseModel
<
Page
<
Map
<
String
,
Object
>>>
getVideo
(
@RequestParam
Page
page
,
@RequestParam
Long
buildingId
);
ResponseModel
<
Page
<
Map
<
String
,
Object
>>>
getVideo
(
@RequestParam
Page
page
,
@RequestParam
Long
buildingId
);
/**
*
*获取视频列表
* @param
* @return
*/
@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
);
}
}
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 @
53299f6c
...
@@ -235,6 +235,29 @@ public class CommandController extends BaseController {
...
@@ -235,6 +235,29 @@ public class CommandController extends BaseController {
/**
* 水源列表分页查询
*
* @return
*/
@TycloudOperation
(
needAuth
=
true
,
ApiLevel
=
UserType
.
AGENCY
)
@GetMapping
(
value
=
"video/list"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
" 视频分页查询88"
,
notes
=
"视频分页查询88"
)
public
ResponseModel
<
Object
>
getVideo
(
Integer
pageNum
,
Integer
pageSize
,
RequestData
par
)
{
if
(
par
.
getAlertId
()!=
null
){
AlertCalled
alertCalled
=
iAlertCalledService
.
getAlertCalledById
(
par
.
getAlertId
());
par
.
setLatitude
(
alertCalled
.
getCoordinateX
());
par
.
setLongitude
(
alertCalled
.
getCoordinateY
());
}
ResponseModel
<
Page
<
Map
<
String
,
Object
>>>
data
=
equipFeignClient
.
pageVideo
(
pageNum
,
pageSize
,
par
.
getLongitude
(),
par
.
getLatitude
(),
par
.
getDistance
());
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