美文网首页
用户信息类Userinfo

用户信息类Userinfo

作者: 张威先森 | 来源:发表于2018-09-21 14:57 被阅读0次

    package com.neuedu.manager;

    public class UserInfo {

    private int userid;//用户id
    private String username;//用户名
    private String password;//密码
    private String nikename;//昵称
    private int vip;//vip标识
    private int outtime;//冻结标识
    private double balance;//账户余额
    
    public UserInfo(){
        
    }
    
    public UserInfo(int userid, String username, String password, String nikename, int vip, int outtime,
            double balance) {
        super();
        this.userid = userid;
        this.username = username;
        this.password = password;
        this.nikename = nikename;
        this.vip = vip;
        this.outtime = outtime;
        this.balance = balance;
    }
    
    public int getUserid() {
        return userid;
    }
    
    public void setUserid(int userid) {
        this.userid = userid;
    }
    
    public String getUsername() {
        return username;
    }
    
    public void setUsername(String username) {
        this.username = username;
    }
    
    public String getPassword() {
        return password;
    }
    
    public void setPassword(String password) {
        this.password = password;
    }
    
    public String getNikename() {
        return nikename;
    }
    
    public void setNikename(String nikename) {
        this.nikename = nikename;
    }
    
    public int getVip() {
        return vip;
    }
    
    public void setVip(int vip) {
        this.vip = this.vip+vip;
    }
    
    public int getOuttime() {
        return outtime;
    }
    
    public void setOuttime(int outtime) {
        this.outtime = outtime;
    }
    
    public double getBalance() {
        return balance;
    }
    
    public void setBalance(double balance) {
        this.balance =this.balance+balance;
    }
    
    @Override
    public String toString() {
        return "UserInfo [userid=" + userid + ", username=" + username + ", password=" + password + ", nikename="
                + nikename + ", vip=" + vip + ", outtime=" + outtime + ", balance=" + balance + "]";
    }
    

    }

    相关文章

      网友评论

          本文标题:用户信息类Userinfo

          本文链接:https://www.haomeiwen.com/subject/rsnanftx.html