package com.gkhy.exam.admin.controller.web;
|
|
|
import com.gkhy.exam.common.annotation.RepeatSubmit;
|
import com.gkhy.exam.common.api.CommonResult;
|
import com.gkhy.exam.system.domain.ProductService;
|
import com.gkhy.exam.system.service.ProductServiceService;
|
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.*;
|
|
/**
|
* <p>
|
* 产品服务实现过程 前端控制器
|
* </p>
|
*
|
* @author hh
|
* @since 2025-12-02 16:59:08
|
*/
|
@Api(tags = "产品服务实现过程")
|
@RestController
|
@RequestMapping("/system/productService")
|
public class ProductServiceController {
|
|
@Autowired
|
private ProductServiceService productServiceService;
|
|
@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"),
|
@ApiImplicitParam(paramType = "query", name = "companyId", dataType = "int", required = false, value = "公司id"),
|
@ApiImplicitParam(paramType = "query", name = "year", dataType = "String", required = false, value = "年份"),
|
|
})
|
@GetMapping("/selectProductServiceList")
|
public CommonResult selectProductServiceList(ProductService service){
|
return CommonResult.success(productServiceService.selectProductServiceList(service));
|
}
|
@RepeatSubmit
|
@ApiOperation(value = "新增编辑产品服务实现过程")
|
@PostMapping("/saveProductService")
|
public CommonResult saveProductService(@RequestBody @Validated ProductService service){
|
return productServiceService.saveProductService(service);
|
}
|
|
@ApiOperation(value = "删除产品服务实现过程")
|
@ApiImplicitParams({
|
@ApiImplicitParam(paramType = "query", name = "id", dataType = "int", required = true, value = "id"),
|
})
|
@GetMapping("/delProductService")
|
public CommonResult delProductService(@RequestParam Long id){
|
return productServiceService.delProductService(id);
|
}
|
|
}
|