新增 用户与车牌绑定关系表与实体类等

This commit is contained in:
DESKTOP-D9QDT1P\JS-ZZA
2023-03-06 13:52:41 +08:00
parent 5581be0088
commit aa0af9996e
9 changed files with 342 additions and 3 deletions

View File

@@ -196,7 +196,7 @@ public class MemberController extends BaseController {
/**
* 通过 memberId 查询用户个人基本信息
* 通过 memberId 查询用户绑定车牌信息
* http://localhost:8080/uniapp/member/selectInfoByMemberId
*
* @return
@@ -225,10 +225,12 @@ public class MemberController extends BaseController {
* @return
*/
@PostMapping("/memberBindingCarNo")
public RestApiResponse<?> memberBindingCarNo(@RequestBody BindingCarNoDTO dto){
public RestApiResponse<?> memberBindingCarNo(HttpServletRequest request, @RequestBody BindingCarNoDTO dto){
logger.info("用户绑定车牌号 param:{}", JSONObject.toJSONString(dto));
RestApiResponse<?> response = null;
try {
String memberId = getMemberIdByAuthorization(request);
dto.setMemberId(memberId);
memberService.memberBindingCarNo(dto);
response = new RestApiResponse<>();
}catch (Exception e){