package org.dromara.work.domain.vo;

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

import java.io.Serial;
import java.io.Serializable;



/**
 * 积分明细视图对象 tp_integral_detail
 *
 * @author Maosw
 * @date 2024-08-12
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = TpIntegralDetail.class)
public class TpIntegralDetailVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

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

    /**
     * 所属用户
     */
    @ExcelProperty(value = "所属用户")
    private Long uid;

    /**
     * 标题
     */
    @ExcelProperty(value = "标题")
    private String title;

    /**
     * 类型（1为加，2为减）
     */
    @ExcelProperty(value = "类型", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "1=为加，2为减")
    private Long type;

    /**
     * 数额
     */
    @ExcelProperty(value = "数额")
    private Long price;

    /**
     * 创建时间
     */
    @ExcelProperty(value = "创建时间")
    private Long addTime;


}
