package com.muchinfo.mtp3pojos.entity;

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.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * <p>
 * 异常代码表
 * </p>
 *
 * @author XKF
 * @since 2024-04-26
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("ERRORCODE")
@ApiModel(value="Errorcode对象", description="异常代码表")
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class Errorcode extends Model<Errorcode> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "异常ID")
    @TableId(value = "ERRORID")
    private Long errorid;

    @ApiModelProperty(value = "异常代码")
    @TableField("ERRORCODE")
    private String errorcode;

    @ApiModelProperty(value = "所属模块")
    @TableField("MODULECODE")
    private String modulecode;

    @ApiModelProperty(value = "所属操作")
    @TableField("OPERATECODE")
    private String operatecode;

    @ApiModelProperty(value = "异常描述")
    @TableField("DESCRIPTION")
    private String description;


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

}
