package com.ruoyi.web.controller.api;
|
|
|
import com.ruoyi.common.basic.PageInfo;
|
import com.ruoyi.common.core.domain.R;
|
import com.ruoyi.system.model.TFlowManagement;
|
import com.ruoyi.system.query.TFlowManagementQuery;
|
import com.ruoyi.system.service.TFlowManagementService;
|
import io.swagger.annotations.ApiOperation;
|
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.security.access.prepost.PreAuthorize;
|
import org.springframework.web.bind.annotation.PostMapping;
|
import org.springframework.web.bind.annotation.RequestBody;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
/**
|
* <p>
|
* 流水管理 前端控制器
|
* </p>
|
*
|
* @author xiaochen
|
* @since 2025-01-17
|
*/
|
@RestController
|
@RequestMapping("/t-flow-management")
|
public class TFlowManagementController {
|
@Autowired
|
private TFlowManagementService flowService;
|
/**
|
* 获取流水列表
|
*/
|
@PreAuthorize("@ss.hasPermi('system:flow:list')")
|
@ApiOperation(value = "获取流水列表")
|
@PostMapping("/list")
|
public R<PageInfo<TFlowManagement>> list(@RequestBody TFlowManagementQuery query) {
|
return R.ok(flowService.pageList(query));
|
}
|
|
|
}
|