com.github.dennisit.vplus.data.utils.grain.GrainEntry Maven / Gradle / Ivy
package com.github.dennisit.vplus.data.utils.grain;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.io.Serializable;
import java.util.Date;
import java.util.List;
public interface GrainEntry {
@Data
@NoArgsConstructor
@AllArgsConstructor
public static class GrainBatch implements Serializable {
@ApiModelProperty("主键编号")
private long id;
@ApiModelProperty("涉及数量")
private long num;
@ApiModelProperty("创建时间")
private Date createTime;
}
@Data
@NoArgsConstructor
@AllArgsConstructor
public static class DiscountEntry implements Serializable {
@ApiModelProperty("抵扣的最后一个批次的数据")
private GrainBatch tail;
@ApiModelProperty("抵扣占用的批次集合")
private List used;
}
@Data
@NoArgsConstructor
@AllArgsConstructor
public class RefundEntry implements Serializable {
@ApiModelProperty("退币完整批次数")
private List refunded;
@ApiModelProperty("退币优先使用批次数")
private List priority;
@ApiModelProperty("有效退币总数")
private long refundTotal;
}
}