mitao
2025-02-21 31573d6180d15ef65ed0df9c2732495f40b12663
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
package com.panzhihua.applets.api;
 
import com.panzhihua.common.controller.BaseController;
import com.panzhihua.common.model.vos.R;
import com.panzhihua.common.model.vos.sanshuo.*;
import com.panzhihua.common.service.community.CommunityService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.*;
 
import javax.annotation.Resource;
 
@Slf4j
@RestController
@RequestMapping("sanshuo")
@Api(tags = "三说会堂小程序接口")
public class ComSanShuoApi extends BaseController {
 
    @Resource
    private CommunityService communityService;
 
    @ApiOperation(value = "小程序获取可选择行业分中心列表",response = ComSanShuoIndustryCenterVO.class )
    @GetMapping("/industryCenter/appletsList")
    public R industryCenterAppList(){
        return communityService.industryCenterAppList();
    }
 
    @ApiOperation(value = "小程序获取可选择行专家列表",response = ComSanshuoExpertVO.class )
    @GetMapping("/expert/appletsList")
    public R expertAppList(@RequestParam (value = "type",required = false)Integer type,@RequestParam(value = "id",required = false)Long id){
        return communityService.expertAppList(type,id);
    }
 
    @ApiOperation(value = "专家风采",response = ExpertShowVO.class)
    @GetMapping("/expert/expertShow")
    public R expertShow(){
        return communityService.expertShow();
    }
 
    @ApiOperation("专家详情")
    @GetMapping("/expert/{id}")
    public R expertDetail(@PathVariable("id")Long id){
        return communityService.expertDetail(id);
    }
 
    @ApiOperation(value = "事件类型列表",response = ComMediaTypeVO.class)
    @GetMapping("/mediateType/list")
    public R mediateTypeList(){
        return communityService.eventAppList();
    }
 
    @ApiOperation(value = "业务中心详情",response = ComSanShuoIndustryCenterVO.class)
    @GetMapping("/industryCenter/detail")
    public R industryCenterDetail(@RequestParam("id") Long id){
        return communityService.industryCenterDetail(id);
    }
 
    @GetMapping("/expert/expertShowList")
    @ApiOperation(value = "专家风采列表",response = ComSanshuoExpertVO.class)
    public R expertShowList(@RequestParam(value = "level",required = false) @ApiParam("对应的level,1三说会堂2行业分中心3街道4社区")Integer level,
                            @RequestParam(value = "id",required = false) @ApiParam("id,level=1不传2行业分中心id 3街道id 4社区id")Long id){
        return communityService.expertShowList(level,id);
    }
 
 
    @ApiOperation("专家详情展示")
    @GetMapping("/expert/detail")
    public R expertInfo(@RequestParam("id")Long id){
        return communityService.expertShowList(7,id );
    }
}