package com.ylx.home.search.domain.dto;

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

import javax.validation.constraints.NotNull;

@EqualsAndHashCode(callSuper = true)
@Data
@ApiModel("用户端首页搜索商户DTO")
public class SearchMerchantDTO extends Page<SearchMerchantDTO> {

    private String keyword;

    @ApiModelProperty("服务类目ID")
    @NotNull(message = "服务类目ID不能为空")
    private Long categoryId;

}
