Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
platform
/
platform-charging-server
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 3c99e78a
authored
Nov 16, 2023
by
zhouhaibao
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
[+]添加api
1 parent
5a4d818d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
5 deletions
platform-charging-api/pom.xml
platform-charging-api/src/main/java/cn/com/glsx/charging/api/PileControlFeignClient.java
platform-charging-api/pom.xml
View file @
3c99e78
...
...
@@ -22,6 +22,11 @@
<groupId>
com.glsx
</groupId>
<artifactId>
rest-admin-feign
</artifactId>
</dependency>
<dependency>
<groupId>
org.springframework.cloud
</groupId>
<artifactId>
spring-cloud-starter-loadbalancer
</artifactId>
<version>
3.1.0
</version>
</dependency>
</dependencies>
<build>
...
...
platform-charging-api/src/main/java/cn/com/glsx/charging/api/PileControlFeignClient.java
View file @
3c99e78
package
cn
.
com
.
glsx
.
charging
.
api
;
import
cn.com.glsx.charging.modules.model.UserDTO
;
import
cn.com.glsx.charging.modules.model.pilecontrol.EndBo
;
import
cn.com.glsx.charging.modules.model.pilecontrol.StartBo
;
import
com.glsx.plat.core.web.Result
;
import
org.springframework.cloud.openfeign.FeignClient
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.PathVariable
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestParam
;
/**
* @author payu
*/
@FeignClient
(
name
=
"platform-charging"
,
contextId
=
"pilecontrol"
,
path
=
"/
api/pilecontrol/"
,
decode404
=
true
)
@FeignClient
(
name
=
"platform-charging"
,
contextId
=
"pilecontrol"
,
path
=
"/
platform-charging/api/pilecontro/"
,
decode404
=
true
)
public
interface
PileControlFeignClient
{
/**
...
...
@@ -45,4 +41,7 @@ public interface PileControlFeignClient {
@PostMapping
(
"/pileStart"
)
Result
<
Boolean
>
pileStart
(
@RequestBody
StartBo
startBo
);
@PostMapping
(
value
=
"/test"
)
Result
<
Boolean
>
test
();
}
Write
Preview
Markdown
is supported
Attach a file
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 post a comment