package org.agt.module.license.controller.admin.customer.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import org.agt.module.license.controller.admin.common.vo.CommonExportReqVO;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

import static org.agt.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 客户分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class CustomerPageReqVO extends CommonExportReqVO {

    @Schema(description = "客户名称", example = "赵六")
    private String name;

    @Schema(description = "客户编号", example = "2000")
    private String code;

    @Schema(description = "客户类型", example = "1")
    private Integer type;

    @Schema(description = "地区", example = "5186")
    private Long areaId;

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

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

}