TbxXrModule.java 3.07 KB
package cn.bxe.updatevideo.model;

import java.io.Serializable;
import java.util.Objects;

/**
 * <p>
 * 小睿书籍章节类目可用类目模块
 * </p>
 *
 * @author ting
 * @since 2023-01-17
 */
public class TbxXrModule implements Serializable {
    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        TbxXrModule that = (TbxXrModule) o;
        return Objects.equals(chapterId, that.chapterId) && Objects.equals(moduleId, that.moduleId) && Objects.equals(textbookId, that.textbookId);
    }

    @Override
    public int hashCode() {
        return Objects.hash(chapterId, moduleId, textbookId);
    }

    private static final long serialVersionUID = 1L;

    /**
     * 类目id
     */
    private Integer chapterId;

    /**
     * 模块ID
     */
    private Integer moduleId;

    /**
     * 书籍ID
     */
    private Integer textbookId;

    /**
     * 分类名
     */
    private String categoryName;

    /**
     * 分类详情
     */
    private String categoryDesc;

    /**
     * 模块列表json
     */
    private String moduleList;

    /**
     * 记录状态@10,正常|30,删除状态
     */
    private Integer status;

    /**
     * 创建时间
     */
    private Long createTime;

    public Integer getChapterId() {
        return chapterId;
    }

    public void setChapterId(Integer chapterId) {
        this.chapterId = chapterId;
    }

    public Integer getModuleId() {
        return moduleId;
    }

    public void setModuleId(Integer moduleId) {
        this.moduleId = moduleId;
    }

    public Integer getTextbookId() {
        return textbookId;
    }

    public void setTextbookId(Integer textbookId) {
        this.textbookId = textbookId;
    }

    public String getCategoryName() {
        return categoryName;
    }

    public void setCategoryName(String categoryName) {
        this.categoryName = categoryName;
    }

    public String getCategoryDesc() {
        return categoryDesc;
    }

    public void setCategoryDesc(String categoryDesc) {
        this.categoryDesc = categoryDesc;
    }

    public String getModuleList() {
        return moduleList;
    }

    public void setModuleList(String moduleList) {
        this.moduleList = moduleList;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Long getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Long createTime) {
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        return "TbxXrModule{" +
                "chapterId=" + chapterId +
                ", moduleId=" + moduleId +
                ", textbookId=" + textbookId +
                ", categoryName='" + categoryName + '\'' +
                ", categoryDesc='" + categoryDesc + '\'' +
                ", moduleList='" + moduleList + '\'' +
                ", status=" + status +
                ", createTime=" + createTime +
                '}';
    }
}