添加业务模块
This commit is contained in:
@@ -37,7 +37,6 @@ public class TestApiController extends BaseController {
|
||||
/**
|
||||
* 查询接口列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('test:api:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(TestApi testApi) {
|
||||
startPage();
|
||||
@@ -48,7 +47,6 @@ public class TestApiController extends BaseController {
|
||||
/**
|
||||
* 导出接口列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('test:api:export')")
|
||||
@Log(title = "接口", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, TestApi testApi) {
|
||||
@@ -60,7 +58,6 @@ public class TestApiController extends BaseController {
|
||||
/**
|
||||
* 获取接口详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('test:api:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id) {
|
||||
return success(testApiService.selectTestApiById(id));
|
||||
@@ -69,7 +66,6 @@ public class TestApiController extends BaseController {
|
||||
/**
|
||||
* 新增接口
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('test:api:add')")
|
||||
@Log(title = "接口", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody TestApi testApi) {
|
||||
@@ -79,7 +75,6 @@ public class TestApiController extends BaseController {
|
||||
/**
|
||||
* 修改接口
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('test:api:edit')")
|
||||
@Log(title = "接口", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody TestApi testApi) {
|
||||
@@ -89,7 +84,6 @@ public class TestApiController extends BaseController {
|
||||
/**
|
||||
* 删除接口
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('test:api:remove')")
|
||||
@Log(title = "接口", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids) {
|
||||
|
||||
@@ -40,7 +40,7 @@
|
||||
<where>
|
||||
<if test="name != null and name != ''">and name like concat('%', #{name}, '%')</if>
|
||||
<if test="method != null and method != ''">and method = #{method}</if>
|
||||
<if test="uri != null and uri != ''">and uri = #{uri}</if>
|
||||
<if test="uri != null and uri != ''">and uri = like concat('%', #{uri}, '%')</if>
|
||||
<if test="header != null and header != ''">and header = #{header}</if>
|
||||
<if test="param != null and param != ''">and param = #{param}</if>
|
||||
<if test="body != null and body != ''">and body = #{body}</if>
|
||||
|
||||
Reference in New Issue
Block a user