package com.sptg.third.api.entity.grid;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import lombok.Getter;
import lombok.Setter;

/**
 * @author zwx
 * @create 2020/11/28 20:26
 */
@Getter
@Setter
@TableName(value = "sys_grid_config")
public class GridConfig {

    @TableId(value = "l_id", type = IdType.AUTO)
    private Long id;

    /**
     * 租户ID
     */
    @TableField(value = "s_tenant_id")
    private String tenantId;

    /**
     * 用户名
     */
    @TableField(value = "s_user_name")
    private String userName;

    /**
     * 原始密码
     */
    @TableField(value = "s_orign_pwd")
    private String orignPwd;

    /**
     * 加密后的密码
     */
    @TableField(value = "s_password")
    private String password;

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

    /**
     * 客户端秘钥
     */
    @TableField(value = "s_client_secret")
    private String clientSecret;

    /**
     *
     */
    @TableField(value = "s_authorization")
    private String authorization;

    /**
     * 授权类型
     */
    @TableField(value = "s_grant_type")
    private String grantType;

    /**
     * 授权域（范围）
     */
    @TableField(value = "s_scope")
    private String scope;

    /**
     * 授权通证
     */
    @TableField(value = "s_token")
    private String token;

    /**
     * 网格地址
     */
    @TableField(value = "s_grid_host")
    private String gridHost;

    /**
     * 网格端口
     */
    @TableField(value = "s_grid_port")
    private String gridPort;

}
