package com.clx.performance.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.msl.common.config.KeyColumn;
import com.msl.common.model.HasKey;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

/**
 * @author kavin
 * Date 2024-01-24
 * Time 13:34
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("dictionary")
public class Dictionary implements HasKey<Integer> {

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

    @TableField("dictionary_name")
    @ApiModelProperty("")
    private String dictionaryName;

    @TableField("dictionary_value")
    @ApiModelProperty("")
    private String dictionaryValue;

    @Override
    @KeyColumn("id")
    public Integer gainKey() {
    return this.id;
    }
}
