package com.unis.model.bean;

import com.unis.model.bean.user.UserBean;

/**
 * 包名: com.unis.model.bean
 * 类名: LoginBean
 * 作用描述:
 * 创建人: mQ
 * 创建时间: 2020/12/9 11:04
 * 更新人:
 * 更新时间: 2020/12/9 11:04
 * 更新说明:
 * 版本号: 1.0
 */
public class LoginBean {

    /**
     * user : {"uId":1,"uName":"wsm1","personnelName":"王帅逼1","personnelId":null,"uPassword":"123456","createPeople":null,"uCreateTime":"2019-10-25T17:45:44.000+0000","uUpdateTime":"2019-10-25T08:37:50.000+0000","uRemark":null,"storehouseIds":null,"storehouseNames":null,"roleIds":null,"ustatus":1}
     * tokenInfo : {"access_token":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOlsicmVzb3VyY2Vfb2F1dGgiLCJyZXNvdXJjZV9zeXN0ZW1fbWFuYWdlIl0sImNyZWF0ZVRpbWUiOiIyMDIwLTEyLTA5IDAyOjU4OjQxIiwidXNlcl9uYW1lIjoie1widUlkXCI6MSxcInVOYW1lXCI6XCJ3c20xXCIsXCJ1UGFzc3dvcmRcIjpcIjEyMzQ1NlwifSIsImF1dGhvciI6IndzbSIsInNjb3BlIjpbInNjb3BlX3dzbSJdLCJyb2xlcyI6IlJPTEVfTm9Sb2xlIiwiZXhwIjoxNjA3NDg4NzIxLCJhdXRob3JpdGllcyI6WyJST0xFX05vUm9sZSJdLCJqdGkiOiI5ZmNkZGVmOC04NzY5LTRjZTUtYmI4Yy0wYjBkODRiNmFiM2UiLCJjbGllbnRfaWQiOiJjbGllbnRfY3NjX3N6bHNfc3lzdGVtX21hbmFnZSJ9.sCwuhX17tBAEFYpLH-sw5QIe2Ofu9w-lY3svstaLJc8","token_type":"bearer","refresh_token":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOlsicmVzb3VyY2Vfb2F1dGgiLCJyZXNvdXJjZV9zeXN0ZW1fbWFuYWdlIl0sImNyZWF0ZVRpbWUiOiIyMDIwLTEyLTA5IDAyOjU4OjQxIiwidXNlcl9uYW1lIjoie1widUlkXCI6MSxcInVOYW1lXCI6XCJ3c20xXCIsXCJ1UGFzc3dvcmRcIjpcIjEyMzQ1NlwifSIsImF1dGhvciI6IndzbSIsInNjb3BlIjpbInNjb3BlX3dzbSJdLCJyb2xlcyI6IlJPTEVfTm9Sb2xlIiwiYXRpIjoiOWZjZGRlZjgtODc2OS00Y2U1LWJiOGMtMGIwZDg0YjZhYjNlIiwiZXhwIjoxNjA3NDkyOTAwLCJhdXRob3JpdGllcyI6WyJST0xFX05vUm9sZSJdLCJqdGkiOiJhMWM0Zjg5ZC0wMGFkLTQ4N2EtOWUyNi05ZWViNDIyYzU3YjkiLCJjbGllbnRfaWQiOiJjbGllbnRfY3NjX3N6bHNfc3lzdGVtX21hbmFnZSJ9.uiMVHCPDYnkWEUsdUX9twj5uvj-K65wfm3OMZjCj5hQ","expires_in":5933,"scope":"scope_wsm","createTime":"2020-12-09 02:58:41","author":"wsm","roles":"ROLE_NoRole","jti":"9fcddef8-8769-4ce5-bb8c-0b0d84b6ab3e"}
     */

    private UserBean user;
    private TokenInfoBean tokenInfo;

    public UserBean getUser() {
        return user;
    }

    public void setUser(UserBean user) {
        this.user = user;
    }

    public TokenInfoBean getTokenInfo() {
        return tokenInfo;
    }

    public void setTokenInfo(TokenInfoBean tokenInfo) {
        this.tokenInfo = tokenInfo;
    }


    public static class TokenInfoBean {
        /**
         * access_token : eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOlsicmVzb3VyY2Vfb2F1dGgiLCJyZXNvdXJjZV9zeXN0ZW1fbWFuYWdlIl0sImNyZWF0ZVRpbWUiOiIyMDIwLTEyLTA5IDAyOjU4OjQxIiwidXNlcl9uYW1lIjoie1widUlkXCI6MSxcInVOYW1lXCI6XCJ3c20xXCIsXCJ1UGFzc3dvcmRcIjpcIjEyMzQ1NlwifSIsImF1dGhvciI6IndzbSIsInNjb3BlIjpbInNjb3BlX3dzbSJdLCJyb2xlcyI6IlJPTEVfTm9Sb2xlIiwiZXhwIjoxNjA3NDg4NzIxLCJhdXRob3JpdGllcyI6WyJST0xFX05vUm9sZSJdLCJqdGkiOiI5ZmNkZGVmOC04NzY5LTRjZTUtYmI4Yy0wYjBkODRiNmFiM2UiLCJjbGllbnRfaWQiOiJjbGllbnRfY3NjX3N6bHNfc3lzdGVtX21hbmFnZSJ9.sCwuhX17tBAEFYpLH-sw5QIe2Ofu9w-lY3svstaLJc8
         * token_type : bearer
         * refresh_token : eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOlsicmVzb3VyY2Vfb2F1dGgiLCJyZXNvdXJjZV9zeXN0ZW1fbWFuYWdlIl0sImNyZWF0ZVRpbWUiOiIyMDIwLTEyLTA5IDAyOjU4OjQxIiwidXNlcl9uYW1lIjoie1widUlkXCI6MSxcInVOYW1lXCI6XCJ3c20xXCIsXCJ1UGFzc3dvcmRcIjpcIjEyMzQ1NlwifSIsImF1dGhvciI6IndzbSIsInNjb3BlIjpbInNjb3BlX3dzbSJdLCJyb2xlcyI6IlJPTEVfTm9Sb2xlIiwiYXRpIjoiOWZjZGRlZjgtODc2OS00Y2U1LWJiOGMtMGIwZDg0YjZhYjNlIiwiZXhwIjoxNjA3NDkyOTAwLCJhdXRob3JpdGllcyI6WyJST0xFX05vUm9sZSJdLCJqdGkiOiJhMWM0Zjg5ZC0wMGFkLTQ4N2EtOWUyNi05ZWViNDIyYzU3YjkiLCJjbGllbnRfaWQiOiJjbGllbnRfY3NjX3N6bHNfc3lzdGVtX21hbmFnZSJ9.uiMVHCPDYnkWEUsdUX9twj5uvj-K65wfm3OMZjCj5hQ
         * expires_in : 5933
         * scope : scope_wsm
         * createTime : 2020-12-09 02:58:41
         * author : wsm
         * roles : ROLE_NoRole
         * jti : 9fcddef8-8769-4ce5-bb8c-0b0d84b6ab3e
         */

        private String access_token;
        private String token_type;
        private String refresh_token;
        private int expires_in;
        private String scope;
        private String createTime;
        private String author;
        private String roles;
        private String jti;

        public String getAccess_token() {
            return access_token;
        }

        public void setAccess_token(String access_token) {
            this.access_token = access_token;
        }

        public String getToken_type() {
            return token_type;
        }

        public void setToken_type(String token_type) {
            this.token_type = token_type;
        }

        public String getRefresh_token() {
            return refresh_token;
        }

        public void setRefresh_token(String refresh_token) {
            this.refresh_token = refresh_token;
        }

        public int getExpires_in() {
            return expires_in;
        }

        public void setExpires_in(int expires_in) {
            this.expires_in = expires_in;
        }

        public String getScope() {
            return scope;
        }

        public void setScope(String scope) {
            this.scope = scope;
        }

        public String getCreateTime() {
            return createTime;
        }

        public void setCreateTime(String createTime) {
            this.createTime = createTime;
        }

        public String getAuthor() {
            return author;
        }

        public void setAuthor(String author) {
            this.author = author;
        }

        public String getRoles() {
            return roles;
        }

        public void setRoles(String roles) {
            this.roles = roles;
        }

        public String getJti() {
            return jti;
        }

        public void setJti(String jti) {
            this.jti = jti;
        }
    }
}
