| | |
| | | |
| | | import com.thhy.general.common.BasicResult; |
| | | import com.thhy.secure.modules.biz.regionHazardInform.dto.TRegionHazardInformDto; |
| | | import com.thhy.secure.modules.biz.regionHazardInform.entity.RegionHazardInformEntity; |
| | | 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; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | /** |
| | | * @Author QiuYuHao |
| | |
| | | private TRegionHazardInformService service; |
| | | |
| | | @PostMapping(value = "findAll") |
| | | public BasicResult findAll(TRegionHazardInformDto tRegionHazardInformDto){ |
| | | public BasicResult findAll(@RequestBody TRegionHazardInformDto tRegionHazardInformDto){ |
| | | return service.findAll(tRegionHazardInformDto); |
| | | } |
| | | |
| | | @GetMapping(value = "findEntity") |
| | | public BasicResult findEntity(String id){ |
| | | public BasicResult findEntity(@RequestParam String id){ |
| | | return service.findEntity(id); |
| | | } |
| | | |
| | | @PostMapping(value = "insert") |
| | | public BasicResult insert(TRegionHazardInformEntity tRegionHazardInformEntity){ |
| | | public BasicResult insert(@RequestBody RegionHazardInformEntity tRegionHazardInformEntity){ |
| | | return service.insert(tRegionHazardInformEntity); |
| | | } |
| | | |
| | | @PostMapping(value = "update") |
| | | public BasicResult update(TRegionHazardInformEntity tRegionHazardInformEntity){ |
| | | public BasicResult update(@RequestBody RegionHazardInformEntity tRegionHazardInformEntity){ |
| | | return service.update(tRegionHazardInformEntity); |
| | | } |
| | | |
| | | @GetMapping(value = "delete") |
| | | public BasicResult delete(String id){ |
| | | public BasicResult delete(@RequestParam String id){ |
| | | return service.delete(id); |
| | | } |
| | | } |