From 04c96f26282f021fcc59b40d6f11f172fc070af8 Mon Sep 17 00:00:00 2001
From: huanghongfa <18228131219@163.com>
Date: 星期五, 22 一月 2021 17:31:41 +0800
Subject: [PATCH] 新增接口一起议
---
springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/service/community/CommunityService.java | 484 +++++++++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 484 insertions(+), 0 deletions(-)
diff --git a/springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/service/community/CommunityService.java b/springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/service/community/CommunityService.java
index 99c7d8a..0e8b7ff 100644
--- a/springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/service/community/CommunityService.java
+++ b/springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/service/community/CommunityService.java
@@ -1,7 +1,12 @@
package com.panzhihua.common.service.community;
+import com.panzhihua.common.model.dtos.AppletesBackstageConfigDTO;
+import com.panzhihua.common.model.dtos.advertisement.ComOpsAdvDTO;
+import com.panzhihua.common.model.dtos.community.*;
import com.panzhihua.common.model.vos.R;
+import com.panzhihua.common.model.vos.SystemmanagementConfigVO;
import com.panzhihua.common.model.vos.community.*;
+import com.panzhihua.common.model.vos.user.UserPhoneVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
@@ -226,4 +231,483 @@
*/
@PostMapping("puteasyphotostatus")
R putEasypHotoStatus(@RequestBody ComActEasyPhotoVO comActEasyPhotoVO);
+
+ /**
+ * 新增社区
+ * @param comActVO 社区信息
+ * @return 新增结果
+ */
+ @PostMapping("addcommunity")
+ R addCommunity(@RequestBody ComActVO comActVO);
+
+ /**
+ * 编辑社区
+ * @param comActVO 编辑内容
+ * @return 编辑结果
+ */
+ @PostMapping("putCommunity")
+ R putCommunity(@RequestBody ComActVO comActVO);
+
+ /**
+ * 房屋信息
+ * @param userId 用户id
+ * @return 房屋信息
+ */
+ @PostMapping("detailhouse")
+ R detailHouse(@RequestParam("userId") Long userId);
+
+ /**
+ * 新增小区
+ * @param comMngStructAreaVO 小区信息
+ * @return 新增结果
+ */
+ @PostMapping("addarea")
+ R addArea(@RequestBody ComMngStructAreaVO comMngStructAreaVO);
+
+ /**
+ * 分页查询小区
+ * @param comMngStructAreaVO 查询参数
+ * @return 分页结果
+ */
+ @PostMapping("pagearea")
+ R pageArea(@RequestBody ComMngStructAreaVO comMngStructAreaVO);
+
+ /**
+ * 编辑小区
+ * @param comMngStructAreaVO 编辑内容
+ * @return 编辑结果
+ */
+ @PostMapping("putarea")
+ R putArea(@RequestBody ComMngStructAreaVO comMngStructAreaVO);
+
+ /**
+ * 删除小区
+ * @param comMngStructAreaVO 地址编码
+ * @return 删除结果
+ */
+ @PostMapping("deletearea")
+ R deleteArea(@RequestBody ComMngStructAreaVO comMngStructAreaVO);
+
+ /**
+ * 小区批量建房
+ * @param batchhouseVO 建房参数
+ * @return 建房结果
+ */
+ @PostMapping("batchhouse")
+ R batchHouse(@RequestBody BatchhouseVO batchhouseVO);
+
+ /**
+ * 展示下级建筑
+ * @param houseCode 房屋编号
+ * @return 下级建筑列表
+ */
+ @PostMapping("listsubordinatebuilding")
+ R listSubordinatebuilding(@RequestParam("houseCode")String houseCode);
+
+ /**
+ * 添加同级地址
+ * @param comMngStructHouseVO 同级参数
+ * @return 添加结果
+ */
+ @PostMapping("addhouse")
+ R addHouse(@RequestBody BatchhouseVO comMngStructHouseVO);
+
+ /**
+ * 编辑地址
+ * @param comMngStructHouseVO 编辑内容
+ * @return 编辑结果
+ */
+ @PostMapping("addhouse")
+ R putHouse(@RequestBody ComMngStructHouseVO comMngStructHouseVO);
+
+ /**
+ * 删除地址
+ * @param comMngStructHouseVO 删除指定地址和所有下级
+ * @return 删除结果
+ */
+ @PostMapping("deletehouse")
+ R deleteHouse(@RequestBody ComMngStructHouseVO comMngStructHouseVO);
+
+ /**
+ * 新增其他建筑
+ * @param comMngStructOtherBuildVO 建筑参数
+ * @return 新增结果
+ */
+ @PostMapping("addotherbuild")
+ R addOtherbuild(@RequestBody ComMngStructOtherBuildVO comMngStructOtherBuildVO);
+
+ /**
+ * 查询所有建筑类型
+ * @return 类型列表
+ */
+ @PostMapping("listbuildtype")
+ R listBuildType();
+
+ /**
+ * 分页查询 其他建筑
+ * @param comMngStructOtherBuildVO 分页查询参数
+ * @return 查询结果
+ */
+ @PostMapping("pageotherbuild")
+ R pageOtherBuild(@RequestBody ComMngStructOtherBuildVO comMngStructOtherBuildVO);
+
+ /**
+ * 增加志愿者
+ * @param comMngVolunteerMngVO 志愿者信息
+ * @return 增加结果
+ */
+ @PostMapping("addvolunteer")
+ R addVolunteer(@RequestBody ComMngVolunteerMngVO comMngVolunteerMngVO);
+
+ /**
+ * 删除志愿者
+ * @param comMngVolunteerMngVO 手机号
+ * @return 删除结果
+ */
+ @PostMapping("deletevolunteer")
+ R deleteVolunteer(@RequestBody ComMngVolunteerMngVO comMngVolunteerMngVO);
+
+ /**
+ * 编辑志愿者
+ * @param comMngVolunteerMngVO 编辑内容
+ * @return 编辑结果
+ */
+ @PostMapping("putvolunteer")
+ R putVolunteer(@RequestBody ComMngVolunteerMngVO comMngVolunteerMngVO);
+
+ /**
+ * 分页展示志愿者
+ * @param comMngVolunteerMngVO 查询参数
+ * @return 分页集合返回
+ */
+ @PostMapping("pagevolunteer")
+ R pageVolunteer(@RequestBody ComMngVolunteerMngVO comMngVolunteerMngVO);
+
+ /**
+ * 分页展示志愿者审核
+ * @param comMngVolunteerMngVO 查询参数
+ * @return 查询结果
+ */
+ @PostMapping("pagevolunteerexamine")
+ R pageVolunteerExamine(@RequestBody ComMngVolunteerMngVO comMngVolunteerMngVO);
+
+ /**
+ * 志愿者审核详情
+ * @param id 主键
+ * @return 详情
+ */
+ @PostMapping("detailvolunteerexamine")
+ R detailVolunteerExamine(@RequestParam("id") Long id);
+
+ /**
+ * 志愿者审核
+ * @param comMngVolunteerMngVO 审核操作
+ * @return 审核结果
+ */
+ @PostMapping("putvolunteerexamine")
+ R putVolunteerExamine(@RequestBody ComMngVolunteerMngVO comMngVolunteerMngVO);
+
+ /**
+ * 删除志愿者审核
+ * @param comMngVolunteerMngVO 主键
+ * @return 删除结果
+ */
+ @PostMapping("deletevolunteerexamine")
+ R deleteVolunteerExamine(@RequestBody ComMngVolunteerMngVO comMngVolunteerMngVO);
+
+ /**
+ * 查询区域
+ * @param comActVO 登录人的经纬度、或者指定区域的社区
+ * @return 10个社区
+ */
+ @PostMapping("listcommunity")
+ R listCommunity(@RequestBody ComActVO comActVO);
+
+ /**
+ * 用户修改手机号对应的志愿者手机号也要修改
+ * @param userPhoneVO 新旧手机号
+ * @return 修改结果
+ */
+ @PostMapping("putvolunteerphone")
+ R putVolunteerPhone(@RequestBody UserPhoneVO userPhoneVO);
+
+ /**
+ * 房屋地址下拉列表
+ * @param parentCode 父级编码
+ * @param areaId 小区id
+ * @return 下级列表
+ */
+ @PostMapping("listhouses")
+ R listHouses(@RequestParam("parentCode")String parentCode, @RequestParam("areaId")Long areaId);
+
+ /**
+ * 新增房屋
+ * @param comMngStructHouseVO 房屋信息
+ * @return 新增结果
+ */
+ @PostMapping("addhouses")
+ R addHouses(@RequestBody ComMngStructHouseVO comMngStructHouseVO);
+
+ /**
+ * 查询小区
+ * @param communityId 社区id
+ * @return 小区集合
+ */
+ @PostMapping("listarea")
+ R listArea(@RequestParam("communityId")Long communityId);
+
+ /**
+ * 用户参加的所有社区活动
+ * @param userId 用户id
+ * @return 活动列表
+ */
+ @PostMapping("listactivity")
+ R listActivity(@RequestParam("userId")Long userId );
+
+ /**
+ * 用户确认心愿
+ * @param comActMicroWishVO 用户评价
+ * @return 确认结果
+ */
+ @PostMapping("putmicrowishconfirm")
+ R putMicroWishConfirm(@RequestBody ComActMicroWishVO comActMicroWishVO);
+
+ /**
+ * 建筑类型
+ * @param communityId 社区id
+ * @return 建筑集合
+ */
+ @PostMapping("listcommngstructbuildtype")
+ R listComMngStructBuildType(@RequestParam("communityId") Long communityId);
+
+ /**
+ * 增加删除建筑类型
+ * @param systemmanagementConfigVO 操作内容
+ * @return 操作结果
+ */
+ @PostMapping("putcommngstructbuildtype")
+ R putComMngStructBuildType(@RequestBody SystemmanagementConfigVO systemmanagementConfigVO);
+
+ /**
+ * 获取广告跳转内容配置
+ * @return 跳转内容集合
+ */
+ @PostMapping("getjumpcontent")
+ R getJumpContent();
+
+ /**
+ * 编辑运营后台系统配置
+ * @param appletesBackstageConfigDTO 编辑内容
+ * @return 编辑结果
+ */
+ @PostMapping("putjumpcontent")
+ R putJumpContent(@RequestBody AppletesBackstageConfigDTO appletesBackstageConfigDTO);
+
+ /**
+ * 社区详情
+ * @param communityId 社区id
+ * @return 社区详情
+ */
+ @PostMapping("detailcommunity")
+ R detailCommunity(@RequestParam("communityId") Long communityId);
+
+ /**
+ * 小区详情
+ * @param areaId 小区id
+ * @return 小区信息
+ */
+ @PostMapping("detailarea")
+ R detailArea(@RequestParam("areaId")Long areaId);
+
+ /**
+ * 分页查询社区
+ * @param pageComActDTO 查询参数
+ * @return 分页集合
+ */
+ @PostMapping("pagecommunity")
+ R pageCommunity(@RequestBody PageComActDTO pageComActDTO);
+
+ /**
+ * 志愿者详情
+ * @param id 主键
+ * @return
+ */
+ @PostMapping("detailvolunteer")
+ R detailVolunteer(@RequestParam("id")Long id);
+
+ /**
+ * 查询平台所有的社区
+ * @return 社区集合 按照创建顺序倒序排列
+ */
+ @PostMapping("listcommunityall")
+ R listCommunityAll();
+
+ /**
+ * 首页广告banner
+ * @return
+ */
+ @PostMapping("listadvertisement")
+ R listAdvertisement();
+
+ /**
+ * 新增广告
+ * @param comOpsAdvDTO
+ * @return
+ */
+ @PostMapping("addadvertisement")
+ R addAdvertisement(@RequestBody ComOpsAdvDTO comOpsAdvDTO);
+
+ /**
+ * 编辑广告
+ * @param comOpsAdvDTO 编辑内容
+ * @return 编辑结果
+ */
+ @PostMapping("putadvertisement")
+ R putAdvertisement(@RequestBody ComOpsAdvDTO comOpsAdvDTO);
+
+ /**
+ * 广告位置下拉列表
+ * @return 位置集合
+ */
+ @PostMapping("listadvpos")
+ R listAdvpos();
+
+ /**
+ * 跳转内容下拉列表
+ * @return 跳转内容集合
+ */
+ @PostMapping("listadvjump")
+ R listAdvjump();
+
+ /**
+ * 社区管理后台数据看板 代办事件
+ * @param communityId 社区id
+ * @param userId
+ * @return 代办事件列表
+ */
+ @PostMapping("indexdatacommunitybackstage")
+ R indexDataCommunityBackstage(@RequestParam("communityId") Long communityId, @RequestParam("userId")Long userId);
+
+ /**
+ * 删除社区
+ * @param communityId 社区id
+ * @return 删除结果
+ */
+ @PostMapping("delectcommunity")
+ R delectCommunity(@RequestParam("communityId") Long communityId);
+
+ /**
+ * 定时任务刷新社区动态置顶状态
+ * @return
+ */
+ @PostMapping("timedtaskdynistopping")
+ R timedTaskDynIstopping();
+
+ /**
+ * 定时任务刷新社区动态发布状态
+ * @return
+ */
+ @PostMapping("timedtaskdynstatus")
+ R timedTaskDynStatus();
+
+ /**
+ * 定时任务查询所有要取消的社区活动
+ * @return 社区活动集合
+ */
+ @PostMapping("timedtaskactactivity")
+ R timedTaskActActivity();
+
+ /**
+ * 定时任务刷新社区活动的各个状态 除取消外
+ * @return
+ */
+ @PostMapping("timedtaskactactivityall")
+ R timedTaskActActivityAll();
+
+ /**
+ * 其他建筑详情
+ * @param id 主键id
+ * @return 建筑内容
+ */
+ @PostMapping("detailotherbuild")
+ R detailOtherbuild(@RequestParam("id")Long id);
+
+ /**
+ * 编辑其他建筑
+ * @param comMngStructOtherBuildVO 编辑内容
+ * @return 编辑结果
+ */
+ @PostMapping("putotherbuild")
+ R putOtherbuild(@RequestBody ComMngStructOtherBuildVO comMngStructOtherBuildVO);
+
+ /**
+ * 删除其他建筑
+ * @param id 主键
+ * @return 删除结果
+ */
+ @PostMapping("deleteotherbuild")
+ R deleteOtherbuild(@RequestParam("id")Long id);
+
+ /**
+ * 社区后台分页查询社区活动
+ * @param comActActivityVO 查询参数
+ * @return 返回结果
+ */
+ @PostMapping("pageactivitycommunityback")
+ R pageActivityCommunityBack(@RequestBody ComActActivityVO comActActivityVO);
+ /**
+ * 小程序分页查询随手拍
+ * @param comActEasyPhotoVO 查询参数
+ * @return 返回结果
+ */
+ @PostMapping("pageeasyphotoapplets")
+ R pageEasyPhotoApplets(@RequestBody ComActEasyPhotoVO comActEasyPhotoVO);
+
+ /**
+ * 随手拍评论分页查询
+ * @param pageComActEasyPhotoCommentDTO 查询参数
+ * @return 查询结果
+ */
+ @PostMapping("pagecomacteasyphotocomment")
+ R pageComActEasyPhotoComment(@RequestBody PageComActEasyPhotoCommentDTO pageComActEasyPhotoCommentDTO);
+
+ /**
+ * 评论点赞/取消点赞
+ * @param comActEasyPhotoCommentUserDTO 操作
+ * @return 操作结果
+ */
+ @PostMapping("commentsign")
+ R commentSign(@RequestBody ComActEasyPhotoCommentUserDTO comActEasyPhotoCommentUserDTO);
+
+ /**
+ * 随手拍--评论--新增评论
+ * @param comActEasyPhotoCommentDTO 新增内容
+ * @return 新增结果
+ */
+ @PostMapping("addcomacteasyphotocomment")
+ R addComActEasyPhotoComment(@RequestBody ComActEasyPhotoCommentDTO comActEasyPhotoCommentDTO);
+
+ /**
+ * 一起议-新增
+ * @param comActDiscussDTO 新增参数
+ * @return 新增结果
+ */
+ @PostMapping("adddiscuss")
+ R addDiscuss(@RequestBody ComActDiscussDTO comActDiscussDTO);
+
+ /**
+ * 一起议-详情
+ * @param id 主键
+ * @return ComActDiscussVO
+ */
+ @PostMapping("detaildiscuss")
+ R detailDiscuss(@RequestParam("id") Long id);
+
+ /**
+ * 一起议-删除
+ * @param id 主键
+ * @return 删除结果
+ */
+ @PostMapping("deletediscuss")
+ R deleteDiscuss(@RequestParam("id") Long id);
}
--
Gitblit v1.7.1