package com.repair.api;

import com.repair.model.pojo.RepairRefundRecord;
import com.repair.model.result.CommonResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.validation.BindingResult;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;

@RequestMapping("/api/repairRefundRecord")
@Api(tags = {"repairRefundRecordController"}, value = "退款记录")
public interface RepairRefundRecordControllerAPI {

    @PostMapping(value = "/insertrepairRefundRecord")
    @ApiOperation(value = "添加退款记录", notes = "添加退款记录数据", httpMethod = "POST")
    CommonResult InsertrepairRefundRecord(@Validated @RequestBody RepairRefundRecord rc, BindingResult bindingResult);

    @PostMapping(value = "/updaterepairRefundRecordById")
    @ApiOperation(value = "编辑退款记录数据", notes = "编辑退款记录数据", httpMethod = "POST")
    CommonResult updaterepairRefundRecordById(@Validated @RequestBody RepairRefundRecord rc, BindingResult bindingResult);

    @GetMapping(value = "/queryPagerepairRefundRecord")
    @ApiOperation(value = "退款记录分页数据", notes = "退款记录分页数据", httpMethod = "GET")
    CommonResult queryPagerepairRefundRecords(@RequestParam int currentPage, @RequestParam int pageCount, String name);

    @GetMapping(value = "/deleterepairRefundRecordById")
    @ApiOperation(value = "根据ID删除指定退款记录", notes = "根据ID删除指定退款记录", httpMethod = "GET")
    CommonResult deleterepairRefundRecordById(@RequestParam int id);
}
