package com.testor.module.iam.service;

import com.testor.module.iam.model.domain.IamMessage;
import com.tongtech.tfw.backend.common.models.supers.SuperService;

/**
 * @ClassName: IamMessageService
 * @Description: TODO
 * @Author: lm
 * @CreateTime: 2024/1/2 14:11
 * @Version: 1.0
 */
public interface IamMessageService extends SuperService<IamMessage> {

    /**
     * 接收一条消息推送
     * @param iamMessage
     * @return
     */
    boolean push(IamMessage iamMessage);

    /**
     * 新增IAM消息
     * @param iamMessage
     * @return
     */
    boolean add(IamMessage iamMessage);

    /**
     * 处理一条IAM消息
     * @param iamMessage
     * @return
     */
    boolean handleMessage(IamMessage iamMessage);


}
