package com.red.circle.wallet.inner.endpoint.bean;

import com.red.circle.framework.dto.ResultResponse;
import com.red.circle.wallet.inner.endpoint.bean.api.BeanIncomeExpenditureClientApi;
import com.red.circle.wallet.inner.model.dto.BeanIncomeExpenditureDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * 用户豆子收支.
 *
 * @author pengliang on 2023/12/26
 */
@FeignClient(name = "beanIncomeExpenditureClient", url = "${feign.wallet.url}" +
    BeanIncomeExpenditureClientApi.API_PREFIX)
public interface BeanIncomeExpenditureClient extends BeanIncomeExpenditureClientApi {

  /**
   * 保存流水记录.
   */
  @PostMapping("/save")
  ResultResponse<Void> save(@RequestBody BeanIncomeExpenditureDTO dto);

}
