Commit d0369f13 by chamberone

feat: 提交saas图层和区块远程调用接口

1 parent d1d684ee
/*
* 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);
}
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);
}
/*
* 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);
}
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!