package com.wecloud.im.service.impl;

import com.wecloud.im.entity.ImClientDevice;
import com.wecloud.im.mapper.ImClientDeviceMapper;
import com.wecloud.im.service.ImClientDeviceService;
import io.geekidea.springbootplus.framework.common.service.impl.BaseServiceImpl;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Author wenzhida
 * @Date 2022/3/2 15:00
 * @Description 客户端设备服务接口实现
 */
@Slf4j
@Service
public class ImClientDeviceServiceImpl extends BaseServiceImpl<ImClientDeviceMapper, ImClientDevice> implements ImClientDeviceService {

    @Autowired
    private ImClientDeviceMapper imClientDeviceMapper;

    @Override
    public int removeOldToken(Long appId, String deviceToken) {
        return imClientDeviceMapper.removeOldToken(appId, deviceToken);
    }

}
