PushClientInfoDao.java 853 Bytes
package com.brframework.commonapppush.dao;

import com.brframework.commonapppush.entity.PushClientInfo;
import com.brframework.commondb.core.CommonRepository;

/**
 * @author xu
 * @date 2019/11/18 19:18
 */
public interface PushClientInfoDao extends CommonRepository<Long, PushClientInfo> {

    /**
     * 通过设备查询
     * @param deviceTokens
     * @return
     */
    PushClientInfo findByDeviceTokens(String deviceTokens);

    /**
     * 通过用户查询
     * @param userTokens
     * @return
     */
    PushClientInfo findByUserTokens(String userTokens);

    /**
     * 通过设备删除
     * @param deviceTokens
     * @return
     */
    Integer deleteByDeviceTokens(String deviceTokens);

    /**
     * 通过用户删除
     * @param userTokens
     * @return
     */
    Integer deleteByUserTokens(String userTokens);

}