package com.yh.saas.plugin.yiliangyiyun.service;

import com.baomidou.mybatisplus.plugins.Page;
import com.yh.saas.plugin.yiliangyiyun.entity.SettledCompanyDynamics;
import com.baomidou.mybatisplus.service.IService;
import com.yh.saas.plugin.yiliangyiyun.exception.ServiceException;

/**
 * <p>
 * 入驻公司发布动态 服务类
 * </p>
 *
 * @author Gongdc
 * @since 2021-08-28
 */
public interface ISettledCompanyDynamicsService extends IService<SettledCompanyDynamics> {


    /**
     * 发布动态列表
     *
     * @param settledCompanyDynamics
     * @return
     */
    Page<SettledCompanyDynamics> selectSettledCompanyDynamicsPage(SettledCompanyDynamics settledCompanyDynamics);

    /**
     * 发布动态
     *
     * @param settledCompanyDynamics
     * @return
     */
    String addSettledCompanyDynamics(SettledCompanyDynamics settledCompanyDynamics) throws ServiceException;

    /**
     * 删除
     *
     * @param id
     * @return
     */
    void deleteSettledCompanyDynamics(String id);


    /**
     * 审核
     *
     * @param settledCompanyDynamics
     * @return
     */
    String examine(SettledCompanyDynamics settledCompanyDynamics);

    /**
     * 显示隐藏
     *
     * @param id
     * @return
     */
    void showHidden(String id);

    /**
     * 查看详情
     *
     * @param id
     * @return
     */
    SettledCompanyDynamics getSettledCompanyDynamics(String id);

    /**
     * 查看当天发布条数
     * @param phone
     * @return
     */
    Integer count(String phone);
}
