fangshiba #1

Merged
FangShiBa merged 5 commits from fangshiba into master 2023-12-12 17:17:55 +08:00
3 changed files with 37 additions and 1 deletions

View File

@ -2,6 +2,6 @@ package com.bwie.common.pojo;
public class Fang {
public void Fang(){
System.out.println("方十八帅比");
System.out.println("方十八是大帅比");
}
}

View File

@ -58,6 +58,7 @@ public class AuthFilter implements GlobalFilter, Ordered {
// 不放行 提示错误信息
return GatewayUtils.errorResponse(exchange, "token不能为空", HttpStatus.UNAUTHORIZED);
}
System.out.println("131");
try {
// token 合法性性
JwtUtils.parseToken(token);

View File

@ -0,0 +1,35 @@
package com.bwie.stopCar.controller;
import com.bwie.common.result.Result;
import com.bwie.stopCar.service.StopCarService;
import lombok.extern.log4j.Log4j2;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import javax.servlet.http.HttpServletRequest;
/**
* @author FangShiBa
* @date 2023/12/12
* @apiNote
*/
@Log4j2
@RestController
@RequestMapping("/stopCar")
public class StopCarController {
@Autowired
private HttpServletRequest request;
@Autowired
private StopCarService service;
//扫码停车(扫码后跳转等车界面,输入车牌)点击确认后修改状态并记录时间判断是否为固定车辆(数据库登记)
//如果是,信息入库而后开闸,不是,添加信息,而后开闸
@PostMapping("/stopCar")
public Result stopCar(@RequestBody VOCar )
}