package com.jxy.marketall.service;


import com.jxy.common.core.web.Result.AjaxResult;
import com.jxy.marketall.dto.SubscriptionContentDto;
import com.jxy.marketall.vo.IdVo;
import com.jxy.marketall.vo.PageVo;
import com.jxy.marketall.vo.SubscriptionContentVo;

import java.util.List;


/**
 * @Description 消息订阅业务
 * @Date 2024/2/17 14:40
 * @Author 杜懿
 */
public interface MsgSubService {

    /***
     * 订阅指标
     * @param vo
     * @return
     */
    public AjaxResult subscriptionMsg(SubscriptionContentVo vo);

    /***
     * 取消订阅
     * @param vo
     * @return
     */
    public AjaxResult cancelSubscription(IdVo vo);

    /***
     * 查看当前用户订阅列表
     * @param
     * @param vo
     * @return
     */
    public List<SubscriptionContentDto> getUserSubscriptList(PageVo vo);

    public List<SubscriptionContentDto> getSubListByChannel(String channel);

}
