package com.zhongshu.card.server.core.controller.feign;

import com.github.microservice.net.ResultContent;
import com.zhongshu.card.client.model.payment.ExpenseFlowAreaModel;
import com.zhongshu.card.client.service.payment.ExpenseFlowService;
import io.swagger.v3.oas.annotations.Hidden;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author TRX
 * @date 2024/7/23
 */
@RestController
@RequestMapping("expenseFlowFeign")
@Tag(name = "订单信息")
@Hidden
public class ExpenseFlowFeignController {

    @Autowired
    ExpenseFlowService expenseFlowService;

    @Operation(summary = "查询订单信息", description = "查询订单信息")
    @RequestMapping(value = "manager/getDetailByPaymentNo", method = {RequestMethod.GET})
    public ResultContent<ExpenseFlowAreaModel> getDetailByPaymentNo(@Parameter(name = "paymentNo", description = "paymentNo", required = false) @RequestParam(name = "paymentNo") String paymentNo) {
        return expenseFlowService.getDetailByPaymentNo(paymentNo);
    }

}
