package com.wecloud.im.biz.module.message.mapper;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wecloud.im.biz.module.message.entity.ImClientDevice;

/**
 * @Author wenzhida
 * @Date 2022/3/2 14:57
 * @Description 客户端设备mapper
 */
@Repository
public interface ImClientDeviceMapper extends BaseMapper<ImClientDevice> {

    /**
     * 清除旧token
     * @param appId
     * @param deviceToken
     * @return
     */
    int removeOldToken(@Param("appId") Long appId, @Param("deviceToken") String deviceToken);

}
