package com.css.txw.sso.pojo.domain.oauth2;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.css.ggzc.framework.mybatis.core.dataobject.BaseDO;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

/**
 * OAuth2 授权码 DO
 *
 * @author 芋道源码
 */
@TableName(value = "txw_sso_code", autoResultMap = true)
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
public class OAuth2CodeDO extends BaseDO {

    /**
     * UUID||uuid
     */
    @TableId(value = "uuid")
    private String uuid;

    /**
     * 用户UUID
     */
    @TableField(value = "yh_uuid")
    private String yhUuid;

    /**
     * 授权码||授权码
     */
    @TableField(value = "sqm")
    private String sqm;

    /**
     * 客户端ID
     */
    @TableField(value = "clientid")
    private String clientid;

    /**
     * 授权内容||授权内容
     */
    @TableField(value = "sqnr")
    private String sqnr;

    /**
     * 挂起时间
     */
    @TableField(value = "gqsj")
    private LocalDateTime gqsj;

    /**
     * 重定向地址||重定向地址
     */
    @TableField(value = "cdxdz")
    private String cdxdz;

    /**
     * 有效标志
     */
    @TableField(value = "rzzt_1")
    private String rzzt;

    @TableField(value = "access_token")
    private String accessToken;

}
