commit:升级到vue3,更新最近工作流技术栈,支持sa-token

This commit is contained in:
Jerry
2024-07-05 22:42:33 +08:00
parent bbcc608584
commit 565ecb6371
1751 changed files with 236790 additions and 0 deletions

View File

@@ -0,0 +1,100 @@
import { BaseController } from '@/api/BaseController';
import { RequestOption } from '@/common/http/types';
import { ANY_OBJECT } from '@/types/generic';
import { TableData } from '@/common/types/table';
import { FormPage } from '@/types/online/page';
import { API_CONTEXT } from '../config';
export default class OnlinePageController extends BaseController {
static list(params: ANY_OBJECT, httpOptions?: RequestOption) {
return this.post<TableData<FormPage>>(
API_CONTEXT + '/online/onlinePage/list',
params,
httpOptions,
);
}
static listAllPageAndForm(params: ANY_OBJECT, httpOptions?: RequestOption) {
return this.post<ANY_OBJECT>(
API_CONTEXT + '/online/onlinePage/listAllPageAndForm',
params,
httpOptions,
);
}
static view(params: ANY_OBJECT, httpOptions?: RequestOption) {
return this.get<FormPage>(API_CONTEXT + '/online/onlinePage/view', params, httpOptions);
}
// static export(sender, params, fileName) {
// return sender.download(API_CONTEXT + '/online/onlinePage/export', params, fileName);
// }
static add(params: ANY_OBJECT, httpOptions?: RequestOption) {
return this.post<string>(API_CONTEXT + '/online/onlinePage/add', params, httpOptions);
}
static update(params: ANY_OBJECT, httpOptions?: RequestOption) {
return this.post<string>(API_CONTEXT + '/online/onlinePage/update', params, httpOptions);
}
static updatePublished(params: ANY_OBJECT, httpOptions?: RequestOption) {
return this.post(API_CONTEXT + '/online/onlinePage/updatePublished', params, httpOptions);
}
static delete(params: ANY_OBJECT, httpOptions?: RequestOption) {
return this.post(API_CONTEXT + '/online/onlinePage/delete', params, httpOptions);
}
static updateStatus(params: ANY_OBJECT, httpOptions?: RequestOption) {
return this.post(API_CONTEXT + '/online/onlinePage/updateStatus', params, httpOptions);
}
static listOnlinePageDatasource(params: ANY_OBJECT, httpOptions?: RequestOption) {
return this.post<TableData<ANY_OBJECT>>(
API_CONTEXT + '/online/onlinePage/listOnlinePageDatasource',
params,
httpOptions,
);
}
static listNotInOnlinePageDatasource(params: ANY_OBJECT, httpOptions?: RequestOption) {
return this.post(
API_CONTEXT + '/online/onlinePage/listNotInOnlinePageDatasource',
params,
httpOptions,
);
}
static addOnlinePageDatasource(params: ANY_OBJECT, httpOptions?: RequestOption) {
return this.post(
API_CONTEXT + '/online/onlinePage/addOnlinePageDatasource',
params,
httpOptions,
);
}
static deleteOnlinePageDatasource(params: ANY_OBJECT, httpOptions?: RequestOption) {
return this.post(
API_CONTEXT + '/online/onlinePage/deleteOnlinePageDatasource',
params,
httpOptions,
);
}
static updateOnlinePageDatasource(params: ANY_OBJECT, httpOptions?: RequestOption) {
return this.post(
API_CONTEXT + '/online/onlinePage/updateOnlinePageDatasource',
params,
httpOptions,
);
}
static viewOnlinePageDatasource(params: ANY_OBJECT, httpOptions?: RequestOption) {
return this.get(
API_CONTEXT + '/online/onlinePage/viewOnlinePageDatasource',
params,
httpOptions,
);
}
}