package com.taoke.autopay.entity;
|
|
import lombok.Builder;
|
import lombok.Data;
|
import lombok.experimental.Tolerate;
|
import org.springframework.data.annotation.Id;
|
import org.yeshi.utils.generater.mybatis.Column;
|
import org.yeshi.utils.generater.mybatis.Table;
|
|
import java.util.Date;
|
|
/**
|
* @author hxh
|
* @title: ClientInfo
|
* @description: TODO
|
* @date 2024/6/14 18:09
|
*/
|
@Data
|
@Builder
|
@Table("table_user")
|
public class ClientInfo {
|
// 管理员
|
public static final int RULE_ADMIN = 1;
|
//普通用户
|
public static final int RULE_COMMON = 0;
|
|
// 代付-默认值
|
public static final int CLIENT_TYPE_AGENT_PAYMENT = 0;
|
|
// 订单场景
|
public static final int CLIENT_TYPE_ORDER = 1;
|
|
@Tolerate
|
public ClientInfo(){
|
|
}
|
|
@Id
|
@Column(name ="id")
|
private Long id;
|
@Column(name ="name")
|
private String name;
|
@Column(name ="account")
|
private String account;
|
@Column(name ="pwd")
|
private String pwd;
|
@Column(name ="create_time")
|
private Date createTime;
|
@Column(name ="active_time")
|
private Date activeTime;
|
@Column(name ="rule")
|
private Integer rule;
|
@Column(name = "client_type")
|
private Integer clientType;
|
|
public static enum ClientType{
|
AGENT_PAYMENT(CLIENT_TYPE_AGENT_PAYMENT, "c"),
|
ORDER(CLIENT_TYPE_ORDER, "s");
|
private int value;
|
private String accountPrefix;
|
ClientType(int value, String accountPrefix){
|
this.value = value;
|
this.accountPrefix = accountPrefix;
|
}
|
public int getValue(){
|
return value;
|
}
|
|
public String getAccountPrefix(){
|
return accountPrefix;
|
}
|
}
|
|
}
|