package com.ruoyi.app.omgpay;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.method.support.HandlerMethodArgumentResolver;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

import java.util.List;

/** Registers the dedicated OMG callback DTO boundary. */
@Configuration
public class OmgNotifyWebMvcConfiguration implements WebMvcConfigurer {
    private final OmgNotifyRequestArgumentResolver resolver;

    public OmgNotifyWebMvcConfiguration(OmgNotifyRequestArgumentResolver resolver) {
        this.resolver = resolver;
    }

    @Override
    public void addArgumentResolvers(List<HandlerMethodArgumentResolver> resolvers) {
        resolvers.add(resolver);
    }
}
