package com.mindskip.xzs.repository;
|
|
import com.mindskip.xzs.domain.Message;
|
import com.mindskip.xzs.viewmodel.admin.message.MessagePageRequestVM;
|
import org.apache.ibatis.annotations.Mapper;
|
|
import java.util.List;
|
|
/**
|
* @version 2.2.0
|
* @description: 消息
|
* Copyright (C), 2020-2021, 武汉思维跳跃科技有限公司
|
* @date 2021 /9/7 9:45
|
*/
|
@Mapper
|
public interface MessageMapper extends BaseMapper<Message> {
|
int deleteByPrimaryKey(Integer id);
|
|
int insert(Message record);
|
|
int insertSelective(Message record);
|
|
Message selectByPrimaryKey(Integer id);
|
|
int updateByPrimaryKeySelective(Message record);
|
|
int updateByPrimaryKey(Message record);
|
|
/**
|
* 消息分页
|
*
|
* @param requestVM the request vm
|
* @return the list
|
*/
|
List<Message> page(MessagePageRequestVM requestVM);
|
|
/**
|
* 根据id查询消息
|
*
|
* @param ids the ids
|
* @return the list
|
*/
|
List<Message> selectByIds(List<Integer> ids);
|
|
/**
|
* 消息已读 +1
|
*
|
* @param id the id
|
* @return the int
|
*/
|
int readAdd(Integer id);
|
}
|