package cn.lili.modules.lmk.domain.vo;
|
|
import cn.lili.base.AbsVo;
|
import cn.lili.modules.lmk.domain.entity.UserCheckTemplate;
|
import java.util.List;
|
import org.springframework.lang.NonNull;
|
import org.springframework.beans.BeanUtils;
|
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModelProperty;
|
import lombok.Data;
|
import java.util.Date;
|
|
/**
|
* 用户选择模板展示
|
*
|
* @author peng
|
* @since 2025-10-09
|
*/
|
@Data
|
@ApiModel(value = "用户选择模板响应数据", description = "用户选择模板响应数据")
|
public class UserCheckTemplateVO extends AbsVo {
|
|
/** 订单编号 */
|
@ApiModelProperty("订单编号")
|
private String orderSn;
|
|
/** 模板id */
|
@ApiModelProperty("模板id")
|
private String templateId;
|
|
/** 子模板id */
|
@ApiModelProperty("子模板id")
|
private String subId;
|
|
/** 文本值 */
|
@ApiModelProperty("文本值")
|
private String content;
|
|
/** 模板名称 */
|
@ApiModelProperty("模板名称")
|
private String templateName;
|
|
/** 选择模板图片id */
|
@ApiModelProperty("选择模板图片id")
|
private String chooseImgId;
|
|
/** 选择模板图片 */
|
@ApiModelProperty("选择模板图片")
|
private String chooseImg;
|
|
public static UserCheckTemplateVO getVoByEntity(@NonNull UserCheckTemplate entity, UserCheckTemplateVO vo) {
|
if(vo == null) {
|
vo = new UserCheckTemplateVO();
|
}
|
BeanUtils.copyProperties(entity, vo);
|
return vo;
|
}
|
|
}
|