package com.seer.teach.mp.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import com.seer.teach.common.entity.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

import java.util.List;

/**
 * <p>
 * 活动表单模板表
 * </p>
 *
 * @author Lingma
 * @since 2026-01-10
 */
@Getter
@Setter
@TableName(value = "mp_activity_form",autoResultMap = true)
@Schema(name = "MpActivityFormEntity对象", description = "活动表单表")
public class MpActivityFormEntity extends BaseEntity {

    /**
     * 表单名称
     */
    @TableField("form_name")
    private String formName;

    /**
     * 表单描述
     */
    @TableField("form_description")
    private String formDescription;

    /**
     * 配置
     */
    @TableField("config")
    private String config;

    /**
     * 字段列表
     */
    @TableField(value = "fields",typeHandler = JacksonTypeHandler.class)
    private List<String> fields;
}