49 lines
1.6 KiB
Java
49 lines
1.6 KiB
Java
package com.example.caseData.dao;
|
|
|
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
import com.example.caseData.dto.caseExchange.CaseExchangeDto;
|
|
import com.example.caseData.dto.userCommentCaseExchange.GetUserCaseExchangeCommentPageDto;
|
|
import com.example.caseData.dto.userCommentCaseExchange.UserCommentCaseExchangeDto;
|
|
import com.example.caseData.dto.userCommentClinicalArticle.UserCommentClinicalArticleDto;
|
|
import com.example.caseData.model.CaseExchangeModel;
|
|
import com.example.caseData.model.UserCommentExchangeModel;
|
|
import org.apache.ibatis.annotations.Mapper;
|
|
import org.apache.ibatis.annotations.Param;
|
|
|
|
import java.util.List;
|
|
import java.util.Map;
|
|
|
|
@Mapper
|
|
public interface UserCommentExchangeDao extends BaseMapper<UserCommentExchangeModel> {
|
|
|
|
/**
|
|
* 临床病例库--评论-分页
|
|
* @param page 分页数据
|
|
*/
|
|
IPage<UserCommentCaseExchangeDto> getCaseExchangeCommentPage(
|
|
Page<?> page,
|
|
@Param("exchangeId") String exchangeId,
|
|
@Param("rootId") String rootId
|
|
);
|
|
|
|
/**
|
|
* 临床病例库--评论-列表
|
|
*/
|
|
List<UserCommentCaseExchangeDto> getCaseExchangeCommentList(
|
|
@Param("exchangeId") String exchangeId,
|
|
@Param("rootId") String rootId,
|
|
@Param("limit") int limit
|
|
);
|
|
|
|
/**
|
|
* 临床病例库--评论-分页
|
|
* @param page 分页数据
|
|
*/
|
|
IPage<GetUserCaseExchangeCommentPageDto> getUserCaseExchangeCommentPage(
|
|
Page<?> page,
|
|
@Param("userId") String userId
|
|
);
|
|
}
|