Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
yangxiujun
/
paidan_demo
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit d0369f13
authored
Jul 27, 2023
by
chamberone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 提交saas图层和区块远程调用接口
1 parent
d1d684ee
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
70 deletions
project-order/src/main/java/com/dituhui/pea/order/feign/AccountServiceFeignClient.java
project-order/src/main/java/com/dituhui/pea/order/feign/SaaSService.java
project-order/src/main/java/com/dituhui/pea/order/feign/StorageServiceFeignClient.java
project-order/src/main/java/com/dituhui/pea/order/feign/AccountServiceFeignClient.java
deleted
100644 → 0
View file @
d1d684e
/*
* Copyright 2013-2023 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
com
.
dituhui
.
pea
.
order
.
feign
;
import
com.dituhui.pea.common.Result
;
import
com.dituhui.pea.order.feign.dto.AccountDTO
;
import
org.springframework.cloud.openfeign.FeignClient
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.RequestBody
;
/**
* @author TrevorLink
*/
@FeignClient
(
name
=
"project-account"
)
public
interface
AccountServiceFeignClient
{
@PostMapping
(
"/account/reduce-balance"
)
Result
<?>
reduceBalance
(
@RequestBody
AccountDTO
accountReduceBalanceDTO
);
}
project-order/src/main/java/com/dituhui/pea/order/feign/SaaSService.java
0 → 100644
View file @
d0369f1
package
com
.
dituhui
.
pea
.
order
.
feign
;
import
org.springframework.cloud.openfeign.FeignClient
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.RequestParam
;
import
com.dituhui.pea.common.Result
;
@FeignClient
(
url
=
"https://pea-test.bshg.com.cn"
,
name
=
"saasService"
)
public
interface
SaaSService
{
@PostMapping
(
"/v1/area/add"
)
public
String
addArea
(
@RequestParam
String
ak
,
@RequestParam
String
sign
,
@RequestParam
String
name
,
@RequestParam
String
layer_code
,
@RequestParam
String
region
,
@RequestParam
String
coord_type
);
@PostMapping
(
"/v1/area/delById"
)
public
String
deleteArea
(
@RequestParam
String
ak
,
@RequestParam
String
layerCode
,
@RequestParam
String
id
);
@PostMapping
(
"/v1/layer/save"
)
public
String
addLayer
(
@RequestParam
String
ak
,
@RequestParam
String
layerName
,
@RequestParam
Integer
layerType
,
@RequestParam
Integer
clipType
);
@PostMapping
(
"/v1/layer/delete"
)
public
String
deleteLayer
(
@RequestParam
String
ak
,
@RequestParam
String
layerId
);
}
project-order/src/main/java/com/dituhui/pea/order/feign/StorageServiceFeignClient.java
deleted
100644 → 0
View file @
d1d684e
/*
* Copyright 2013-2023 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
com
.
dituhui
.
pea
.
order
.
feign
;
import
com.dituhui.pea.common.Result
;
import
com.dituhui.pea.order.feign.dto.StorageDTO
;
import
org.springframework.cloud.openfeign.FeignClient
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.RequestBody
;
/**
* @author TrevorLink
*/
@FeignClient
(
name
=
"project-storage"
)
public
interface
StorageServiceFeignClient
{
@PostMapping
(
"/storage/reduce-stock"
)
Result
<?>
reduceStock
(
@RequestBody
StorageDTO
productReduceStockDTO
);
}
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