package com.xunmei.common.core.domain.edu.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 教育培训任务角色关系对象 core_edu_training_task_to_role
 *
 * @author xunmei
 * @date 2023-08-28
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("core_edu_training_task_to_role")
@ApiModel(value = "CoreEduTrainingTaskToRole对象", description = "教育培训任务角色关系")
public class CoreEduTrainingTaskToRole {
    private static final long serialVersionUID = 1L;

    @TableField("edu_training_task_id")
    @ApiModelProperty(value = "任务id")
    private Long eduTrainingTaskId;


    @TableField("role_id")
    @ApiModelProperty(value = "角色id")
    private Long roleId;


    @ApiModelProperty(value = "角色名称")
    private String roleName;


    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("eduTrainingTaskId", getEduTrainingTaskId())
                .append("roleId", getRoleId())
                .append("roleName", getRoleName())
                .toString();
    }
}
