package com.gkhy.exam.admin.controller.system;
|
|
import com.gkhy.exam.common.annotation.RepeatSubmit;
|
import com.gkhy.exam.common.api.CommonResult;
|
import com.gkhy.exam.system.domain.InformationPlatform;
|
import com.gkhy.exam.system.domain.SysClauseManagement;
|
import com.gkhy.exam.system.service.InformationPlatformService;
|
import com.gkhy.exam.system.service.SysClauseManagementService;
|
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.validation.annotation.Validated;
|
import org.springframework.web.bind.annotation.*;
|
|
@Api(tags = "建设平台接口前端控制器")
|
@RestController
|
@RequestMapping("/system/informationPlatform")
|
public class InformationPlatformController {
|
@Autowired
|
private InformationPlatformService informationPlatformService;
|
|
@RepeatSubmit
|
@ApiOperation(value = "新增编辑建设平台")
|
@PostMapping("/saveInformationPlatform")
|
public CommonResult saveInformationPlatform(@RequestBody @Validated InformationPlatform informationPlatform){
|
return CommonResult.success(informationPlatformService.saveInformationPlatform(informationPlatform));
|
}
|
|
|
@ApiOperation(value = "获取建设平台")
|
@ApiImplicitParams({
|
@ApiImplicitParam(paramType = "query", name = "companyId", dataType = "long", required = false, value = "companyId"),
|
})
|
@GetMapping("/getInformationPlatforms")
|
public CommonResult getInformationPlatforms(@RequestParam(value = "companyId",required = false) Long companyId){
|
return CommonResult.success(informationPlatformService.getInformationPlatforms(companyId));
|
}
|
|
@ApiOperation(value = "删除建设平台")
|
@ApiImplicitParams({
|
@ApiImplicitParam(paramType = "query", name = "id", dataType = "long", required = true, value = "id"),
|
})
|
@GetMapping("/delInformationPlatform")
|
public CommonResult delInformationPlatform(@RequestParam(value = "id",required = true) Long id) {
|
return CommonResult.success(informationPlatformService.delInformationPlatform(id));
|
}
|
|
}
|