This commit is contained in:
王奎兴
2026-04-30 14:57:13 +08:00
parent 7e00ca52c9
commit 0b141796a1
13 changed files with 671 additions and 0 deletions
@@ -0,0 +1,45 @@
package com.mhd.bi.interfaces.facadeApi.testTable;
import com.mhd.bi.domain.testTable.entity.TestTable;
import com.mhd.bi.domain.testTable.repository.facade.TestTableService;
import com.mhd.common.core.web.controller.BaseController;
import com.mhd.common.core.web.domain.AjaxResult;
import com.mhd.common.log.annotation.Log;
import com.mhd.common.log.enums.BusinessType;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import java.util.List;
@Api(tags = "test")
@Slf4j
@RestController
@RequestMapping("/testTableApi")
@CrossOrigin
public class TestTableApi extends BaseController {
@Autowired
private TestTableService testTableService;
@ApiOperation("查询用户列表")
@GetMapping("/test")
public AjaxResult test(String txt) {
String result = txt;
return AjaxResult.success(result);
}
@ApiOperation("查询用户列表")
@GetMapping("/list")
public AjaxResult list(String txt) {
List<TestTable> list = testTableService.list();
return AjaxResult.success(list);
}
}