findyguo
2021-03-03 3955a4ea38616acca7ef8f609ebf30f827e6a230
springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/service/partybuilding/PartyBuildingService.java
@@ -1,6 +1,9 @@
package com.panzhihua.common.service.partybuilding;
import com.panzhihua.common.model.dtos.partybuilding.ActivitySignUpDTO;
import com.panzhihua.common.model.dtos.partybuilding.ComPbActivityDTO;
import com.panzhihua.common.model.dtos.partybuilding.ComPbServiceTeamDTO;
import com.panzhihua.common.model.dtos.partybuilding.PageComPbServiceTeamDTO;
import com.panzhihua.common.model.vos.R;
import com.panzhihua.common.model.vos.community.ComActActivityVO;
import com.panzhihua.common.model.vos.partybuilding.*;
@@ -28,12 +31,50 @@
    R addPartyBuildingMember(@RequestBody PartyBuildingMemberVO partyBuildingMemberVO);
    /**
     * 平台所有的党组织
     * 社区所有启用的党组织列表
     * @return 党组织集合
     */
    @PostMapping("/partybuildIng/listpartyorganization")
    R listPartyOrganization(@RequestParam("communityId") Long communityId);
    /**
     * 社区所有的党组织列表
     * @return 党组织集合
     */
    @PostMapping("/partybuildIng/listpartyorganizationAll")
    R listPartyOrganizationAll(@RequestParam("communityId") Long communityId);
    /**
     * 新增党支部
     * @param partyOrganizationVO 党支部基本信息
     * @return 新增结果
     */
    @PostMapping("/partybuildIng/addpartyorganization")
    R addPartyOrganization(@RequestBody PartyOrganizationVO partyOrganizationVO);
    /**
     * 编辑党支部
     * @param partyOrganizationVO 党支部基本信息
     * @return 编辑结果
     */
    @PostMapping("/partybuildIng/updatepartyorganization")
    R updatePartyOrganization(@RequestBody PartyOrganizationVO partyOrganizationVO);
    /**
     * 启用,禁用党支部
     * @param partyOrganizationVO 党支部基本信息
     * @return 编辑结果
     */
    @PostMapping("/partybuildIng/resetpartyorganization")
    R resetPartyOrganization(PartyOrganizationVO partyOrganizationVO);
    /**
     * 删除党支部
     * @param partyOrganizationVO 党支部基本信息
     * @return 删除结果
     */
    @PostMapping("/partybuildIng/deletepartyorganization")
    R deletePartyOrganization(PartyOrganizationVO partyOrganizationVO);
    /**
     * 批量新增党员
     * @param list 党员集合
@@ -232,10 +273,11 @@
    /**
     * 用户的所有党建活动
     * @param userId 用户id
     * @param communityId 社区id  同一用户在不同社区都是党员
     * @return  党建活动列表
     */
    @PostMapping("/partybuildIng/listactivity")
    R listActivity(@RequestParam("userId") Long userId);
    R listActivity(@RequestParam("userId") Long userId, @RequestParam("communityId")Long communityId);
    /**
     * 党员活动人员参入列表
@@ -281,4 +323,47 @@
     */
    @PostMapping("/partybuildIng/timedtaskpartybuildingactivityall")
    R timedTaskPartyBuildingActivityAll();
    /**
     * 新增服务团队人员
     * @param comPbServiceTeamDTO 新增内容
     * @return 新增结果
     */
    @PostMapping("/partybuildIng/addserviceteam")
    R addServiceTeam(@RequestBody ComPbServiceTeamDTO comPbServiceTeamDTO);
    /**
     * 编辑团队人员
     * @param comPbServiceTeamDTO 编辑内容
     * @return 编辑结果
     */
    @PostMapping("/partybuildIng/putserviceteam")
    R putServiceTeam(@RequestBody ComPbServiceTeamDTO comPbServiceTeamDTO);
    /**
     * 删除服务团队人员
     * @param comPbServiceTeamDTO 删除主键
     * @return 删除结果
     */
    @PostMapping("/partybuildIng/deleteserviceteam")
    R deleteServiceTeam(@RequestBody ComPbServiceTeamDTO comPbServiceTeamDTO);
    /**
     * 分页查询服务团队成员
     * @param pageComPbServiceTeamDTO 查询参数
     * @return 查询结果
     */
    @PostMapping("/partybuildIng/pageserviceteam")
    R pageServiceTeam(@RequestBody PageComPbServiceTeamDTO pageComPbServiceTeamDTO);
    /**
     * 创建党员活动 小程序创建党员活动
     * @param comPbActivityDTO 创建内容
     * @return 创建结果
     */
    @PostMapping("/partybuildIng/addactivityinfo")
    R addActivityApplets(@RequestBody ComPbActivityDTO comPbActivityDTO);
}