package org.xyzh.common.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

@Data
@Schema(description = "排序方式对象")
public class OrderField {
    public static final String ASC = "ASC";
    public static final String DESC = "DESC";
    
    @Schema(description = "排序字段")
    private String field;
    
    @Schema(description = "排序方式")
    private String order;

    public OrderField(String field, String order) {
        this.field = field;
        this.order = order;
    }
}