feat(ldap): 为LDAP用户DTO添加ID字段
- 引入IdUtil工具类用于生成雪花算法ID - 为LdapUserDTO类添加Long类型的id字段 - 设置默认值为IdUtil.getSnowflakeNextId()自动生成唯一标识
This commit is contained in:
parent
f25ecf1c54
commit
5fe5e50ac7
|
|
@ -1,5 +1,6 @@
|
|||
package com.nflg.wms.common.pojo.dto;
|
||||
|
||||
import cn.hutool.core.util.IdUtil;
|
||||
import cn.hutool.core.util.StrUtil;
|
||||
import lombok.Data;
|
||||
import lombok.experimental.Accessors;
|
||||
|
|
@ -8,6 +9,8 @@ import lombok.experimental.Accessors;
|
|||
@Accessors(chain = true)
|
||||
public class LdapUserDTO {
|
||||
|
||||
private Long id = IdUtil.getSnowflakeNextId();
|
||||
|
||||
/**
|
||||
* 用户名
|
||||
*/
|
||||
|
|
|
|||
Loading…
Reference in New Issue