package com.jeesharp.business.modules.coupon.application.api;

import com.jeesharp.business.modules.coupon.api.MemberCouponGrantApi;
import com.jeesharp.business.modules.coupon.application.MemberCouponApplicationService;
import com.jeesharp.business.modules.coupon.dto.MemberCouponGrantDTO;
import lombok.AllArgsConstructor;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
 * {@link MemberCouponGrantApi} 实现，委托 {@link MemberCouponApplicationService}。
 *
 * @author jeesharp
 * @since 2026-06-08
 */
@Service
@AllArgsConstructor
public class MemberCouponGrantApiImpl implements MemberCouponGrantApi {

    private final MemberCouponApplicationService memberCouponApplicationService;

    @Override
    public Map<String, Object> grantByAdmin(MemberCouponGrantDTO dto) {
        return memberCouponApplicationService.grantByAdmin(dto);
    }
}
