package com.gxwebsoft.cms.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.Date;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 小程序配置
 *
 * @author 科技小王子
 * @since 2024-07-22 12:54:13
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "MpField对象", description = "小程序配置")
@TableName("cms_mp_field")
public class MpField implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "自增ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "类型，0文本 1图片 2其他")
    private Integer type;

    @ApiModelProperty(value = "名称")
    private String name;

    @ApiModelProperty(value = "备注")
    private String comments;

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

    @ApiModelProperty(value = "页面ID")
    private Integer pageId;

    @ApiModelProperty(value = "页面名称")
    @TableField(exist = false)
    private String pageName;

    @ApiModelProperty(value = "排序(数字越小越靠前)")
    private Integer sortNumber;

    @ApiModelProperty(value = "是否删除, 0否, 1是")
    @TableLogic
    private Integer deleted;

    @ApiModelProperty(value = "租户id")
    private Integer tenantId;

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

}
