package com.sqx.modules.resumes.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.SqlCondition;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

/**
 * @description rule_classify
 * @author fang
 * @date 2022-08-09
 */
@Data
public class RuleClassify implements Serializable {

    private static final long serialVersionUID = 1L;


    /**
     * 岗位分类id
     */
    @TableId(type = IdType.AUTO)
    private Long ruleClassifyId;

    /**
     * 岗位名称
     */
    @TableField(condition = SqlCondition.LIKE)
    private String ruleClassifyName;

   /**
     * 分类标题
     */
    private String title;

    /**
     * 状态 1上架 2下架
     */
    private Integer status;

    /**
     * 排序
     */
    private Integer sort;

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

    /**
     * 价格
     */
    private BigDecimal price;

    /**
     * 会员价格
     */
    private BigDecimal memberPrice;
    /**
     * 上级id
     */
    private Long parentId;
    @TableField(exist = false)
    private List<RuleClassify> childrens;

    public RuleClassify() {}
}
