package com.tashow.cloud.payapi.api.wallet;

import com.tashow.cloud.common.pojo.CommonResult;
import com.tashow.cloud.payapi.api.wallet.dto.PayWalletAddBalanceReqDTO;
import com.tashow.cloud.payapi.enums.ApiConstants;
import jakarta.validation.Valid;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * RPC 服务 - 钱包
 */
@FeignClient(name = ApiConstants.NAME) // TODO 芋艿：fallbackFactory =
public interface PayWalletApi {

    String PREFIX = ApiConstants.PREFIX + "/wallet";

    /**
     * 添加钱包余额
     * @param reqDTO
     * @return
     */
    @PostMapping(PREFIX + "/add-balance")
    CommonResult<Boolean> addWalletBalance(@Valid @RequestBody PayWalletAddBalanceReqDTO reqDTO);

}
