feat: 添加完善oss
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
package com.schisandra.auth.application.dto;
|
||||
|
||||
import com.mybatisflex.annotation.Column;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
@@ -19,15 +18,6 @@ public class SchisandraAuthUserDTO implements Serializable {
|
||||
* id
|
||||
*/
|
||||
private Long id;
|
||||
/**
|
||||
* uuid
|
||||
*/
|
||||
private String uuid;
|
||||
|
||||
/**
|
||||
* source
|
||||
*/
|
||||
private String source;
|
||||
/**
|
||||
* 用户名
|
||||
*/
|
||||
|
@@ -1,6 +1,5 @@
|
||||
package com.schisandra.auth.domain.bo;
|
||||
|
||||
import com.mybatisflex.annotation.Column;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
@@ -19,15 +18,6 @@ public class SchisandraAuthUserBO implements Serializable {
|
||||
*
|
||||
*/
|
||||
private Long id;
|
||||
/**
|
||||
* uuid
|
||||
*/
|
||||
private String uuid;
|
||||
|
||||
/**
|
||||
* source
|
||||
*/
|
||||
private String source;
|
||||
/**
|
||||
*
|
||||
*/
|
||||
|
@@ -7,7 +7,6 @@ import com.alibaba.fastjson.JSONObject;
|
||||
import com.google.gson.Gson;
|
||||
import com.schisandra.auth.common.entity.Result;
|
||||
import com.schisandra.auth.common.enums.IsDeletedFlagEnum;
|
||||
import com.schisandra.auth.common.enums.OauthType;
|
||||
import com.schisandra.auth.common.enums.UserRoleEnum;
|
||||
import com.schisandra.auth.common.redis.RedisUtil;
|
||||
import com.schisandra.auth.domain.bo.SchisandraAuthUserBO;
|
||||
@@ -95,7 +94,6 @@ public class SchisandraAuthUserDomainServiceImpl implements SchisandraAuthUserDo
|
||||
@Override
|
||||
public Boolean register(SchisandraAuthUserBO schisandraAuthUserBO) {
|
||||
SchisandraAuthUser authUser = SchisandraAuthUserBOConverter.INSTANCE.convertBOToEntity(schisandraAuthUserBO);
|
||||
authUser.setSource(OauthType.SYSTEM.getType());
|
||||
Boolean insert = schisandraAuthUserService.insert(authUser);
|
||||
if (insert) {
|
||||
SchisandraAuthUserRoleBO schisandraAuthUserRoleBO = new SchisandraAuthUserRoleBO();
|
||||
|
@@ -1,11 +1,9 @@
|
||||
package com.schisandra.auth.infra.basic.entity;
|
||||
|
||||
|
||||
import com.mybatisflex.annotation.Column;
|
||||
import com.mybatisflex.annotation.Id;
|
||||
import com.mybatisflex.annotation.KeyType;
|
||||
import com.mybatisflex.annotation.Table;
|
||||
import com.mybatisflex.annotation.*;
|
||||
import com.mybatisflex.core.keygen.KeyGenerators;
|
||||
import com.mybatisflex.core.mask.Masks;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
@@ -27,18 +25,6 @@ public class SchisandraAuthUser implements Serializable {
|
||||
@Id(keyType=KeyType.Generator, value= KeyGenerators.flexId)
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* uuid
|
||||
*/
|
||||
@Column(value = "uuid")
|
||||
private String uuid;
|
||||
|
||||
/**
|
||||
* source
|
||||
*/
|
||||
@Column(value = "source")
|
||||
private String source;
|
||||
|
||||
@Column(value = "user_name")
|
||||
private String userName;
|
||||
|
||||
@@ -59,12 +45,14 @@ public class SchisandraAuthUser implements Serializable {
|
||||
*
|
||||
*/
|
||||
@Column("phone")
|
||||
@ColumnMask(Masks.FIXED_PHONE)
|
||||
private String phone;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
@Column(value = "password")
|
||||
@ColumnMask(Masks.PASSWORD)
|
||||
private String password;
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user