Signup APi
parent
fc07a8e88f
commit
da14c7c846
@ -0,0 +1,26 @@
|
||||
package com.mfsys.common.configuration.exception;
|
||||
|
||||
import com.mfsys.common.configuration.constant.ERRCode;
|
||||
|
||||
|
||||
public class UserAlreadyExistsException extends ApplicationException{
|
||||
|
||||
private static final String POR_ORGA_CODE = "DEFAULT";
|
||||
|
||||
|
||||
public UserAlreadyExistsException() {
|
||||
super(POR_ORGA_CODE,ERRCode.USER_ALREADY_EXISTS);
|
||||
}
|
||||
|
||||
public UserAlreadyExistsException(Throwable cause) {
|
||||
super(POR_ORGA_CODE,ERRCode.USER_ALREADY_EXISTS, cause);
|
||||
}
|
||||
|
||||
public UserAlreadyExistsException(String message) {
|
||||
super(POR_ORGA_CODE,ERRCode.USER_ALREADY_EXISTS, message);
|
||||
}
|
||||
|
||||
public UserAlreadyExistsException(String message, Throwable cause) {
|
||||
super(POR_ORGA_CODE,ERRCode.USER_ALREADY_EXISTS, message, cause);
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,15 @@
|
||||
package com.mfsys.aconnect.security.dto;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class SignupRequest {
|
||||
private String username;
|
||||
private String password;
|
||||
private String email;
|
||||
private String fullName;
|
||||
}
|
||||
@ -0,0 +1,14 @@
|
||||
package com.mfsys.aconnect.security.dto;
|
||||
|
||||
import com.mfsys.aconnect.usermanagement.model.User;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class SignupResponse {
|
||||
private boolean success;
|
||||
private String message;
|
||||
}
|
||||
Loading…
Reference in New Issue