AdminLoginModel.java 1.23 KB
package com.xkl.model;

import lombok.AllArgsConstructor;
import lombok.Data;

/**
 * 管理员登录后的返回信息
 */
@Data
public class AdminLoginModel {

    public long adminId;
    public String adminAccount;
    public long comId;
    public String comName;
    //用户id
    private String userId;
    public String token;

    public AdminLoginModel(long adminId, String adminAccount, long comId, String comName, String userId, String token) {
        this.adminId = adminId;
        this.adminAccount = adminAccount;
        this.comId = comId;
        this.comName = comName;
        this.userId = userId;
        this.token = token;
    }

    public long getAdminId() {
        return adminId;
    }

    public void setAdminId(long adminId) {
        this.adminId = adminId;
    }

    public String getAdminAccount() {
        return adminAccount;
    }

    public void setAdminAccount(String adminAccount) {
        this.adminAccount = adminAccount;
    }

    public long getComId() {
        return comId;
    }

    public void setComId(long comId) {
        this.comId = comId;
    }

    public String getComName() {
        return comName;
    }

    public void setComName(String comName) {
        this.comName = comName;
    }
}