Compare commits
No commits in common. "48e3bdb11c1cba2b22342655e0952ee214b5c682" and "5f61508ac8aafa9eceb8b9641e11a73af0b1214b" have entirely different histories.
48e3bdb11c
...
5f61508ac8
|
|
@ -1,28 +1,18 @@
|
|||
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;
|
||||
}
|
||||
|
||||
/**
|
||||
* 视频地址
|
||||
*/
|
||||
|
|
|
|||
Loading…
Reference in New Issue