package com.red.circle.console.app.service.app.props;

import com.red.circle.framework.core.asserts.ResponseAssert;
import com.red.circle.other.inner.endpoint.material.props.PropsRedPacketSkinClient;
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 PropsRedPacketSkinClient propsRedPacketSkinClient;

  @Override
  public PropsRedPacketSkinDTO getPropsRedPacketSkin(Long id) {
    return ResponseAssert.requiredSuccess(propsRedPacketSkinClient.getPropsRedPacketSkin(id));
  }

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