init: first commit
This commit is contained in:
@@ -102,27 +102,6 @@ public class AutoInventoryController extends BaseController {
|
||||
return AjaxResult.success("设备[" + deviceId + "]连接已断开");
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 测试接口
|
||||
* @return
|
||||
*/
|
||||
// @GetMapping("/connect")
|
||||
// @ApiOperation("连接设备(CreateTcpConn)")
|
||||
// public AjaxResult connect() {
|
||||
// // 测试使用的固定参数
|
||||
// String deviceId = "1";
|
||||
// String ip = "192.168.1.88";
|
||||
// int port = 9090;
|
||||
//
|
||||
// boolean success = rfidService.connect(deviceId, ip, port);
|
||||
//
|
||||
// return success
|
||||
// ? AjaxResult.success("连接成功")
|
||||
// : AjaxResult.error("连接失败");
|
||||
// }
|
||||
|
||||
|
||||
/**
|
||||
* 查询设备连接状态
|
||||
*/
|
||||
|
||||
@@ -36,6 +36,7 @@ public class LoginController {
|
||||
String username = loginBody.getUsername();
|
||||
String password = loginBody.getPassword();
|
||||
|
||||
|
||||
LoginUser loginUser = loginService.loginWithoutCaptcha(username, password);
|
||||
|
||||
String token = tokenService.createToken(loginUser);
|
||||
|
||||
Reference in New Issue
Block a user