package com.gic.haoban.manage.service.service.notify;

import com.gic.api.base.commons.BasePageInfo;
import com.gic.api.base.commons.Page;
import com.gic.haoban.manage.service.pojo.bo.NoticeMessageBO;
import com.gic.haoban.manage.service.pojo.bo.PendingTaskBO;

import java.util.List;

/**
 * Created 2021/12/15.
 *
 * @author hua
 */
public interface NoticeMessageService {

    /**
     * 新增或创建消息
     *
     * @param messageBO
     * @return
     */
    public boolean addOrCreateNoticeMessage(NoticeMessageBO messageBO);

    void addNoticeMessageBatch(List<NoticeMessageBO> list);

    /**
     * 分页查询消息
     *
     * @param enterpriseId
     * @param storeId      门店id
     * @param clerkId
     * @param categoryType
     * @param pageInfo
     * @return
     */
    public Page<NoticeMessageBO> pageNoticeMessage(String enterpriseId, String storeId, String clerkId, int categoryType, BasePageInfo pageInfo);

    /**
     * 分页查询消息
     *
     * @param enterpriseId
     * @param storeId      门店id
     * @param clerkId
     * @return
     */
    int countUnreadNoticeMessage(String enterpriseId, String storeId, String clerkId);

    /**
     * 更新导购的已读转态
     *
     * @param enterpriseId
     * @param clerkId
     * @param categoryType
     * @return
     */
    public boolean updateNoticeMessageReadFlag(String enterpriseId, String clerkId, int categoryType);


}
