package org.dromara.payment.common.domain.vo;

import org.dromara.payment.common.domain.BusOperLog;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import org.dromara.common.excel.annotation.ExcelDictFormat;
import org.dromara.common.excel.convert.ExcelDictConvert;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;

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



/**
 * 业务操作日志视图对象 bus_oper_log
 *
 * @author LionLi
 * @date 2024-04-10
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = BusOperLog.class)
public class BusOperLogVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @ExcelProperty(value = "主键")
    private Long id;

    /**
     * 日志描述
     */
    @ExcelProperty(value = "日志描述")
    private String logDesc;

    /**
     * 角色id
     */
    @ExcelProperty(value = "角色id")
    private Long createRoleId;

    /**
     * 角色名称
     */
    @ExcelProperty(value = "角色名称")
    private String createRoleName;

    private Date createTime;

    /**
     * 业务id(任务id或账单批次id)
     */
    @ExcelProperty(value = "业务id(任务id或账单批次id)")
    private Long busId;

    /**
     * 业务类型（1：项目 2：账单批次）
     */
    @ExcelProperty(value = "业务类型", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "1=：项目,2=：账单批次")
    private Integer busType;


}
