package com.zt.plat.module.base.controller.admin.base.vo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.zt.plat.framework.common.pojo.PageParam;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

import static com.zt.plat.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 联系人信息分页 Request VO")
@Data
public class ContactPageReqVO extends PageParam {

    @Schema(description = "类型甲方/乙方", example = "2")
    private String type;

    @Schema(description = "联系人")
    private String contact;

    @Schema(description = "电话")
    private String tel;

    @Schema(description = "邮箱")
    private String email;

    @Schema(description = "传真")
    private String fax;

    @Schema(description = "联系地址")
    private String address;

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

    @Schema(description = "是否启用")
    private String isEnable;

    @TableField("CSTM_NUM")
    private String customerNumber;

    @TableField("CSTM_NAME")
    private String customerName;
}