New file |
| | |
| | | package com.panzhihua.applets.api; |
| | | |
| | | import com.panzhihua.common.controller.BaseController; |
| | | import com.panzhihua.common.model.dtos.community.cluster.PageClusterMemberDto; |
| | | import com.panzhihua.common.model.vos.LoginUserInfoVO; |
| | | import com.panzhihua.common.model.vos.R; |
| | | import com.panzhihua.common.model.vos.community.cluster.PageClusterMemberVo; |
| | | import com.panzhihua.common.model.vos.community.cluster.PageClusterVo; |
| | | import com.panzhihua.common.service.community.CommunityService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.Objects; |
| | | |
| | | /** |
| | | * title: 群团组织接口类 |
| | | * projectName 成都呐喊信息技术有限公司-智慧社区项目 |
| | | * description: 群团组织接口类 |
| | | * |
| | | * @author lyq |
| | | * @date 2021/9/23 16:12 |
| | | */ |
| | | @Slf4j |
| | | @Api(tags = {"群团组织"}) |
| | | @RestController |
| | | @RequestMapping("/cluster/") |
| | | public class ClusterApi extends BaseController { |
| | | |
| | | @Resource |
| | | private CommunityService communityService; |
| | | |
| | | @ApiOperation(value = "群团组织成员分页查询",response = PageClusterMemberVo.class) |
| | | @PostMapping("/member/page") |
| | | public R pageMemberClusterApplets(@RequestBody PageClusterMemberDto pageClusterMemberDto) { |
| | | pageClusterMemberDto.setCommunityId(this.getCommunityId()); |
| | | return communityService.pageClusterMemberApplets(pageClusterMemberDto); |
| | | } |
| | | |
| | | @ApiOperation(value = "群团组织列表",response = PageClusterVo.class) |
| | | @GetMapping("list") |
| | | public R listClusterApplets() { |
| | | return communityService.listClusterApplets(this.getCommunityId()); |
| | | } |
| | | } |