/*
|
* @Description: file content
|
* @Author: Ben Lin
|
* @version:
|
* @Date: 2024-06-18 15:09:47
|
* @LastEditors: Ben Lin
|
* @LastEditTime: 2024-10-06 16:26:05
|
*/
|
export interface BasicPageParams {
|
page: number;
|
pageSize: number;
|
}
|
|
export interface BasicFetchResult<T> {
|
items: T[];
|
total: number;
|
}
|
|
export interface ApiActionPage {
|
id: string;
|
dataType: string;
|
isAsync: boolean;
|
Options: {} | undefined;
|
timestamp: string;
|
isSuccessed: boolean;
|
statusCode: number;
|
message: string;
|
Data: {
|
pageAble_T: 'string';
|
draw: number;
|
pageIndex: number;
|
pageSize: number;
|
recordsTotal: number;
|
recordsFiltered: number;
|
data: [];
|
data2: {};
|
sqlcmd: string;
|
totals: number;
|
};
|
}
|
|
export interface AuthOption {
|
UserId: string;
|
ByOrg: boolean;
|
ByProd: boolean;
|
ByWh: boolean;
|
CurOrg: string;
|
OrgCode: string;
|
}
|
export interface localeMsg {
|
Key: string;
|
Args: [];
|
}
|
|
export interface ApiAction<T> {
|
ID: string;
|
DataAssembly: string;
|
Options: {} | undefined;
|
DataType: string;
|
IsAsync: boolean;
|
Timestamp: string;
|
IsSuccessed: boolean;
|
StatusCode: number;
|
Message: string;
|
Data: T;
|
LocaleMsg: localeMsg | undefined;
|
NeedInclude: boolean;
|
}
|
export interface ApiActionJob<T> {
|
ID: string;
|
DataAssembly: string;
|
Option: {};
|
DataType: string;
|
IsAsync: boolean;
|
Timestamp: string;
|
IsSuccessed: boolean;
|
StatusCode: number;
|
Message: string;
|
Data: {
|
jobName: string;
|
period: number;
|
remark: string;
|
};
|
}
|
|
export interface QueryAble {
|
QueryAble_T: string;
|
page: object;
|
where: string;
|
order: string;
|
Items: [];
|
}
|