Files
orange-admin/OrangeFormsOpen-VUE3/src/api/flow/FlowEntryVariableController.ts

32 lines
1.2 KiB
TypeScript

import { BaseController } from '@/api/BaseController';
import { RequestOption } from '@/common/http/types';
import { ANY_OBJECT } from '@/types/generic';
import { TableData } from '@/common/types/table';
import { API_CONTEXT } from '../config';
export default class FlowEntryVariableController extends BaseController {
static list(params: ANY_OBJECT, httpOptions?: RequestOption) {
return this.post<TableData<ANY_OBJECT>>(
API_CONTEXT + '/flow/flowEntryVariable/list',
params,
httpOptions,
);
}
static add(params: ANY_OBJECT, httpOptions?: RequestOption) {
return this.post(API_CONTEXT + '/flow/flowEntryVariable/add', params, httpOptions);
}
static update(params: ANY_OBJECT, httpOptions?: RequestOption) {
return this.post(API_CONTEXT + '/flow/flowEntryVariable/update', params, httpOptions);
}
static delete(params: ANY_OBJECT, httpOptions?: RequestOption) {
return this.post(API_CONTEXT + '/flow/flowEntryVariable/delete', params, httpOptions);
}
static view(params: ANY_OBJECT, httpOptions?: RequestOption) {
return this.get<ANY_OBJECT>(API_CONTEXT + '/flow/flowEntryVariable/view', params, httpOptions);
}
}