package com.xinelu.applet.dto.apporderevaluate;

import com.xinelu.common.custominterface.Insert;
import com.xinelu.manage.domain.orderevaluatepictureinfo.OrderEvaluatePictureInfo;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

/**
 * @Description 新增评价传入DTO
 * @Author 张恒
 * @Date 2022-11-18
 * @Version 1.0
 */
@Data
public class OrderEvaluateAndPictureDTO implements Serializable {
    private static final long serialVersionUID = 1369594576942868180L;

    /**
     * 主键id
     */
    private Long orderEvaluateInfoId;

    /**
     * 会员id
     */
    @NotNull(message = "请选择会员信息", groups = {Insert.class})
    private Long patientId;

    /**
     * 微信openid
     */
    private String openid;

    /**
     * 微信unionid
     */
    private String unionid;

    /**
     * 订单编号
     */
    @NotBlank(message = "请选择订单编号", groups = {Insert.class})
    private String orderNo;

    /**
     * 评价内容
     */
    private String evaluateContent;

    /**
     * 手机App：PHONE_APP，微信小程序：WE_CHAT_APPLET
     */
    @NotBlank(message = "请选择支付渠道", groups = {Insert.class})
    private String evaluateChannel;

    /**
     * 预约服务满意度，一般：COMMONLY，满意：SATISFIED，不满意：DISSATISFIED
     */
    private String evaluateSatisfaction;

    /**
     * 商品订单综合评分，取值，1：代表1颗星，2：代表两颗星，3：代表三颗星，4：代表四颗星，5：代表五颗星
     */
    @NotNull(message = "请选择评分", groups = {Insert.class})
    private Integer compositeScore;

    /**
     * 订单来源，泉医模块：SPRING_DOCTOR，家医模块：FAMILY_DOCTOR
     */
    @ApiModelProperty(value = "订单来源，泉医模块：SPRING_DOCTOR，家医模块：FAMILY_DOCTOR")
    private String orderSource;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;

    /**
     * 会员姓名
     */
    private String patientName;

    /**
     * 订单评价图片信息
     */
    private List<OrderEvaluatePictureInfo> orderEvaluatePictureInfoList;

}
