package com.qxgmat.data.relation;

import com.qxgmat.data.dao.entity.UserAskQuestion;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created by gaojie on 2017/11/9.
 */
public interface UserAskQuestionRelationMapper {
    void adjust(
            @Param("questionNoId") Number questionNoId,
            @Param("order") Integer order,
            @Param("direction") String direction,
            @Param("flag") String flag
    );

    List<UserAskQuestion> listWithUser(
            @Param("type") String type,
            @Param("category") Number category,
            @Param("userId") Number userId,
            @Param("questionNoId") Number questionNoId,
            @Param("target") String target,
            @Param("status") Integer status,
            @Param("showStatus") Integer showStatus,
            @Param("min") Integer min,
            @Param("max") Integer max,
            String order,
            String direction
    );
}
