package com.wecloud.im.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wecloud.im.entity.ImClientDevice;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * @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);

}
