feat: admin login userlogin config
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
package com.afe.g3fo.admin.dto.req;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* @Author:fengjianhuang
|
||||
* @Package:com.afe.g3fo.admin.dto.req
|
||||
* @Project:g3fo-admin
|
||||
* @name:AdminLoginRequest
|
||||
* @Date:2023/5/26 15:02
|
||||
* @Filename:AdminLoginRequest
|
||||
*/
|
||||
@Data
|
||||
public class AdminLoginRequest implements Serializable {
|
||||
private String userName;
|
||||
private String loginPassword;
|
||||
private String loginChannel;
|
||||
}
|
||||
@@ -0,0 +1,63 @@
|
||||
package com.afe.g3fo.admin.dto.req;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import jakarta.validation.constraints.NotBlank;
|
||||
import jakarta.validation.constraints.NotNull;
|
||||
import lombok.Data;
|
||||
import lombok.NonNull;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
* @Author:jim.feng
|
||||
* @name:CreateUserRequest
|
||||
* @Date:2023/6/2 16:15
|
||||
*/
|
||||
@Data
|
||||
public class CreateUserRequest {
|
||||
@Schema(description = "user ID")
|
||||
@NotBlank
|
||||
private String userName;
|
||||
@Schema(description = "chinese name")
|
||||
@NotBlank
|
||||
private String localName;
|
||||
@Schema(description = "english name")
|
||||
@NotBlank
|
||||
private String engName;
|
||||
|
||||
private Integer userType;
|
||||
@Schema(description = "参考用户配置接口")
|
||||
@NotNull
|
||||
private Integer userStatus;
|
||||
|
||||
private String title;
|
||||
@Schema(description = "参考用户配置接口")
|
||||
private Integer branch;
|
||||
@Schema(description = "参考用户配置接口")
|
||||
private Integer department;
|
||||
|
||||
private String mobileNo;
|
||||
|
||||
private String email;
|
||||
|
||||
private LocalDateTime expiryDate;
|
||||
|
||||
|
||||
private Integer tradeOddlotFlg;
|
||||
|
||||
private BigDecimal maxClientPct;
|
||||
|
||||
private BigDecimal maxDeductPct;
|
||||
|
||||
private BigDecimal cnySingleOrderLimit;
|
||||
|
||||
private BigDecimal cnySingleOverrideLimit;
|
||||
@Schema(description = "参考用户配置接口")
|
||||
private Integer otpLogon;
|
||||
@Schema(description = "参考用户配置接口")
|
||||
private Integer otpChgpwd;
|
||||
@Schema(description = "参考用户配置接口")
|
||||
private Integer otpMethod;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
package com.afe.g3fo.admin.dto.resp;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* @Author:jim.feng
|
||||
* @name:AdminLoginRespond
|
||||
* @Date:2023/5/26 16:38
|
||||
*/
|
||||
@Data
|
||||
public class AdminLoginRespond implements Serializable {
|
||||
private String userName;
|
||||
|
||||
private String loginChannel;
|
||||
|
||||
private Long userId;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,34 @@
|
||||
package com.afe.g3fo.admin.enums;
|
||||
|
||||
import com.afe.g3fo.framework.exception.IException;
|
||||
|
||||
/**
|
||||
* @Author:jim.feng
|
||||
* @name:AdminEnum
|
||||
* @Date:2023/5/30 9:36
|
||||
*/
|
||||
public enum AdminEnum implements IException {
|
||||
|
||||
USERORPASSWORDERROR(15000,"");
|
||||
|
||||
|
||||
|
||||
private Integer errorId;
|
||||
|
||||
/** 错误消息 */
|
||||
private String message;
|
||||
AdminEnum(Integer errorId, String message) {
|
||||
this.errorId = errorId;
|
||||
this.message = message;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Integer getErrorId() {
|
||||
return errorId;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getMessage() {
|
||||
return message;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
package com.afe.g3fo.admin.facade;
|
||||
|
||||
import com.afe.g3fo.admin.dto.req.AdminLoginRequest;
|
||||
import com.afe.g3fo.admin.dto.resp.AdminLoginRespond;
|
||||
import com.afe.g3fo.framework.common.Result;
|
||||
|
||||
/**
|
||||
* @Author:fengjianhuang
|
||||
* @Package:com.afe.g3fo.admin.facade
|
||||
* @Project:g3fo-admin
|
||||
* @name:AdminLoginFacade
|
||||
* @Date:2023/5/26 15:01
|
||||
* @Filename:AdminLoginFacade
|
||||
*/
|
||||
public interface AdminLoginFacade {
|
||||
|
||||
/** admin登录
|
||||
* @param adminLoginRequest
|
||||
* @return
|
||||
*/
|
||||
Result<AdminLoginRespond> adminLogin(AdminLoginRequest adminLoginRequest) ;
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user