package com.friday.custody.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

import static com.baomidou.mybatisplus.core.toolkit.StringPool.NULL;
import static com.friday.custody.common.CustodyContants.AUTHORIZATION_API;

/**
 * 
 * 
 * @author lyb
 * @email k0051582@gmail.com
 * @date 2022-01-05 14:07:22
 */
@Data
@TableName("temp_authorization_info")
public class TempAuthorizationInfoEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * id
	 */
	@TableId(value = "id",type = IdType.AUTO)
	private Integer id;
	/**
	 * 租户名(登记编号)
	 */
	private String tenantName;
	/**
	 * 账户联系人
	 */
	private String contactPerson;
	/**
	 * 托管人id：取自字典表：托管人
	 */
	private String trustNo;
	/**
	 * 授权账号
	 */
	private String appKey;
	/**
	 * 授权密码
	 */
	private String appSecret;
	/**
	 * 授权公司id
	 */
	private String companyId;
	/**
	 * 授权文件
	 */
	private String filePath;
	/**
	 * 版本 (默认值是api)
	 */
	private String version = AUTHORIZATION_API;
	/**
	 * 备注
	 */
	private String remark;
	/**
	 * 创建时间
	 */
	private Date createTime;
	/**
	 * 更新时间
	 */
	private Date updateTime;
	/**
	 * 是否删除(有效|0,无效|1)
	 */
	@TableLogic(value = "0", delval = NULL)
	private Integer isDeleted;

}
