6075 mqtt

This commit is contained in:
2025-11-05 17:55:59 +08:00
parent c4957aa3aa
commit 1dc3386284
19 changed files with 313 additions and 22 deletions

View File

@ -63,10 +63,6 @@ import java.util.Map;
@RequestMapping("/mp")
public class MPAuthController {
private final AppLoginService loginService;
private final SysRegisterService registerService;
private final ISysConfigService configService;
private final ISysTenantService tenantService;
private final ISysClientService clientService;
private final MPAuthService mpAuthService;
private final MPService mpService;
@ -74,7 +70,7 @@ public class MPAuthController {
@Operation(summary = "小程序登录授权")
@PostMapping(value = "/login")
public ResponseEntity<Object> login(@RequestBody AuthUserDto authUser, HttpServletRequest request) throws Exception {
public ResponseEntity<Object> login(@RequestBody AuthUserDto authUser) throws Exception {
Long phoneNumber = authUser.getPhoneNumber();
// 判断小程序用户是否存在,不存在创建

View File

@ -60,9 +60,9 @@ import java.util.function.Supplier;
@Service
public class MPAuthService {
private final ISysUserService userService;
private final AppUserService appUserService;
/**
* 小程序注册
*/
@ -128,6 +128,7 @@ public class MPAuthService {
return loginVo;
}
/**
* 构建登录用户
*/
@ -160,5 +161,4 @@ public class MPAuthService {
}
}

View File

@ -10,11 +10,8 @@ import org.springframework.stereotype.Service;
*
* @author Lion Li
*/
public interface MPService {
/**
* 获取小程序用户信息
*
@ -23,4 +20,5 @@ public interface MPService {
UserApp getMpUser(Long phoneNumber);
UserApp loadUserByUsername(String username);
}

View File

@ -8,5 +8,4 @@ package com.fuyuanshen.mp.service.impl;
public class MPAuthServiceImpl {
}

View File

@ -19,11 +19,9 @@ import org.springframework.stereotype.Service;
@RequiredArgsConstructor
public class MPServiceImpl implements MPService {
private final AppUserService appUserService;
/**
* 获取小程序用户信息
*