package shop.alien.store.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import shop.alien.entity.result.R;
import shop.alien.entity.store.CommonPushChannelConfig;

public interface CommonPushChannelConfigService extends IService<CommonPushChannelConfig> {

    R<String> add(CommonPushChannelConfig config);

    R<String> deleteById(Long id);

    R<String> update(CommonPushChannelConfig config);

    R<CommonPushChannelConfig> getInfoById(Long id);

    R<IPage<CommonPushChannelConfig>> list(Integer pageNum, Integer pageSize, String channelCode, String platform, Integer enable);

    R<String> toggleEnable(Long id, Integer enable);

    R<String> testConnect(Long id);
}
