mirror of
https://gitee.com/orangeform/orange-admin.git
synced 2026-01-17 10:36:31 +08:00
commit:升级到vue3,更新最近工作流技术栈,支持sa-token
This commit is contained in:
@@ -0,0 +1,39 @@
|
||||
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 OnlineDatasourceRelationController extends BaseController {
|
||||
static list(params: ANY_OBJECT, httpOptions?: RequestOption) {
|
||||
return this.post<TableData<ANY_OBJECT>>(
|
||||
API_CONTEXT + '/online/onlineDatasourceRelation/list',
|
||||
params,
|
||||
httpOptions,
|
||||
);
|
||||
}
|
||||
|
||||
static view(params: ANY_OBJECT, httpOptions?: RequestOption) {
|
||||
return this.get<ANY_OBJECT>(
|
||||
API_CONTEXT + '/online/onlineDatasourceRelation/view',
|
||||
params,
|
||||
httpOptions,
|
||||
);
|
||||
}
|
||||
|
||||
// static export(sender, params, fileName) {
|
||||
// return sender.download(API_CONTEXT + '/online/onlineDatasourceRelation/export', params, fileName);
|
||||
// }
|
||||
|
||||
static add(params: ANY_OBJECT, httpOptions?: RequestOption) {
|
||||
return this.post(API_CONTEXT + '/online/onlineDatasourceRelation/add', params, httpOptions);
|
||||
}
|
||||
|
||||
static update(params: ANY_OBJECT, httpOptions?: RequestOption) {
|
||||
return this.post(API_CONTEXT + '/online/onlineDatasourceRelation/update', params, httpOptions);
|
||||
}
|
||||
|
||||
static delete(params: ANY_OBJECT, httpOptions?: RequestOption) {
|
||||
return this.post(API_CONTEXT + '/online/onlineDatasourceRelation/delete', params, httpOptions);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user