| | |
| | | package com.panzhihua.service_community.api; |
| | | |
| | | import com.panzhihua.common.model.dtos.community.PageComMngVillageDTO; |
| | | import com.panzhihua.common.model.dtos.community.PageComStreetDTO; |
| | | import com.panzhihua.common.model.vos.R; |
| | | import com.panzhihua.common.model.vos.community.ComMngVillageVO; |
| | | import com.panzhihua.common.model.vos.community.ComStreetVO; |
| | | import com.panzhihua.service_community.service.ComMngVillageService; |
| | | import com.panzhihua.service_community.service.ComStreetService; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | |
| | | @PostMapping("addvillage") |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public R addVillage(@Valid @RequestBody ComMngVillageVO comMngVillageVO) { |
| | | R r = comMngVillageService.addComMngVillage(comMngVillageVO); |
| | | R r = comMngVillageService.addComActVillage(comMngVillageVO); |
| | | return R.ok(r); |
| | | } |
| | | |
| | |
| | | */ |
| | | @PostMapping("pagevillage") |
| | | public R pageVillage(@RequestBody PageComMngVillageDTO pageComMngVillageDTO) { |
| | | R r = comMngVillageService.pageComMngVillage(pageComMngVillageDTO); |
| | | R r = comMngVillageService.pageComActVillage(pageComMngVillageDTO); |
| | | return R.ok(r); |
| | | } |
| | | |
| | |
| | | */ |
| | | @PostMapping("listvillage") |
| | | public R listVillage(@RequestBody ComMngVillageVO comMngVillageVO) { |
| | | R r = comMngVillageService.listComMngVillage(comMngVillageVO); |
| | | R r = comMngVillageService.listComActVillage(comMngVillageVO); |
| | | return R.ok(r); |
| | | } |
| | | |
| | |
| | | @PostMapping("deletevillage") |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public R delectVillage(@RequestBody List<Long> Ids) { |
| | | R r = comMngVillageService.delecComMngVillage(Ids); |
| | | R r = comMngVillageService.delecComActVillage(Ids); |
| | | return R.ok(r); |
| | | } |
| | | |