xiejun
2023-08-30 82d09815c5efb03d448d6a5b74a5cbfe85063ebc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
package com.vci.ubcs.system.entity;
 
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
 
import java.io.Serializable;
import java.util.Objects;
 
/**
 * (UserPwdStrtategy)实体类
 *
 * @author Ludc
 * @since 2023-03-20 14:59:29
 */
 
@Data
@NoArgsConstructor
@TableName("pl_sys_user_pwdstrategy")
@ApiModel(value = "UserPwdStrtategy", description = "UserPwdStrtategy")
public class UserPwdstrategy implements Serializable {
 
    private static final long serialVersionUid = -556926788101426521L;
 
    /**
     * 主键
     */
    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty(value = "主键")
    @TableId(value = "ID", type = IdType.ASSIGN_ID)
    private Long id;
 
    /**
     * 用户id
     */
    @ApiModelProperty(value = "用户id")
    private Long userId;
 
    /**
     * 密码策略id
     */
    @ApiModelProperty(value = "密码策略id")
    @TableField(value = "PWDSTRATEGY_ID")
    private Long pwdstrategyId;
 
    public UserPwdstrategy(Long userId, Long pwdStrategyId) {
        this.userId = userId;
        this.pwdstrategyId = pwdStrategyId;
    }
 
    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (o == null || getClass() != o.getClass()) {
            return false;
        }
        UserPwdstrategy that = (UserPwdstrategy) o;
        return Objects.equals(id, that.id) && Objects.equals(userId, that.userId) && Objects.equals(pwdstrategyId, that.pwdstrategyId);
    }
 
    @Override
    public int hashCode() {
        return Objects.hash(id, userId, pwdstrategyId);
    }
 
 
 
}