package com.red.circle.console.app.service.app.team.bd;

import com.red.circle.console.app.dto.clienobject.team.bd.TeamBdCO;
import com.red.circle.console.app.dto.clienobject.team.bd.TeamBdWorkStatisticsCO;
import com.red.circle.console.app.dto.cmd.app.team.bd.TeamBdAddCmd;
import com.red.circle.framework.dto.PageResult;
import com.red.circle.other.inner.model.cmd.team.bd.BdTeamPageQryCmd;
import com.red.circle.other.inner.model.cmd.team.bd.BdTeamUpdateOpsCmd;
import com.red.circle.other.inner.model.cmd.team.bd.BdTeamWorkStatisticsQryCmd;
import com.red.circle.other.inner.model.dto.agency.bd.BdTeamInfoDTO;

/**
 * DB管理.
 *
 * @author pengshigang on 2022/7/20
 */
public interface TeamBDInfoService {

  /**
   * BD分页列表.
   */
  PageResult<TeamBdCO> pageOps(BdTeamPageQryCmd qryCmd);

  /**
   * bd工作统计
   * @param qryCmd
   * @return
   */
  PageResult<TeamBdWorkStatisticsCO> pageWorkStatistics(BdTeamWorkStatisticsQryCmd qryCmd);

  /**
   * 获取bd信息.
   */
  BdTeamInfoDTO getByUserId(Long userId);

  /**
   * 修改bd信息.
   */
  void updateById(BdTeamUpdateOpsCmd cmd);

  /**
   * 添加BD.
   */
  void addBd(TeamBdAddCmd cmd);

  /**
   * 删除BD.
   */
  void deleteById(Long id, Long createUserId);


}
