package cn.axzo.msg.center.service.dto;

import com.alibaba.fastjson.JSON;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;

/**
 * @description
 *
 * @author cold_blade
 * @date 2023/9/23
 * @version 1.0
 */
@Setter
@Getter
public class QueryOrderByDTO implements Serializable {

    private static final long serialVersionUID = 4374533352245898714L;

    /**
     * 排序字段
     */
    private String orderField;
    /**
     * 是否为升序排序
     */
    private Boolean isAsc;

    @Override
    public String toString() {
        return JSON.toJSONString(this);
    }
}
