mnd-bi;
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user