“djh”
5 天以前 5ca4ab349909030e77354832287f2d6a2c80e119
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
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));
    }
 
}