package com.bonus.sharedstation.app.feign;

import com.bonus.common.core.web.domain.AjaxResult;
import com.bonus.sharedstation.app.dto.PaymentDto;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * FileName: OtherServiceClient
 *
 * @author tqzhang
 * Date: 2025/2/20 下午4:08
 * Description:
 */
@FeignClient(value="bonus-smart-canteen")
@Service
@Component
public interface OtherServiceClient {
    @ApiOperation(value = "支付阶段")
    @RequestMapping(value = "/api/v4/app/account/payMoneyForStage",method = RequestMethod.POST)
    AjaxResult payMoneyForStage(PaymentDto dto);

    @ApiOperation(value = "退款阶段")
    @RequestMapping(value = "/api/v4/app/account/refundMoneyForStage",method = RequestMethod.POST)
    AjaxResult refundMoneyForStage(PaymentDto dto);
}
