package com.muchinfo.mtp3pojos.entity;

import com.baomidou.mybatisplus.annotation.*;
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;

/**
 * <p>
 * 枚举字典表
 * </p>
 *
 * @author XKF
 * @since 2025-05-20
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("ENUMDIC")
@ApiModel(value="Enumdic对象", description="枚举字典表")
@KeySequence(value = "SEQ_ENUMDIC")
public class Enumdic extends Model<Enumdic> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "自增ID")
    @TableId(value = "AUTOID", type = IdType.INPUT)
    private Long autoid;

    @ApiModelProperty(value = "所属枚举分组ID")
    @TableField("ENUMGROUPID")
    private Long enumgroupid;

    @ApiModelProperty(value = "枚举代码")
    @TableField("ENUMDICCODE")
    private String enumdiccode;

    @ApiModelProperty(value = "枚举名称")
    @TableField("ENUMDICNAME")
    private String enumdicname;

    @ApiModelProperty(value = "枚举项状态 - 1.启用 2.不启用")
    @TableField("ITEMSTATUS")
    private Integer itemstatus;

    @ApiModelProperty(value = "是否映射到银行服务 - 0:不映射 1:映射")
    @TableField("ISMAPPINGTOBANK")
    private Integer ismappingtobank;

    @ApiModelProperty(value = "备注")
    @TableField("REMARK")
    private String remark;

    @ApiModelProperty(value = "是否显示 - 0:不显示  1:显示")
    @TableField("SHOWFLAG")
    private Integer showflag;

    @ApiModelProperty(value = "修改标志 - 0:不允许修改   1:允许修改")
    @TableField("MODIFYFLAG")
    private Integer modifyflag;

    @ApiModelProperty(value = "子项维护类型 - 1:不可维护 2:系统项内维护 3:客户自主维护 4:初始化维护(如交易模式,交易属性)")
    @TableField("ITEMMAINTAINTYPE")
    private Integer itemmaintaintype;


    @Override
    public Serializable pkVal() {
        return this.autoid;
    }

}
