package com.izouma.jiashanxia.dto;

import com.izouma.jiashanxia.domain.BaseEntity;
import com.izouma.jiashanxia.enums.PackageType;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import javax.persistence.*;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@ApiModel(value = "核销记录保存")
public class WriteOffSaveVO extends BaseEntity {

    @ApiModelProperty(value = "被核销人")
    private Long userId;

    @ApiModelProperty(value = "核销人")
    private Long writeOffUserId;

    @ApiModelProperty(value = "类型")
    private PackageType type;

    /*
    存储内容
    "userPackageId":1,
    [{"goodsInfoId":11,"num":1},{"goodsInfoId":12,"num":1}]
     */
    @Column(columnDefinition = "TEXT")
    @ApiModelProperty(value = "核销内容")
    private String content;

}
