package com.mindskip.xzs.repository; import com.mindskip.xzs.domain.UserEventLog; import com.mindskip.xzs.domain.other.KeyValue; import com.mindskip.xzs.viewmodel.admin.user.UserEventPageRequestVM; import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Param; import java.util.Date; import java.util.List; /** * @version 2.2.0 * @description: 用户动态 * Copyright (C), 2020-2021, 武汉思维跳跃科技有限公司 * @date 2021 /9/7 9:45 */ @Mapper public interface UserEventLogMapper extends BaseMapper { int deleteByPrimaryKey(Integer id); int insert(UserEventLog record); int insertSelective(UserEventLog record); UserEventLog selectByPrimaryKey(Integer id); int updateByPrimaryKeySelective(UserEventLog record); int updateByPrimaryKey(UserEventLog record); /** * 根据id获取用户动态 * * @param id the id * @return the user event log by user id */ List getUserEventLogByUserId(Integer id); /** * 用户动态分页 * * @param requestVM the request vm * @return the list */ List page(UserEventPageRequestVM requestVM); /** * 获取时间段内动态数量 * * @param startTime the start time * @param endTime the end time * @return the list */ List selectCountByDate(@Param("startTime") Date startTime, @Param("endTime") Date endTime); }