mirror of
http://git.pig4cloud.com/pig/pigx.git
synced 2026-11-08 20:49:00 +08:00
✨ [密钥管理] 增加扩展字段 & 敏感数据脱敏
This commit is contained in:
1 parent
92e20524bc
commit
c54a9d92b9
3 files changed
+11
-1
No files matched your search
@@ -803,6 +803,7 @@ CREATE TABLE `sys_social_details` (
|
||||
`app_id` varchar(64) CHARACTER SET utf8mb4 DEFAULT NULL,
|
||||
`app_secret` varchar(64) CHARACTER SET utf8mb4 DEFAULT NULL,
|
||||
`redirect_url` varchar(128) CHARACTER SET utf8mb4 DEFAULT NULL,
|
||||
`ext` varchar(255) CHARACTER SET utf8mb4 DEFAULT NULL COMMENT '拓展字段',
|
||||
`create_by` varchar(64) CHARACTER SET utf8 NOT NULL DEFAULT ' ' COMMENT '创建人',
|
||||
`update_by` varchar(64) CHARACTER SET utf8 NOT NULL DEFAULT ' ' COMMENT '修改人',
|
||||
`create_time` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
|
||||
|
||||
+9
@@ -19,6 +19,7 @@ package com.pig4cloud.pigx.admin.api.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.*;
|
||||
import com.baomidou.mybatisplus.extension.activerecord.Model;
|
||||
import com.pig4cloud.pigx.common.core.sensitive.Sensitive;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
@@ -63,6 +64,7 @@ public class SysSocialDetails extends Model<SysSocialDetails> {
|
||||
/**
|
||||
* appid
|
||||
*/
|
||||
@Sensitive(prefixNoMaskLen = 4, suffixNoMaskLen = 4)
|
||||
@NotBlank(message = "账号不能为空")
|
||||
@ApiModelProperty(value = "appId")
|
||||
private String appId;
|
||||
@@ -70,6 +72,7 @@ public class SysSocialDetails extends Model<SysSocialDetails> {
|
||||
/**
|
||||
* app_secret
|
||||
*/
|
||||
@Sensitive(prefixNoMaskLen = 9, suffixNoMaskLen = 9)
|
||||
@NotBlank(message = "密钥不能为空")
|
||||
@ApiModelProperty(value = "app secret")
|
||||
private String appSecret;
|
||||
@@ -80,6 +83,12 @@ public class SysSocialDetails extends Model<SysSocialDetails> {
|
||||
@ApiModelProperty(value = "回调地址")
|
||||
private String redirectUrl;
|
||||
|
||||
/**
|
||||
* 拓展字段
|
||||
*/
|
||||
@ApiModelProperty(value = "拓展字段")
|
||||
private String ext;
|
||||
|
||||
/**
|
||||
* 创建人
|
||||
*/
|
||||
|
||||
+1
-1
@@ -145,7 +145,7 @@ public class ConnectServiceImpl implements ConnectService {
|
||||
|
||||
// 用户信息
|
||||
UserDTO userDTO = new UserDTO();
|
||||
userDTO.setDeptId(Convert.toLong(deptInfo.get("dept_id")));
|
||||
userDTO.setDeptId(deptInfo.getLong("dept_id"));
|
||||
userDTO.setAvatar(userObj.getStr("avatar"));
|
||||
userDTO.setUsername(userObj.getStr("mobile"));
|
||||
userDTO.setPhone(userObj.getStr("mobile"));
|
||||
|
||||
Reference in new issue
Block a user