邱宇豪
2023-09-26 6f29c4f4f54f1ae0fc44773cfb867046f2747a51
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
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);
    }
}