File was renamed from springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/CommunityCommonDataApi.java |
| | |
| | | package com.panzhihua.service_community.api; |
| | | |
| | | import com.panzhihua.common.model.dtos.community.ComMngCarAppletDTO; |
| | | import com.panzhihua.common.model.dtos.community.ComMngCarSaveDTO; |
| | | import com.panzhihua.common.model.dtos.community.PageComMngCarDTO; |
| | | import com.panzhihua.common.model.vos.R; |
| | | import com.panzhihua.service_community.service.ComMngCarService; |
| | | import lombok.extern.slf4j.Slf4j; |
| | |
| | | @Slf4j |
| | | @RestController |
| | | @RequestMapping("/common/data") |
| | | public class CommunityCommonDataApi { |
| | | public class CommonDataApi { |
| | | |
| | | @Resource |
| | | private ComMngCarService comMngCarService; |
| | |
| | | return comMngCarService.userComMngCarList(userId); |
| | | } |
| | | |
| | | @PostMapping("/car/page") |
| | | public R pageQueryComMngCar(@RequestBody PageComMngCarDTO pageComMngCarDTO) { |
| | | return comMngCarService.pageQueryComMngCar(pageComMngCarDTO); |
| | | } |
| | | |
| | | @PostMapping("/car/save") |
| | | public R saveComMngCar(@RequestBody ComMngCarSaveDTO comMngCarSaveDTO) { |
| | | return comMngCarService.saveComMngCar(comMngCarSaveDTO); |
| | | } |
| | | } |