| | |
| | | import com.panzhihua.common.model.vos.R; |
| | | import com.panzhihua.service_community.service.ComMngCarService; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | 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.RestController; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | | |
| | |
| | | @Resource |
| | | private ComMngCarService comMngCarService; |
| | | |
| | | @PostMapping("/car/add") |
| | | |
| | | /** |
| | | * 小程序用户车辆登记 |
| | | * @param comCvtBusinessDTO |
| | | * @return |
| | | */ |
| | | @PostMapping("/car/user/register") |
| | | public R addComCvtBusiness(@RequestBody ComMngCarAppletDTO comCvtBusinessDTO) { |
| | | return comMngCarService.addComMngCarApplet(comCvtBusinessDTO); |
| | | } |
| | | |
| | | /** |
| | | * 小程序用户车辆列表 |
| | | * @param userId |
| | | * @return |
| | | */ |
| | | @GetMapping("/car/user/list") |
| | | public R userComMngCarList(@RequestParam("userId") Long userId) { |
| | | return comMngCarService.userComMngCarList(userId); |
| | | } |
| | | |
| | | } |