You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
1.2 KiB
41 lines
1.2 KiB
package com.youlai.boot.mini.mapper;
|
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
import com.youlai.boot.mini.model.entity.MiniUserPost;
|
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
|
import com.youlai.boot.mini.model.query.OwnUserPostQuery;
|
|
import com.youlai.boot.mini.model.vo.UserPostVO;
|
|
import org.apache.ibatis.annotations.Param;
|
|
|
|
import java.util.List;
|
|
|
|
/**
|
|
* 用户作品表 Mapper 接口
|
|
*
|
|
* @author jwy
|
|
* @since
|
|
*/
|
|
public interface MiniUserPostMapper extends BaseMapper<MiniUserPost> {
|
|
|
|
IPage<UserPostVO> getUserPostPage(Page<UserPostVO> page, @Param("query") OwnUserPostQuery query);
|
|
|
|
Long selectIdByUuid(String postUuid);
|
|
|
|
void incrementLikeCount(@Param("postId") Long postId);
|
|
|
|
void decrementLikeCount(@Param("postId") Long postId);
|
|
|
|
Long selectLikeCount(@Param("postId") Long postId);
|
|
|
|
void incrementCollectCount(@Param("postId") Long postId);
|
|
|
|
void decrementCollectCount(@Param("postId") Long postId);
|
|
|
|
Long selectCollectCount(@Param("postId") Long postId);
|
|
|
|
List<UserPostVO> getWaterfall(@Param("cursor") Long cursor, @Param("pageSize") int pageSize, @Param("miniUserId") Long miniUserId);
|
|
|
|
void incrementViewCount(String postUuid);
|
|
|
|
}
|
|
|