| | |
| | | |
| | | import com.panzhihua.common.model.vos.R; |
| | | 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.DeleteMapping; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestParam; |
| | |
| | | /** |
| | | * 活动详情 |
| | | * @param id 活动id |
| | | * @param userId 当前登录者id |
| | | * @return 详情 |
| | | */ |
| | | @PostMapping("inforactivity") |
| | | R inforActivity(@RequestParam("id") Long id); |
| | | @PostMapping("detailactivity") |
| | | R detailActivity(@RequestParam("id") Long id, @RequestParam("userId")Long userId); |
| | | |
| | | /** |
| | | * 活动报名名单 |
| | |
| | | * @return 详情 |
| | | */ |
| | | @PostMapping("detaildynamic") |
| | | R detailDynamic(@RequestParam("id") String id); |
| | | R detailDynamic(@RequestParam("id") Long id); |
| | | |
| | | /** |
| | | * 分页查询随手拍 |
| | |
| | | /** |
| | | * 随手拍详情 |
| | | * @param id 随手拍主键 |
| | | * @param userId 登录用户id |
| | | * @return 详情内容 |
| | | */ |
| | | @PostMapping("detaileasyphoto") |
| | | R detailEasyPhoto(@RequestParam("id")Long id); |
| | | R detailEasyPhoto(@RequestParam("id") Long id, @RequestParam("userId")Long userId); |
| | | |
| | | /** |
| | | * 分页查询微心愿 |
| | |
| | | /** |
| | | * 心愿详情 |
| | | * @param id 查询主键 |
| | | * @param userId 登录用户id |
| | | * @return 心愿内容 |
| | | */ |
| | | @PostMapping("detailmicrowish") |
| | | R detailMicroWish(@RequestParam("id")Long id); |
| | | R detailMicroWish(@RequestParam("id") Long id, @RequestParam("userId")Long userId); |
| | | |
| | | /** |
| | | * 审核、分配、反馈心愿 |
| | |
| | | */ |
| | | @PostMapping("putlmicrowish") |
| | | R putlMicroWish(@RequestBody ComActMicroWishVO comActMicroWishVO); |
| | | |
| | | /** |
| | | * 分页展示我的所有活动 时间倒序排列 |
| | | * @param comActActivityVO 分页参数 |
| | | * @return 分页集合 |
| | | */ |
| | | @PostMapping("pagemyactivity") |
| | | R pageMyActivity(@RequestBody ComActActivityVO comActActivityVO); |
| | | |
| | | /** |
| | | * 报名/取消报名社区活动 |
| | | * @param signactivityVO 报名参数 |
| | | * @return 报名 取消报名 结果 |
| | | */ |
| | | @PostMapping("signactivity") |
| | | R signActivity(@RequestBody SignactivityVO signactivityVO); |
| | | |
| | | /** |
| | | * 上传随手拍 |
| | | * @param comActEasyPhotoVO 上传数据 |
| | | * @return 上传结果 |
| | | */ |
| | | @PostMapping("addeasyphoto") |
| | | R addEasyPhoto(@RequestBody ComActEasyPhotoVO comActEasyPhotoVO); |
| | | |
| | | /** |
| | | * 发布微心愿 |
| | | * @param comActMicroWishVO 发布内容 |
| | | * @return 发布结果 |
| | | */ |
| | | @PostMapping("addmicrowish") |
| | | R addMicroWish(@RequestBody ComActMicroWishVO comActMicroWishVO); |
| | | |
| | | /** |
| | | * 点赞/取消点赞随手拍 |
| | | * @param comActEasyPhotoVO 操作参数 |
| | | * @return 操作结果 |
| | | */ |
| | | @PostMapping("puteasyphoto") |
| | | R putEasyPhoto(@RequestBody ComActEasyPhotoVO comActEasyPhotoVO); |
| | | |
| | | /** |
| | | * 点赞/取消点赞微心愿 |
| | | * @param comActMicroWishVO 操作参数 |
| | | * @return 操作结果 |
| | | */ |
| | | @PostMapping("putmicrowish") |
| | | R putMicroWish(@RequestBody ComActMicroWishVO comActMicroWishVO); |
| | | |
| | | /** |
| | | * 新增社区动态浏览记录 |
| | | * @param id 动态主键 |
| | | * @param userId 登录用户id |
| | | * @return 新增结果 |
| | | */ |
| | | @PostMapping("adddynamicuser") |
| | | R addDynamicUser(@RequestParam("id") Long id, @RequestParam("userId")Long userId); |
| | | |
| | | /** |
| | | * 审核、反馈随手拍 |
| | | * @param comActEasyPhotoVO 操作参数 |
| | | * @return 操作结果 |
| | | */ |
| | | @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(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); |
| | | } |