| | |
| | | package com.vci.ubcs.code.controller; |
| | | |
| | | |
| | | import com.vci.ubcs.code.service.CodeSerialAlgorithmServiceI; |
| | | import com.vci.starter.web.pagemodel.DataGrid; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.vci.ubcs.code.vo.pagemodel.CodeAllCodeVO; |
| | | import com.vci.ubcs.code.vo.pagemodel.CodeSerialAlgorithmVO; |
| | | import io.swagger.annotations.Api; |
| | | import lombok.AllArgsConstructor; |
| | | import org.springblade.core.boot.ctrl.BladeController; |
| | | import org.springblade.core.tool.api.R; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import com.vci.ubcs.code.service.ICodeSerialAlgorithmService; |
| | | |
| | | /** |
| | | * 流水算法控制器 |
| | | * @author weidy |
| | | * @date 2022-2-17 |
| | | * 全部码值 控制器 |
| | | * |
| | | * @author ludc |
| | | * @since 2023-04-03 |
| | | */ |
| | | @RestController |
| | | @AllArgsConstructor |
| | | @RequestMapping("/codeSerialAlgorithmController") |
| | | public class CodeSerialAlgorithmController { |
| | | @Api(value = "自定义流水", tags = "自定义流水算法") |
| | | public class CodeSerialAlgorithmController extends BladeController { |
| | | /** |
| | | * 算法服务 |
| | | */ |
| | | @Autowired |
| | | private ICodeSerialAlgorithmService algorithmService; |
| | | |
| | | /** |
| | | * 算法服务 |
| | | */ |
| | | @Autowired |
| | | private CodeSerialAlgorithmServiceI algorithmService; |
| | | |
| | | /** |
| | | * 算法的列表 |
| | | * @return 算法的信息 |
| | | */ |
| | | @GetMapping("/gridCodeSerialAlgorithm") |
| | | public DataGrid<CodeSerialAlgorithmVO> gridCodeSerialAlgorithm(){ |
| | | return algorithmService.gridSerialAlgorithm(); |
| | | } |
| | | /** |
| | | * 算法的列表 |
| | | * @return 算法的信息 |
| | | */ |
| | | @GetMapping("/gridCodeSerialAlgorithm") |
| | | public R<IPage<CodeSerialAlgorithmVO>> gridCodeSerialAlgorithm(){ |
| | | IPage<CodeSerialAlgorithmVO> pages= algorithmService.gridSerialAlgorithm(); |
| | | return R.data(pages); |
| | | } |
| | | } |