add
yj
2024-12-05 b9900893177c78fc559223521fe839aa21000017
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
package com.dobbinsoft.fw.pay.anntation;
 
import com.dobbinsoft.fw.pay.enums.PayChannelType;
import com.dobbinsoft.fw.pay.enums.PayPlatformType;
 
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
 
@Target({ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
public @interface MatrixNotNull {
 
    /**
     * 需要非空的平台
     * @return
     */
    PayChannelType[] channels() default {PayChannelType.WX, PayChannelType.ALI, PayChannelType.YSF};
 
    /**
     * 若为空,返回的异常信息
     * 可使用转义占位符 {channel}
     * @return
     */
    String msg();
 
}