All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.taotao.cloud.security.satoken.model.SysUser Maven / Gradle / Ivy

There is a newer version: 2024.09
Show newest version
/*
 * Copyright (c) 2020-2030, Shuigedeng ([email protected] & https://blog.taotaocloud.top/).
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      https://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.taotao.cloud.security.satoken.model;

import java.io.Serializable;

/**
 * User 实体类
 *
 * @author kong
 * @since 2022-10-15
 */
public class SysUser implements Serializable {

    /** */
    private static final long serialVersionUID = -2853125262828437774L;

    public SysUser() {}

    public SysUser(long id, String name, int age) {
        super();
        this.id = id;
        this.name = name;
        this.age = age;
    }

    /** 用户id */
    private long id;

    /** 用户名称 */
    private String name;

    /** 用户年龄 */
    private int age;

    /**
     * @return id
     */
    public long getId() {
        return id;
    }

    /**
     * @param id 要设置的 id
     */
    public void setId(long id) {
        this.id = id;
    }

    /**
     * @return name
     */
    public String getName() {
        return name;
    }

    /**
     * @param name 要设置的 name
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * @return age
     */
    public int getAge() {
        return age;
    }

    /**
     * @param age 要设置的 age
     */
    public void setAge(int age) {
        this.age = age;
    }

    @Override
    public String toString() {
        return "SysUser [id=" + id + ", name=" + name + ", age=" + age + "]";
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy