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;
|
||||||
|
}
|
||||||
@ -1,32 +1,4 @@
|
|||||||
spring.application.name = aconnect
|
|
||||||
app.base.uri=aconnect
|
|
||||||
app.db.dbname = aconnect
|
|
||||||
app.db.dbuser=${CMB_SQL_DB_USER}
|
|
||||||
app.db.dbpassword=${CMB_SQL_DB_PASSWORD}
|
|
||||||
app.db.url=${CMB_SQL_DB_MACHINE_IP}
|
|
||||||
app.server.timezone=${APP_SERVER_TIMEZONE}
|
|
||||||
spring.datasource.username = ${app.db.dbuser}
|
|
||||||
spring.datasource.password = ${app.db.dbpassword}
|
|
||||||
spring.datasource.url = jdbc:mysql://${app.db.url}/${app.db.dbname}?createDatabaseIfNotExist=true&serverTimezone=${app.server.timezone}&useLegacyDatetimeCode=false&useUnicode=yes&characterEncoding=UTF-8&characterSetResults=UTF-8
|
|
||||||
|
|
||||||
spring.jpa.properties.hibernate.connection.characterEncoding=utf-8
|
|
||||||
spring.jpa.properties.hibernate.connection.CharSet=utf-8
|
|
||||||
spring.jpa.properties.hibernate.connection.useUnicode=true
|
|
||||||
spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MySQLDialect
|
|
||||||
spring.jpa.hibernate.ddl-auto=update
|
|
||||||
|
|
||||||
jwt.secret = mySecretKey123456789012345678901234567890
|
|
||||||
jwt.expiration = 86400000
|
|
||||||
jwt.refresh-expiration= 604800000
|
|
||||||
|
|
||||||
# User-specific security URLs for uat environment
|
|
||||||
#app.security.user.01.uri=http://uat-server-01:9090/security/auth/user
|
|
||||||
#app.security.user.02.uri=http://uat-server-02:9090/security/auth/user
|
|
||||||
#app.security.user.03.uri=http://uat-server-03:9090/security/auth/user
|
|
||||||
#app.security.user.admin.uri=http://uat-admin-server:9090/security/auth/user
|
|
||||||
#app.security.user.qa.uri=http://uat-qa-server:9090/security/auth/user
|
|
||||||
|
|
||||||
app.deposit.uri=${CMB_DEPOSIT_SERVER_URL}
|
app.deposit.uri=${CMB_DEPOSIT_SERVER_URL}
|
||||||
app.generalledger.uri=${CMB_GL_SERVER_URL}
|
app.generalledger.uri=${CMB_GL_SERVER_URL}
|
||||||
app.organization.uri=${CMB_ORGA_CODE}
|
app.organization.uri=${CMB_ORGA_CODE}
|
||||||
app.security.uri=${CMB_SECURITY_SERVER_URL}/security/auth/user
|
app.security.uri=${CMB_SECURITY_SERVER_URL}/security/auth/user
|
||||||
|
|||||||
Loading…
Reference in New Issue