package org.jeecg.modules.app.form;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@Schema(description = "保险订单表单对象")
public class InsureOrderInfoForm implements Serializable {

    private static final long serialVersionUID = 1L;

    //保险ID
    @Schema(description = "保险ID")
    private String insureId;

    //生效时间
    @Schema(description = "生效时间-起")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    private Date assertStartTime;

    @Schema(description = "生效时间-止")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    private Date assertEndTime;

    //保单费用(单价)
    @Schema(description = "保单费用(单价)")
    private String insurePriceId;

    //保险用户编号
    @Schema(description = "保险用户编号")
    private String familyMembersIds;
}
