JPushService.java
826 Bytes
package com.diligrp.rider.service;
/**
* 极光推送服务
*
* 推送目标统一使用 alias = riderId 字符串;
* App 端登录后须调用 JPushFlutter.setAlias(riderId) 完成绑定。
*/
public interface JPushService {
/**
* 推送给单个骑手
*
* @param riderId 骑手ID(作为 JPush alias)
* @param title 通知标题
* @param content 通知正文
* @param bizType 业务类型(透传到 App,用于点击跳转)
* @param bizId 业务ID(如订单ID)
*/
void pushToRider(Long riderId, String title, String content, String bizType, Long bizId);
/**
* 按城市广播(按 tag = "city_<cityId>",App 端登录时按所属城市设置 tag)
*/
void pushToCity(Long cityId, String title, String content, String bizType);
}