package com.red.circle.other.app.service.user.user;
import com.red.circle.other.app.command.user.PropsRedPacketSkinQryExe;
import com.red.circle.other.app.command.user.PropsRedPacketSkinSaveExe;
import com.red.circle.other.inner.model.cmd.material.PropsRedPacketSkinCmd;
import com.red.circle.other.inner.model.dto.material.PropsRedPacketSkinDTO;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

/**
 * 红包皮肤图片表
 *
 * @author zongpubin on 2024/1/29
 */
@Service
@RequiredArgsConstructor
public class RedPacketSkinServiceImpl implements RedPacketSkinService {

  private final PropsRedPacketSkinQryExe propsRedPacketSkinQryExe;
  private final PropsRedPacketSkinSaveExe propsRedPacketSkinSaveExe;

  @Override
  public PropsRedPacketSkinDTO getPropsRedPacketSkin(Long id) {

    return propsRedPacketSkinQryExe.execute(id);
  }

  @Override
  public void saveRedPacketSkin(PropsRedPacketSkinCmd skinParam) {
    propsRedPacketSkinSaveExe.execute(skinParam);
  }
}
