新增用户注册相关代码

This commit is contained in:
虚空之主 2024-10-09 16:29:04 +08:00
parent eac704659a
commit 808062d884
4 changed files with 2 additions and 2 deletions

View File

@ -66,5 +66,4 @@ public class UserController {
public ResponseEntity registerUser(@RequestBody ParamUserAdd userAddParam){
return ResponseEntity.ok(userService.registerUser(userAddParam));
}
}

View File

@ -4,6 +4,7 @@ import lombok.Data;
import java.time.LocalDateTime;
@Data
public class LogCaptcha {
private Long id;

View File

@ -17,4 +17,5 @@ public interface UserService {
ResponseResult addUser(ParamUserAdd userAddParam);
ResponseResult registerUser(ParamUserAdd userAddParam);
}

View File

@ -219,7 +219,6 @@ public class UserServiceImpl implements UserService {
else
return ResponseResult.error("注册失败");
}
// 方法
public UserInfo getUserByAccount(String username){
return userMapper.getUserByAccount(username);