Null
2021-03-16 2570dfbb586ca594f270bf432477c670c92055f0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
package com.panzhihua.applets.api;
 
import com.panzhihua.common.controller.BaseController;
import com.panzhihua.common.model.dtos.community.ComMngCarAppletDTO;
import com.panzhihua.common.model.vos.LoginUserInfoVO;
import com.panzhihua.common.model.vos.R;
import com.panzhihua.common.service.community.CommunityService;
import io.swagger.annotations.Api;
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 javax.annotation.Resource;
 
/**
 * @description: 社区管理/基础数据
 * @author: Null
 * @date: 2021/3/11 13:19
 */
@Slf4j
@Api(tags = {"社区管理/基础数据"})
@RestController
@RequestMapping("/common/data")
public class CommunityCommonDataApi extends BaseController {
 
    @Resource
    private CommunityService communityService;
 
    @PostMapping("/car/add")
    public R addComMngCarApplet(@RequestBody ComMngCarAppletDTO comMngCarAppletDTO) {
        LoginUserInfoVO loginUserInfo = this.getLoginUserInfo();
        Long communityId = loginUserInfo.getCommunityId();
        if (null!=communityId && 0!=communityId) {
            comMngCarAppletDTO.setCommunityId(communityId);
        }
        return communityService.addComMngCarApplet(comMngCarAppletDTO);
    }
 
}