package shop.alien.entity.store.vo;

import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * <p>
 * 
 * </p>
 *
 * @author ssk
 * @since 2025-03-20
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="EssentialModuleInformation对象", description="")
public class EssentialModuleInformationVo extends Model<EssentialModuleInformationVo> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    private Integer id;

    @ApiModelProperty(value = "数据键")
    private String informationKey;

    @ApiModelProperty(value = "数据值")
    private String informationValue;

    @ApiModelProperty(value = "展示值")
    private String label;

    @ApiModelProperty(value = "数据类型")
    private String dataType;

    @ApiModelProperty(value = "参数类型")
    private String paramType;

    @ApiModelProperty(value = "上级数据id")
    private Integer parentId;

    @ApiModelProperty(value = "删除标记, 0:未删除, 1:已删除")
    @TableLogic
    private Integer deleteFlag;

    @ApiModelProperty(value = "创建时间")
    private Date createdTime;

    @ApiModelProperty(value = "创建人ID")
    private Integer createdUserId;

    @ApiModelProperty(value = "修改时间")
    private Date updatedTime;

    @ApiModelProperty(value = "修改人ID")
    private Integer updatedUserId;

    @ApiModelProperty(value = "修改人ID")
    private List<EssentialModuleInformationVo> children;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
