package com.zksy.dispatch.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * 转接报送日志表
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "dis_event_transfer_log", schema = "app_user")
public class DisEventTransferLog {

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

    @ApiModelProperty("关联转接ID")
    private Long transferId;

    @ApiModelProperty("事件编号")
    private String eventNo;

    @ApiModelProperty("动作类型：转接/报送")
    private String actionType;

    @ApiModelProperty("目标部门/层级")
    private String actionTarget;

    @ApiModelProperty("操作时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime actionTime;

    @ApiModelProperty("操作内容")
    private String content;

    @ApiModelProperty("类型：primary/success/warning/danger")
    private String type;

    @ApiModelProperty("创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime createTime;
}
