package com.seer.teach.common.aspect;

import com.seer.teach.common.context.PromptContextHolder;
import org.aspectj.lang.annotation.After;
import org.aspectj.lang.annotation.Aspect;
import org.springframework.stereotype.Component;

/**
 *
 * <p>
 *
 * </p >
 *
 * @author Captain
 * @since 2025-11-05 10:20
 */
@Aspect
@Component
public class PromptContextClearAspect {

    @After("within(@org.springframework.web.bind.annotation.RestController *)")
    public void clear() {
        PromptContextHolder.clear();
    }

}