package com.repair.api;

import com.repair.model.pojo.RepairSystemSetting;
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.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

@RequestMapping("/api/repairSystemSetting")
@Api(tags = {"RepairSystemSettingController"}, value = "系统设置")
public interface RepairSystemSettingControllerAPI {

    @GetMapping(value = "/queryRepairSystemSetting")
    @ApiOperation(value = "获取系统设置", notes = "获取系统设置数据", httpMethod = "GET")
    CommonResult QueryRepairSystemSetting();

    @PostMapping(value = "/insertRepairSystemSetting")
    @ApiOperation(value = "添加系统设置", notes = "添加系统设置数据", httpMethod = "POST")
    CommonResult InsertRepairSystemSetting(@Validated @RequestBody RepairSystemSetting repairSystemSetting, BindingResult bindingResult);

    @PostMapping(value = "/updateRepairSystemSettingById")
    @ApiOperation(value = "编辑系统设置数据", notes = "编辑系统设置数据", httpMethod = "POST")
    CommonResult updateRepairSystemSettingById(@Validated @RequestBody RepairSystemSetting ra, BindingResult bindingResult);
}
