创建类:Role

package com.wbg.springRedis.entity;

import java.io.Serializable;

public class Role implements Serializable {
    private int id;
    private String roleName;
    private String note;
    @Override
    public String toString() {
        return "Role{" +
                "id=" + id +
                ", roleName='" + roleName + '\'' +
                ", note='" + note + '\'' +
                '}';
    }

    public Role() {
    }

    public Role(String roleName, String note) {
        this.roleName = roleName;
        this.note = note;
    }

    public Role(int id, String roleName, String note) {
        this.id = id;
        this.roleName = roleName;
        this.note = note;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getRoleName() {
        return roleName;
    }

    public void setRoleName(String roleName) {
        this.roleName = roleName;
    }

    public String getNote() {
        return note;
    }

    public void setNote(String note) {
        this.note = note;
    }
}
View Code

相关文章:

  • 2021-07-30
  • 2022-12-23
  • 2021-11-17
  • 2022-12-23
  • 2021-07-19
  • 2021-07-11
  • 2021-05-25
猜你喜欢
  • 2021-08-20
  • 2022-12-23
  • 2021-07-01
  • 2021-06-29
  • 2021-06-12
  • 2021-12-26
  • 2022-12-23
相关资源
相似解决方案