package cn.quantgroup.xyqb.model.session;

import cn.quantgroup.xyqb.model.UserRet;
import lombok.Data;

/**
 * Created by Miraculous on 2016/12/30.
 */
@Data
public class LoginInfo {

    private String token;
    private UserRet user;
    private LoginContext loginContext;
    private Boolean register;
    /**
     * 是否有密码
     * @return
     */
    private boolean hasPassword;

    @Data
    public static class LoginContext {

        private Long channelId;
        private Long createdFrom;
        private String appChannel;
        private Long btMerchantId;
    }

}
