叶松
2023-09-27 95caf74f05712c6556128eca180d555f427e289e
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
49
package com.thhy.secure.modules.biz.regionHazardInform.controller;
 
import com.thhy.general.common.BasicResult;
import com.thhy.secure.modules.biz.regionHazardInform.dto.TRegionHazardInformDto;
import com.thhy.secure.modules.biz.regionHazardInform.entity.TRegionHazardInformEntity;
import com.thhy.secure.modules.biz.regionHazardInform.service.TRegionHazardInformService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
 
/**
 * @Author QiuYuHao
 * @CreateDate 2023-09-26 13:32:08
 * 危险源告知控制层
 */
@RestController
@RequestMapping(value = "regionHazardInform")
public class TRegionHazardInformController {
 
    @Autowired
    private TRegionHazardInformService service;
 
    @PostMapping(value = "findAll")
    public BasicResult findAll(TRegionHazardInformDto tRegionHazardInformDto){
        return service.findAll(tRegionHazardInformDto);
    }
 
    @GetMapping(value = "findEntity")
    public BasicResult findEntity(String id){
        return service.findEntity(id);
    }
 
    @PostMapping(value = "insert")
    public BasicResult insert(TRegionHazardInformEntity tRegionHazardInformEntity){
        return service.insert(tRegionHazardInformEntity);
    }
 
    @PostMapping(value = "update")
    public BasicResult update(TRegionHazardInformEntity tRegionHazardInformEntity){
        return service.update(tRegionHazardInformEntity);
    }
 
    @GetMapping(value = "delete")
    public BasicResult delete(String id){
        return service.delete(id);
    }
}