package com.muchinfo.mtp3pojos.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 * 角色用户表
 * </p>
 *
 * @author XKF
 * @since 2024-04-09
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("ROLEUSER")
@ApiModel(value="Roleuser对象", description="角色用户表")
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class Roleuser extends Model<Roleuser> implements Serializable{

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "用户ID")
    @TableField("MANAGERID")
    private Long managerid;

    @ApiModelProperty(value = "角色ID")
    @TableField("ROLEID")
    private Long roleid;

    @ApiModelProperty(value = "角色类型：1- 管理端   2-  交易端")
    @TableField("ROLETYPE")
    private Integer roletype;


    @Override
    public Serializable pkVal() {
        return this.managerid;
    }

}
