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
0f0285dd
Commit
0f0285dd
authored
Aug 09, 2021
by
kongfm
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/developer' into developer
parents
d16cb86a
0e9b021b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
45 additions
and
4 deletions
+45
-4
PageDto.java
.../com/yeejoin/amos/boot/module/common/api/dto/PageDto.java
+19
-0
EquipFeignClient.java
...n/amos/boot/module/common/api/feign/EquipFeignClient.java
+12
-0
CommandController.java
...boot/module/command/biz/controller/CommandController.java
+14
-4
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
0 → 100644
View file @
0f0285dd
package
com
.
yeejoin
.
amos
.
boot
.
module
.
common
.
api
.
dto
;
import
lombok.Data
;
/**
* @description:
* @author: tw
* @createDate: 2021/8/9
*/
@Data
public
class
PageDto
{
private
int
current
;
private
int
size
;
public
PageDto
(
int
current
,
int
size
)
{
this
.
current
=
current
;
this
.
size
=
size
;
}
}
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 @
0f0285dd
package
com
.
yeejoin
.
amos
.
boot
.
module
.
common
.
api
.
feign
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.yeejoin.amos.boot.module.common.api.dto.PageDto
;
import
com.yeejoin.amos.component.feign.config.InnerInvokException
;
import
org.springframework.cloud.openfeign.FeignClient
;
import
org.springframework.web.bind.annotation.PathVariable
;
...
...
@@ -130,4 +131,15 @@ public interface EquipFeignClient {
*/
@RequestMapping
(
value
=
"/building/BuildingtreeAndEquip"
,
method
=
RequestMethod
.
GET
)
ResponseModel
<
Object
>
getBuildingTreeAndEquip
();
/**
*
*获取视频信息
* @param
* @return
*/
@RequestMapping
(
value
=
"//building/video/page"
,
method
=
RequestMethod
.
GET
)
ResponseModel
<
Page
<
Map
<
String
,
Object
>>>
getVideo
(
@RequestParam
int
current
,
@RequestParam
int
size
,
@RequestParam
Long
buildingId
);
}
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 @
0f0285dd
...
...
@@ -51,10 +51,7 @@ import java.io.File;
import
java.io.FileInputStream
;
import
java.net.URI
;
import
java.net.URISyntaxException
;
import
java.util.ArrayList
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.UUID
;
import
java.util.*
;
/**
* *指挥资源Api
...
...
@@ -803,6 +800,19 @@ public class CommandController extends BaseController {
return
ResponseHelper
.
buildResponse
(
li
);
}
/**
* 分页获取视频
*
* @param
* @return
*/
@TycloudOperation
(
needAuth
=
true
,
ApiLevel
=
UserType
.
AGENCY
)
@RequestMapping
(
value
=
"/getVideo"
,
method
=
RequestMethod
.
GET
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"分页获取视频"
,
notes
=
"分页获取视频"
)
public
ResponseModel
<
Object
>
getVideo
(
Integer
current
,
Integer
size
)
throws
Exception
{
ResponseModel
<
Page
<
Map
<
String
,
Object
>>>
date
=
equipFeignClient
.
getVideo
(
current
,
size
,
0
l
);
return
ResponseHelper
.
buildResponse
(
date
!=
null
?
date
.
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