package com.pingcap.community.blogserver.qo;

import io.swagger.v3.oas.annotations.Parameter;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springdoc.api.annotations.ParameterObject;

@ParameterObject
@Data
@NoArgsConstructor
public class PostQuery {

  @Parameter(description = "filtering tagID")
  private Long tagID;

  @Parameter(description = "filtering categoryID")
  private Long categoryID;

  public PostQuery(Long tagID, Long categoryID) {
    this.tagID = tagID;
    this.categoryID = categoryID;
  }

}
