package com.izouma.jiashanxia.dto;

import com.izouma.jiashanxia.domain.BaseEntity;
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;

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

}
