puhanshu
2022-08-16 43f0578e80af82ecae6c61b51bd0539c6b960603
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/StreetApi.java
@@ -5,9 +5,11 @@
import javax.annotation.Resource;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import com.panzhihua.common.model.dtos.community.PageComStreetDTO;
@@ -37,7 +39,7 @@
     */
    @PostMapping("addstreet")
    @Transactional(rollbackFor = Exception.class)
    public R addStreet(@RequestBody ComStreetVO comStreetVO) {
    public R<ComStreetVO> addStreet(@RequestBody ComStreetVO comStreetVO) {
        return comStreetService.addStreet(comStreetVO);
    }
@@ -81,4 +83,14 @@
        return r;
    }
    /**
     * 街道详情
     * @param id
     * @return
     */
    @GetMapping("detailStreet")
    public R detailStreet(@RequestParam("id") Long id) {
        return comStreetService.detailStreet(id);
    }
}