LiveApplyService.java 2.2 KB
package com.cnlive.shenhe.service;

import com.cnlive.shenhe.bean.ResponseBean;
import com.cnlive.shenhe.dto.LiveApplyDTO;
import com.cnlive.shenhe.entity.ShyLiveapply;
import com.github.pagehelper.PageInfo;

import java.util.List;

/**
 * @Author: yan-zhao-wang
 * @DateTime: 2022-11-02 14:26
 */
public interface LiveApplyService {
    /**
     * 导入直播申请
     *
     * @param shyLiveApply
     * @return
     */
    boolean impotLiveApply(ShyLiveapply shyLiveApply);

    /**
     * 根据主键id查询直播申请对象
     *
     * @param id
     * @return
     */
    ShyLiveapply selectByPrimaryKey(Integer id);

    /**
     * 根据条件查询直播申请集合
     *
     * @param shyLiveApply
     * @return
     */
    List<ShyLiveapply> findShyLiveApply(ShyLiveapply shyLiveApply);

    /**
     * 修改直播申请对象  返回布尔类型
     *
     * @param shyLiveApply
     * @return
     */
    boolean updateShyLiveApply(ShyLiveapply shyLiveApply);

    /**
     * 修改直播申请对象 返回int类型
     *
     * @param id
     * @param auditorId
     * @param updater
     * @param status
     * @param msg
     * @return
     */
    int updateLiveApply(Integer id, String auditorId, String updater, Integer status, String msg);

    /**
     * 获取分页、条件查询
     *
     * @param liveApplyDTO
     * @return
     */
    PageInfo<ShyLiveapply> getListLiveApply(LiveApplyDTO liveApplyDTO);

    /**
     * 获取直播申请详情
     *
     * @param id
     * @return
     */
    ShyLiveapply getDetailsLiveApply(Integer id, Integer spId);

    /**
     * 认领
     *
     * @param ids
     * @param num
     * @param userId
     * @param spid
     * @return
     */
    Integer receive(String ids, Integer num, String userId, Integer spid);

    /**
     * 退领
     *
     * @param ids
     * @param userId
     * @return
     */
    ResponseBean retReceive(String ids, String userId);

    /**
     * 根据条件导出数据excel
     *
     * @param liveApplyDTO
     * @return
     */
    List<ShyLiveapply> findByCondition(LiveApplyDTO liveApplyDTO);

    /**
     * 获取审核类型
     *
     * @param shyLiveApply
     */
    void getShenheType(ShyLiveapply shyLiveApply);
}