package com.crm.rely.backend.model.entity.golden.goods;

import com.crm.rely.backend.core.constant.Constants;
import com.crm.rely.backend.core.entity.base.BaseUpdateEntity;
import lombok.Data;
import org.hibernate.validator.constraints.NotEmpty;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

@Data
public class GoldenGoodsVideoUpdateEntity extends BaseUpdateEntity {

    @NotNull(message = Constants.PARAMETER_ERROR)
    private Long goodsId;

    /**
     * 名称
     */
    @NotNull(message = Constants.NAME_NOT_NULL)
    @NotEmpty(message = Constants.NAME_NOT_NULL)
    private String videoName;

    /**
     * 标题
     */
    private String title;

    /**
     * 简介
     */
    private String introduction;

    /**
     * 封面
     */
    private String frontUrl;

    /**
     * 是否收费 0:否 1:是
     */
    private Integer payType;

    /**
     * 1:上传视频 2:外部连接
     */
    private Integer fileType;

    /**
     *
     */
    private String fileUrl;

    /**
     * 外部连接
     */
    private String linkUrl;

    /**
     * 排序
     */
    private Integer sort;

}
