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

import com.red.circle.common.business.dto.cmd.AppExtCommand;
import com.red.circle.common.business.dto.cmd.app.AppIdLongCmd;
import com.red.circle.other.app.command.material.EmojiBuyExe;
import com.red.circle.other.app.command.material.query.EmojiAllQryExe;
import com.red.circle.other.app.command.material.query.UserEmojiBackpackQryExe;
import com.red.circle.other.app.dto.clientobject.material.UserEmojiBagCO;
import java.util.List;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

/**
 * 表情包服务 实现.
 *
 * @author pengliang on 2021/10/25
 */
@Service
@RequiredArgsConstructor
public class EmojiServiceImpl implements EmojiService {

  private final EmojiBuyExe emojiBuyExe;
  private final EmojiAllQryExe emojiAllQryExe;
  private final UserEmojiBackpackQryExe userEmojiBackpackQryExe;

  @Override
  public List<UserEmojiBagCO> listByUserEmoji(AppExtCommand cmd) {
    return userEmojiBackpackQryExe.execute(cmd);
  }

  @Override
  public List<UserEmojiBagCO> listEmojiAll(AppExtCommand cmd) {
    return emojiAllQryExe.execute(cmd);
  }

  @Override
  public void purchaseEmoji(AppIdLongCmd cmd) {
    emojiBuyExe.execute(cmd);
  }


}
