---添加事件监听测试

This commit is contained in:
2025-12-16 14:18:43 +08:00
parent 8c9dcae89e
commit e110d372f8
9 changed files with 140 additions and 30 deletions

View File

@ -0,0 +1,21 @@
package com.xjrsoft.common;
import java.util.Map;
import org.springframework.stereotype.Component;
import com.pictc.listener.ListenerParameterContext;
import com.pictc.listener.ListenerR;
import com.pictc.listener.PEventListener;
@Component
public class ListenerDemo {
@PEventListener("#source == 'lng_upload_file'")
public ListenerR<Long> add(ListenerParameterContext context){
Map<String,Object> data = (Map<String, Object>) context.getData();
return ListenerR.success(1L);
}
}