huanghongfa
2021-01-05 d9eee1919dbff7ffddc48b1f4fee2ec41a54a2a2
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
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.PageComActDTO;
import com.panzhihua.common.model.dtos.user.PageFeedBackDTO;
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;
import org.springframework.web.bind.annotation.RequestParam;
 
/**
 * @program: springcloud_k8s_panzhihuazhihuishequ
 * @description: 社区
 * @author: huang.hongfa weixin hhf9596 qq 959656820
 * @create: 2020-12-07 15:59
 **/
@FeignClient(name = "community")
public interface CommunityService {
    /**
     * 新增社区活动
     * @param comActActivityVO 新增信息
     * @return 新增结果
     */
    @PostMapping("/addactivity")
    R addActivity(@RequestBody ComActActivityVO comActActivityVO);
 
    /**
     * 编辑社区活动
     * @param comActActivityVO 编辑内容
     * @return 编辑结果
     */
    @PostMapping("/putactivity")
    R putActivity(@RequestBody ComActActivityVO comActActivityVO);
 
    /**
     * 删除社区活动
     * @param comActActivityVO 活动主键
     * @return 删除结果
     */
    @PostMapping("deleteactivity")
    R deleteActivity(@RequestBody ComActActivityVO comActActivityVO);
 
    /**
     * 分页查询社区活动
     * @param comActActivityVO 查询参数
     * @return 分页集合
     */
    @PostMapping("pageactivity")
    R pageActivity(@RequestBody ComActActivityVO comActActivityVO);
 
    /**
     * 发布活动
     * @param comActActivityVO 主键id 发布时间
     * @return 发布结果
     */
    @PostMapping("releaseactivity")
    R releaseActivity(@RequestBody ComActActivityVO comActActivityVO);
 
    /**
     * 取消活动
     * @param comActActivityVO 取消原因
     * @return 取消结果
     */
    @PostMapping("cancelactivity")
    R cancelActivity(@RequestBody ComActActivityVO comActActivityVO);
 
    /**
     * 活动详情
     * @param id 活动id
     * @param userId 当前登录者id
     * @return 详情
     */
    @PostMapping("detailactivity")
    R detailActivity(@RequestParam("id") Long id, @RequestParam("userId")Long userId);
 
    /**
     * 活动报名名单
     * @param activitySignVO 查询参数
     * @return 报名人员集合
     */
    @PostMapping("listactivitysign")
    R listActivitySign(@RequestBody ActivitySignVO activitySignVO);
 
    /**
     * 新增社区动态
     * @param comActDynVO 新增信息
     * @return 新增结果
     */
    @PostMapping("adddynamic")
    R addDynamic(@RequestBody ComActDynVO comActDynVO);
 
    /**
     * 编辑社区动态
     * @param comActDynVO 编辑内容
     * @return 编辑结果
     */
    @PostMapping("putdynamic")
    R putDynamic(@RequestBody ComActDynVO comActDynVO);
 
    /**
     * 删除社区动态
     * @param comActDynVO 动态id
     * @return 删除结果
     */
    @PostMapping("deletedynamic")
    R deleteDynamic(@RequestBody ComActDynVO comActDynVO);
 
    /**
     * 分页查询社区动态
     * @param comActDynVO 查询参数
     * @return 动态集合
     */
    @PostMapping("pagedynamic")
    R pageDynamic(@RequestBody ComActDynVO comActDynVO);
 
    /**
     * 社区动态详情
     * @param id 动态id
     * @return 详情
     */
    @PostMapping("detaildynamic")
    R detailDynamic(@RequestParam("id") Long id);
 
    /**
     * 分页查询随手拍
     * @param comActEasyPhotoVO 查询参数
     * @return 心愿列表
     */
    @PostMapping("pageeasyphoto")
    R pageEasyPhoto(@RequestBody ComActEasyPhotoVO comActEasyPhotoVO);
 
    /**
     * 随手拍详情
     * @param id 随手拍主键
     * @param userId 登录用户id
     * @return 详情内容
     */
    @PostMapping("detaileasyphoto")
    R detailEasyPhoto(@RequestParam("id") Long id, @RequestParam("userId")Long userId);
 
    /**
     * 分页查询微心愿
     * @param comActMicroWishVO 查询参数
     * @return 分页集合
     */
    @PostMapping("pagemicrowish")
    R pageMicroWish(@RequestBody ComActMicroWishVO comActMicroWishVO);
 
    /**
     * 心愿详情
     * @param id 查询主键
     * @param userId 登录用户id
     * @return 心愿内容
     */
    @PostMapping("detailmicrowish")
    R detailMicroWish(@RequestParam("id") Long id, @RequestParam("userId")Long userId);
 
    /**
     * 审核、分配、反馈心愿
     * @param comActMicroWishVO 具体操作
     * @return 操作结果
     */
    @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(@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();
 
 
}