PushLogService.java 1.54 KB
package com.brframework.commonapppush.service;

import com.brframework.commonapppush.entity.PushLog;
import com.brframework.commondb.core.EntityService;

/**
 * 推送记录
 * @author xu
 * @date 2019/11/18 19:20
 */
public interface PushLogService extends EntityService<PushLog, Long, Object> {


    /**
     * 创建单播记录
     * @param messageId         消息id
     * @param deviceTokens      客户端标识
     * @param userTokens        系统用户标识
     * @param os                系统
     * @param title             消息标题
     * @param text              消息内容
     * @param uri               跳转(android有效)
     * @param description       消息描述
     * @param status             发送状态
     * @param errorInfo          错误信息
     */
    void createUnicastLog(String messageId, String deviceTokens, String userTokens, String os, String title, String text
            , String uri, String description, Integer status, String errorInfo);

    /**
     * 创建广播记录
     * @param messageId         消息id
     * @param os                系统
     * @param title             消息标题
     * @param text              消息内容
     * @param uri               跳转(android有效)
     * @param description       消息描述
     * @param status             发送状态
     * @param errorInfo          错误信息
     */
    void createBroadcastLog(String messageId, String os, String title, String text
            , String uri, String description, Integer status, String errorInfo);

}