package com.heketai.website.entity;


import java.io.Serializable;
import java.util.Date;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 后台操作记录表
 * </p>
 *
 * @author yabin
 * @since 2022-05-23
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("log_operational")
@ApiModel(value="LogOperational对象", description="后台操作记录表")
public class LogOperational  extends Model<LogOperational> {

    private static final long serialVersionUID = 1L;

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

    @ApiModelProperty(value = "操作的后端方法")
    @TableField("target_way")
    private String targetWay;


    @ApiModelProperty(value = "操作参数")
    @TableField("operating_parameter")
    private String operatingParameter;


    @ApiModelProperty(value = "操作动作（0：表示增加，1：表示更新，2：表示删除）")
    @TableField("operational_motion")
    private String operationalMotion;

    @ApiModelProperty(value = "操作时间")
    @TableField("operational_time")
    @JSONField(format="yyyy-MM-dd HH:mm:ss")
    private Date operationalTime;

    @ApiModelProperty(value = "操作人")
    @TableField("operational_user")
    private String operationalUser;


    @Override
    protected Serializable pkVal() {
        return null;
    }
}
