export class LoginResult{
    public Code: number; // 返回码
    public Msg: string; // 返回信息
    public Token: string;
    public UserId: string;
    public NickName: string;
    public Name: string;
    public Expire: number;
    public Secret: string

    constructor(options: {
        Code?: number;
        Msg?: string
        Token?: string;
        UserId?: string;
        NickName?: string;
        Name?: string;
        Expire?: number;
        Secret?: string;
    } = {}) {
        this.Code = options.Code === undefined ? 0 : options.Code;
        this.Msg = options.Msg || '';
        this.Token = options.Token || '';
        this.UserId = options.UserId || '';
        this.NickName = options.NickName || '';
        this.Name = options.Name || '';
        this.Expire = options.Expire === undefined ? 0 : options.Expire;
        this.Secret = options.Secret || '';
    }
}
