package com.chushang.inspection.work.vo;

import cn.hutool.core.date.DatePattern;
import com.chushang.common.dict.annotation.DictFormat;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class AuditVO implements Serializable {

    /**
     * 审核人id
     */
    private Long userId;

    /**
     * 审核人名称
     */
    @JsonProperty("userName")
    private String auditName;

    /**
     * 审核描述
     */
    private String remark;

    /**
     * 审核状态
     */
    @DictFormat(dictType = "wrk_status")
    private String state;

    /**
     * 审核时间
     */
    @JsonFormat(pattern = DatePattern.NORM_DATETIME_PATTERN)
    private LocalDateTime auditTime;

    /**
     * 工单id
     */
    private Long wrkId;
}
