package com.gingersoft.gsa.cloud.common.core.login;

import lombok.Data;

/**
 * @作者: bin
 * @創建時間: 2020-12-19 9:53
 * @更新時間: 2020-12-19 9:53
 * @描述:
 */
@Data
public class LoginBean {

    /**
     * user : {"userId":1,"userName":"admin","brands":[{"brandId":242,"brandName":"莫拉塔","restaurants":[]},{"brandId":243,"brandName":"蕭蕭","restaurants":[{"restaurantId":337,"restaurantName":"小張"}]}]}
     * token : 24ce30df203b41619a21967dbd9988b9
     */

    private UserBean user;
    private String token;

    @Data
    public static class UserBean {
        /**
         * userId : 1
         * userName : admin
         * brands : [{"brandId":242,"brandName":"莫拉塔","restaurants":[]},{"brandId":243,"brandName":"蕭蕭","restaurants":[{"restaurantId":337,"restaurantName":"小張"}]}]
         */
        private Integer id;
        private String userName;
        private Integer groupId;
        private Integer parentId;
        private Integer merchantsId;
        private String mobile;
        private String email;
        private byte status;
        private String createBy;
        private String createTime;
        private String updateTime;
        private String updateBy;

    }

}
