package com.boman.report.controller;

import com.boman.common.core.web.controller.BaseController;
import com.boman.domain.GenTable;
import com.boman.report.service.ITableService;
import org.jeecg.modules.jmreport.common.vo.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@RestController
@RequestMapping("/jmreport/table")
public class TableController extends BaseController {

    @Autowired
    private ITableService tableService;

    @PostMapping("/list")
    public Result<List<GenTable>> genList(@RequestBody GenTable genTable) {
        return Result.OK(tableService.selectList(genTable));
    }
}
