package com.jwipc.message.logic;

import com.jwipc.message.dto.AddresseeUserDTO;
import com.jwipc.message.dto.MessageCenterDTO;
import com.jwipc.message.dto.MessageCenterParamDTO;
import com.jwipc.message.model.query.AddresseeUserQuery;
import com.jwipc.message.model.query.MessageCenterQuery;
import com.jwipc.page.PageView;

import java.util.List;

/**
 * @author shenyang.ou
 * @date 2024/7/3 10:51
 * @desc
 */
public interface MessageCenterLogic {
    MessageCenterDTO getById(Long id);

    List<AddresseeUserDTO> userList(AddresseeUserQuery query);

    void saveOrUpdate(MessageCenterParamDTO param);

    PageView findByPage(MessageCenterQuery query);

    void publish(Long id);

    void remove(Long id);

    Long getNewMessageNum();
}
