package com.ylx.merchant.domain.dto;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ylx.massage.domain.MaTechnician;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;

@EqualsAndHashCode(callSuper = true)
@Data
@ApiModel("同城搭子分页查询DTO")
public class MerchantListDTO extends Page<MaTechnician> implements Serializable {
    private static final long serialVersionUID = -7015224259717934375L;

    @ApiModelProperty("项目类目ID")
    private Long categoryId;

    @ApiModelProperty("城市编码")
    private String cityCode;

    @ApiModelProperty("免车费：0=否，1=是")
    private Boolean freeCarFee;

    @ApiModelProperty("极速达：0=否，1=是")
    private Boolean fastArrival;

    @ApiModelProperty("新人上线：0=否，1=是")
    private Boolean newMerchant;

    @ApiModelProperty("用户经度")
    @NotNull(message = "用户经度不能为空")
    private Double longitude;

    @ApiModelProperty("用户纬度")
    @NotNull(message = "用户纬度不能为空")
    private Double latitude;

    @ApiModelProperty("搜索关键字")
    private String keyword;

}
