package com.thhy.secure.modules.biz.regionWarranty.controller;
|
|
import com.thhy.general.common.BasicResult;
|
import com.thhy.secure.modules.biz.regionWarranty.dto.TRegionWarrantyDto;
|
import com.thhy.secure.modules.biz.regionWarranty.entity.TRegionWarrantyEntity;
|
import com.thhy.secure.modules.biz.regionWarranty.service.TRegionWarrantyService;
|
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.web.bind.annotation.*;
|
|
/**
|
* @Author QiuYuHao
|
* @CreateDate 2023-09-26 14:20:54
|
* 区域包保控制层
|
*/
|
|
@RestController
|
@RequestMapping(value = "tRegionWarranty")
|
public class TRegionWarrantyController {
|
|
|
@Autowired
|
private TRegionWarrantyService tRegionWarrantyService;
|
|
@PostMapping(value = "insert")
|
BasicResult insert(@RequestBody TRegionWarrantyEntity tRegionWarrantyEntity){
|
return tRegionWarrantyService.insert(tRegionWarrantyEntity);
|
}
|
|
@GetMapping(value = "delete")
|
BasicResult delete(@RequestParam String id){
|
return tRegionWarrantyService.delete(id);
|
}
|
|
@PostMapping(value = "update")
|
BasicResult update(@RequestBody TRegionWarrantyEntity tRegionWarrantyEntity){
|
return tRegionWarrantyService.update(tRegionWarrantyEntity);
|
}
|
|
@PostMapping(value = "findAll")
|
BasicResult findAll(@RequestBody TRegionWarrantyDto tRegionWarrantyDto){
|
return tRegionWarrantyService.findAll(tRegionWarrantyDto);
|
}
|
|
@GetMapping(value = "findEntity")
|
BasicResult findEntity(@RequestParam String id){
|
return tRegionWarrantyService.findEntity(id);
|
}
|
}
|