|
@@ -3,7 +3,6 @@ import { mockUrl } from '@/apiConfig/mock'
|
|
|
// ================================== Rule ======================================
|
|
|
// const mockUrl = 'http://mock.Intra.xiaojukeji.com'
|
|
|
// const mockUrl = 'http://10.179.88.110:8089'
|
|
|
-// const mockUrl = 'http://172.23.160.90:8089'
|
|
|
|
|
|
export function fetchRuleById(data) {
|
|
|
return request({
|
|
@@ -44,3 +43,20 @@ export function changeStatus(data) {
|
|
|
data
|
|
|
})
|
|
|
}
|
|
|
+// 查询支持的操作符
|
|
|
+export function getHttpOp() {
|
|
|
+ return request({
|
|
|
+ url: mockUrl + '/api/mock/ruleEngine/getHttpOp?protocol=http',
|
|
|
+ method: 'get'
|
|
|
+
|
|
|
+ })
|
|
|
+}
|
|
|
+
|
|
|
+// 查询支持的规则表达式
|
|
|
+export function getExpress() {
|
|
|
+ return request({
|
|
|
+ url: mockUrl + '/api/mock/ruleEngine/getExpress?protocol=http',
|
|
|
+ method: 'get'
|
|
|
+ })
|
|
|
+}
|
|
|
+
|