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.ComMediaTypeVO;
|
import com.panzhihua.common.model.vos.sanshuo.ComSanShuoEventVO;
|
import com.panzhihua.common.model.vos.sanshuo.ComSanShuoIndustryCenterVO;
|
import com.panzhihua.common.model.vos.sanshuo.ExpertShowVO;
|
import com.panzhihua.common.service.community.CommunityService;
|
import io.swagger.annotations.Api;
|
import io.swagger.annotations.ApiOperation;
|
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 = ComSanShuoEventVO.class )
|
@GetMapping("/expert/appletsList")
|
public R expertAppList(){
|
return communityService.expertAppList();
|
}
|
|
@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);
|
}
|
}
|