package com.red.circle.other.app.service.sys;

import com.red.circle.common.business.dto.cmd.AppExtCommand;
import com.red.circle.other.app.command.sys.query.LatestAndReviewVersionManageGetQryExe;
import com.red.circle.other.app.command.sys.query.LatestVersionManageGetQryExe;
import com.red.circle.other.app.dto.clientobject.sys.VersionManageCO;
import com.red.circle.other.app.dto.clientobject.sys.VersionManageLatestAndReviewCO;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

/**
 * 系统app版本管理 实现.
 *
 * @author pengliang on 2020/11/14
 */
@Service
@RequiredArgsConstructor
public class SysAppVersionManageServiceImpl implements SysAppVersionManageService {

  private final LatestVersionManageGetQryExe latestVersionManageGetQryExe;
  private final LatestAndReviewVersionManageGetQryExe latestAndReviewVersionManageGetQryExe;

  @Override
  public VersionManageCO getLatestVersionManage(AppExtCommand cmd) {
    return latestVersionManageGetQryExe.execute(cmd);
  }

  @Override
  public VersionManageLatestAndReviewCO getVersionManageLatestAndReview(AppExtCommand cmd) {
    return latestAndReviewVersionManageGetQryExe.execute(cmd);
  }
}
