package com.ruoyi.account.api.feignClient;
|
|
import com.ruoyi.account.api.factory.BalanceChangeRecordClientFallbackFactory;
|
import com.ruoyi.account.api.model.BalanceChangeRecord;
|
import com.ruoyi.account.api.model.BalanceChangeRecordCopy;
|
import com.ruoyi.common.core.constant.ServiceNameConstants;
|
import com.ruoyi.common.core.domain.R;
|
import org.springframework.cloud.openfeign.FeignClient;
|
import org.springframework.web.bind.annotation.DeleteMapping;
|
import org.springframework.web.bind.annotation.PostMapping;
|
import org.springframework.web.bind.annotation.RequestBody;
|
import org.springframework.web.bind.annotation.RequestParam;
|
|
/**
|
* @author zhibing.pu
|
* @Date 2024/12/2 15:34
|
*/
|
@FeignClient(contextId = "BalanceChangeRecordClient", value = ServiceNameConstants.ACCOUNT_SERVICE, fallbackFactory = BalanceChangeRecordClientFallbackFactory.class)
|
public interface BalanceChangeRecordClient {
|
|
|
/**
|
* 保存账户流水记录
|
* @param balanceChangeRecord
|
* @return
|
*/
|
@PostMapping("/balanceChangeRecord/saveBalanceChangeRecord")
|
R saveBalanceChangeRecord(@RequestBody BalanceChangeRecord balanceChangeRecord);
|
|
@PostMapping("/balanceChangeRecordCopy/saveBalanceChangeRecordCopy")
|
R saveBalanceChangeRecord(@RequestBody BalanceChangeRecordCopy balanceChangeRecord);
|
|
@DeleteMapping("/balanceChangeRecordCopy/deleteBalanceChangeRecord")
|
R deleteBalanceChangeRecord(@RequestParam("orderId") Long orderId);
|
}
|