New file |
| | |
| | | package com.panzhihua.service_community.api; |
| | | |
| | | import com.panzhihua.common.model.dtos.community.ComMngCarAppletDTO; |
| | | 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.*; |
| | | |
| | | import javax.annotation.Resource; |
| | | |
| | | /** |
| | | * @description: 社区管理/基础数据 |
| | | * @author: Null |
| | | * @date: 2021/3/11 13:19 |
| | | */ |
| | | @Slf4j |
| | | @RestController |
| | | @RequestMapping("/common/data") |
| | | public class CommunityCommonDataApi { |
| | | |
| | | @Resource |
| | | private ComMngCarService comMngCarService; |
| | | |
| | | |
| | | /** |
| | | * 小程序用户车辆登记 |
| | | * @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); |
| | | } |
| | | |
| | | } |