package com.example.demo.model;

import io.swagger.v3.oas.annotations.media.Schema;

/**
 * 角色实体。
 */
@Schema(description = "角色实体")
public class Role {

    @Schema(description = "角色ID")
    private Long id;

    @Schema(description = "角色名称")
    private String roleName;

    @Schema(description = "角色编码")
    private String roleCode;

    @Schema(description = "状态：0-停用，1-启用")
    private Integer status;

    public Role() {
    }

    public Role(Long id, String roleName, String roleCode, Integer status) {
        this.id = id;
        this.roleName = roleName;
        this.roleCode = roleCode;
        this.status = status;
    }

    public Long getId() { return id; }
    public void setId(Long id) { this.id = id; }
    public String getRoleName() { return roleName; }
    public void setRoleName(String roleName) { this.roleName = roleName; }
    public String getRoleCode() { return roleCode; }
    public void setRoleCode(String roleCode) { this.roleCode = roleCode; }
    public Integer getStatus() { return status; }
    public void setStatus(Integer status) { this.status = status; }
}
