package com.gkhy.assess.admin.controller.web; import com.gkhy.assess.common.annotation.RepeatSubmit; import com.gkhy.assess.common.api.CommonResult; import com.gkhy.assess.system.domain.SysAgency; import com.gkhy.assess.system.domain.SysExpertClassify; import com.gkhy.assess.system.domain.SysExpertInfo; import com.gkhy.assess.system.service.SysExpertInfoService; import io.swagger.annotations.Api; import io.swagger.annotations.ApiImplicitParam; import io.swagger.annotations.ApiImplicitParams; import io.swagger.annotations.ApiOperation; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.*; @Api(tags = "专家库-专家信息前端控制器") @RestController @RequestMapping("/system/expert_info") public class ExpertInfoController { @Autowired private SysExpertInfoService expertInfoService; @ApiOperation(value = "专家列表(分页)") @ApiImplicitParams({ @ApiImplicitParam(paramType = "query", name = "pageNum", dataType = "int", required = false, value = "当前页,默认1"), @ApiImplicitParam(paramType = "query", name = "pageSize", dataType = "int", required = false, value = "每页数目,默认10") }) @GetMapping("/list") public CommonResult exportInfoList(SysExpertInfo expertInfo){ return CommonResult.success(expertInfoService.exportInfoList(expertInfo)); } @RepeatSubmit @ApiOperation(value = "新增专家信息") @PostMapping("/add") public CommonResult addExpertInfo(@RequestBody SysExpertInfo expertInfo){ return CommonResult.success(expertInfoService.addExpertInfo(expertInfo)); } @RepeatSubmit @ApiOperation(value = "修改专家信息") @PutMapping("/mod") public CommonResult modExpertInfo(@RequestBody SysExpertInfo expertInfo){ return CommonResult.success(expertInfoService.modExpertInfo(expertInfo)); } @RepeatSubmit @ApiOperation(value = "删除专家信息") @DeleteMapping("/del/{expertId}") public CommonResult delExpertInfo(@PathVariable(value = "expertId") Long expertId){ return CommonResult.success(expertInfoService.delExpertInfo(expertId)); } @RepeatSubmit @ApiOperation(value = "批量删除专家信息") @DeleteMapping("/del/batch/{expertIds}") public CommonResult delExpertInfo(@PathVariable(value = "expertIds") Long[] expertIds){ return CommonResult.success(expertInfoService.delExpertInfoBatch(expertIds)); } }