yinbentan
2024-07-03 6c4567aadbf6b35569e1ab2b1d726aba90eff4ab
1
2
3
4
5
6
7
8
9
10
11
12
package opa
 
default allow = false
 
allow {
#    startswith(input.path, "/api")#path以/api开头则允许
    input.checkNum > 0 #大于0验证,否则不验证
}
 
operation {
    input.checkNum > 0 #大于0验证,否则不验证
}