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

io.github.wslxm.springbootplus2.manage.sys.model.entity.SysRoleUser Maven / Gradle / Ivy

The newest version!
package io.github.wslxm.springbootplus2.manage.sys.model.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import io.github.wslxm.springbootplus2.core.base.model.BaseEntity;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

/**
 *   角色-菜单关联表
 *
 * @author 王松
 * @WX-QQ 1720696548
 * @date 2019/11/14 20:49
 */
@Data
@ToString(callSuper = true)
@TableName(value = "t_sys_role_user")
@NoArgsConstructor
public class SysRoleUser extends BaseEntity {


    private static final long serialVersionUID = 5610627763663770761L;
    /**
     * 不使用逻辑删除 --> 逻辑删除字段 int 默认值为0,(0、正常,1、删除) (mybatis-plus 策略, 添加了 @TableLogic 注解自动为逻辑删除)
     */
    private Integer deleted;
    /**
     * 用户id
     */
    private String userId;

    /**
     * 角色id
     */
    private String roleId;

    public SysRoleUser(String roleId, String userId) {
        this.userId = userId;
        this.roleId = roleId;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy