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
8db2be54
Commit
8db2be54
authored
Jun 03, 2021
by
taabe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fegin服务-接口修改
parent
6aad0fb8
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
11 deletions
+22
-11
EquipFeignService.java
...n/amos/boot/module/tzs/api/service/EquipFeignService.java
+5
-5
UseUnitController.java
...mos/boot/module/tzs/biz/controller/UseUnitController.java
+6
-6
application-dev.properties
...-tzs-system/src/main/resources/application-dev.properties
+11
-0
No files found.
amos-boot-module/amos-boot-module-api/amos-boot-module-tzs-api/src/main/java/com/yeejoin/amos/boot/module/tzs/api/service/EquipFeignService.java
View file @
8db2be54
...
@@ -13,19 +13,19 @@ import java.util.Map;
...
@@ -13,19 +13,19 @@ import java.util.Map;
/**
/**
*
换流站
服务feign
*
装备
服务feign
*
*
* @author Dell
* @author Dell
*/
*/
@FeignClient
(
name
=
"AMOS-
AUTOSYS"
,
path
=
"fireAutoSys
"
)
@FeignClient
(
name
=
"AMOS-
EQUIPMANAGE"
,
path
=
"equip
"
)
//@FeignClient(name = "AMOS-AUTOSYS", url = "http://172.16.10.66:8085", path = "fireAutoSys")
//@FeignClient(name = "AMOS-AUTOSYS", url = "http://172.16.10.66:8085", path = "fireAutoSys")
public
interface
EquipFeignService
{
public
interface
EquipFeignService
{
/**
/**
* 获取
风险点列表
* 获取
消防建筑树
*
*
* @return
* @return
*/
*/
@RequestMapping
(
value
=
"/
api/risksource/children/list
"
,
method
=
RequestMethod
.
GET
)
@RequestMapping
(
value
=
"/
building/BuildingtreeAndEquip
"
,
method
=
RequestMethod
.
GET
)
ResponseModel
<
Object
>
get
RiskSourceChildrenList
();
ResponseModel
<
Object
>
get
BuildingTreeAndEquip
();
}
}
amos-boot-module/amos-boot-module-biz/amos-boot-module-tzs-biz/src/main/java/com/yeejoin/amos/boot/module/tzs/biz/controller/UseUnitController.java
View file @
8db2be54
...
@@ -79,14 +79,14 @@ public class UseUnitController extends BaseController {
...
@@ -79,14 +79,14 @@ public class UseUnitController extends BaseController {
}
}
/**
/**
* 获取
风险点列表
* 获取
消防建筑树
* @return
* @return
*/
*/
@TycloudOperation
(
needAuth
=
false
,
ApiLevel
=
UserType
.
AGENCY
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@RequestMapping
(
value
=
"/
riskSource/list
"
,
method
=
RequestMethod
.
GET
)
@RequestMapping
(
value
=
"/
buildingTree
"
,
method
=
RequestMethod
.
GET
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"获取
风险点列表"
,
notes
=
"获取风险点列表
"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"获取
消防建筑树"
,
notes
=
"获取消防建筑树
"
)
public
ResponseModel
<
Object
>
get
RiskSourceList
()
{
public
ResponseModel
<
Object
>
get
BuildingTreeAndEquip
()
{
ResponseModel
<
Object
>
result
=
equipFeignService
.
get
RiskSourceChildrenList
();
ResponseModel
<
Object
>
result
=
equipFeignService
.
get
BuildingTreeAndEquip
();
return
result
;
return
result
;
}
}
...
...
amos-boot-tzs-system/src/main/resources/application-dev.properties
View file @
8db2be54
...
@@ -8,3 +8,14 @@ spring.datasource.password=root_123
...
@@ -8,3 +8,14 @@ spring.datasource.password=root_123
eureka.instance.hostname
=
172.16.10.72
eureka.instance.hostname
=
172.16.10.72
eureka.instance.prefer-ip-address
=
true
eureka.instance.prefer-ip-address
=
true
eureka.client.serviceUrl.defaultZone
=
http://${eureka.instance.hostname}:10001/eureka/
eureka.client.serviceUrl.defaultZone
=
http://${eureka.instance.hostname}:10001/eureka/
#redis properties:
spring.redis.database
=
0
spring.redis.host
=
172.16.10.85
spring.redis.port
=
6379
spring.redis.password
=
amos2019Redis
spring.redis.lettuce.pool.max-active
=
200
spring.redis.lettuce.pool.max-wait
=
-1
spring.redis.lettuce.pool.max-idle
=
10
spring.redis.lettuce.pool.min-idle
=
0
spring.redis.expire.time
=
300
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