Mevan导包:
knife4j可以通过访问本地页面,实现对项目通达信交易接口 破解,接口的管理:
这样我们就不需要用postman软件调用通达信交易接口 破解,接口了。
然后再后端接口上加上注解:
package com.quxiao.controller;
import com.quxiao.pojo.SysRole;
import com.quxiao.service.SysRoleServiceImpl;
import com.quxiao.util.Result;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import java.util.List;
/**
* @program: yghtgl
* @author: quxiao
* @create: 2023-06-11 09:45
**/
@Api(tags = "角色管理接口")
@RestController
@RequestMapping("/admin/system/sysRole")
public class SysRoleController {
@Autowired
SysRoleServiceImpl service;
//查询all记录
@ApiOperation(value = "查询all记录")
@GetMapping("sysRoleSelAll")
public Result<List<SysRole>> sysRoleSelAll() {
return Result.ok(service.list());
}
//删除sysRoleDel
@ApiOperation(value = "删除sysRoleDel")
@DeleteMapping("remove/{id}")
public Result<Boolean> sysRoleDel(@PathVariable Long id) {
boolean b = service.removeById(id);
if (b) {
return Result.ok(b);
}
return Result.fail(b);
}
}
文章为作者独立观点,不代表股票交易接口观点