Merge branch 'feature/bug-1333' into feature/quotation

This commit is contained in:
曹鹏飞 2026-02-26 19:08:54 +08:00
commit 48e3bdb11c
1 changed files with 12 additions and 2 deletions

View File

@ -1,18 +1,28 @@
package com.nflg.mobilebroken.common.pojo.vo;
import cn.hutool.core.util.StrUtil;
import lombok.Data;
import javax.validation.constraints.NotNull;
@Data
public class ProductVideoVO extends ProductImageVO{
public class ProductVideoVO extends ProductImageVO {
/**
* 类型0-视频1图片
*/
@NotNull
private Integer type;
public Integer getType() {
if (StrUtil.isNotBlank(video)) {
return 0;
}
if (StrUtil.isNotBlank(getImage())) {
return 1;
}
return null;
}
/**
* 视频地址
*/