package com.red.circle.other.app.command.user;
import com.red.circle.other.app.convertor.material.PropsRedPacketSkinAppConvertor;
import com.red.circle.other.infra.database.rds.service.props.PropsRedPacketSkinService;
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.Component;

/**
 * @author longli on  2024/3/22
 */

@Component
@RequiredArgsConstructor
public class PropsRedPacketSkinQryExe {

  private final PropsRedPacketSkinService propsRedPacketSkinService;
  private final PropsRedPacketSkinAppConvertor propsRedPacketSkinAppConvertor;

  public PropsRedPacketSkinDTO execute(Long id) {

    return propsRedPacketSkinAppConvertor.toPropsRedPacketSkinDTO(propsRedPacketSkinService.getById(id));
  }

}
