package com.yuchen.saas.park.service.controller.property;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yuchen.saas.park.api.dto.property.PropertyBillRefundPageQryDto;
import com.yuchen.saas.park.api.vo.property.PropertyBillRefundListVo;
import com.yuchen.saas.park.service.service.property.PropertyBillRefundService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.nest.springwrap.core.tool.api.R;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@Api(tags = "退款记录")
@RequestMapping("/propertyBillRefund")
public class PropertyBillRefundController {
    @Resource
    private PropertyBillRefundService propertyBillRefundService;

    @PostMapping("/list")
    @ApiOperation(value = "退款记录")
    public R<Page<PropertyBillRefundListVo>> list(@RequestBody PropertyBillRefundPageQryDto dto) {
        return R.data(propertyBillRefundService.selectPage(dto));
    }


}
