张天森
2022-09-23 7f26476bb092080e68dd0a17d4d299e70806f58a
springcloud_k8s_panzhihuazhihuishequ/applets/src/main/java/com/panzhihua/applets/api/ComSanShuoApi.java
@@ -2,6 +2,7 @@
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;
@@ -9,10 +10,7 @@
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
@@ -32,7 +30,7 @@
    }
    @ApiOperation(value = "小程序获取可选择行专家列表",response = ComSanShuoEventVO.class )
    @GetMapping("/industryCenter/appletsList")
    @GetMapping("/expert/appletsList")
    public R expertAppList(){
        return communityService.expertAppList();
    }
@@ -48,4 +46,22 @@
    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("专家风采列表")
    public R expertShowList(@RequestParam(value = "level",required = false)Integer level,@RequestParam(value = "id",required = false)Long id){
        return communityService.expertShowList(level,id);
    }
}