package com.microservices.zone.common.service;

import com.microservices.zone.detail.domain.ZoneSort;

/**
 * 特色专区排序Service接口
 *
 * @author otto
 * @date 2023-05-09
 */
public interface IZoneSortService {
    /**
     * 基于顺序设置排序
     *
     * @param data
     * @param order
     * @return
     */
    public Integer setSortByOrder(ZoneSort data, Integer order, String tableName);

    /**
     * 基于顺序设置降序排序
     *
     * @param data
     * @param order
     * @return
     */
    public Integer setSortByDescOrder(ZoneSort data, Integer order, String tableName);

    /**
     * 获取最大排序值
     *
     * @param zoneId
     * @return
     */
    public Integer getMaxSort(Long zoneId, String tableName);
}
