package com.njzscloud.common.sn;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.njzscloud.common.sn.support.SectionConfig;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.util.List;

/**
 * 编码配置表
 */
@Getter
@Setter
@ToString
@Accessors(chain = true)
@TableName(value = "sys_sn_config", autoResultMap = true)
public class SysSnConfigEntity {

    /**
     * Id
     */
    @TableId(type = IdType.ASSIGN_ID)
    private Long id;

    /**
     * 编码名称
     */
    private String sncode;

    /**
     * 配置
     */
    @TableField(typeHandler = com.njzscloud.common.mp.support.handler.j.JsonTypeHandler.class)
    private List<SectionConfig> config;

    /**
     * 备注
     */
    private String memo;

}
