@zhubangyun/lowcode-core 5.4.291 → 5.4.292

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -19,9 +19,9 @@ export interface FilterRule {
19
19
  }
20
20
  export declare type OperatorType = "eq" | "ne" | "gt" | "goe" | "lt" | "loe" | "like" | "notLike" | "in" | "notIn" | "isNull" | "isNotNull" | "between" | "notBetween";
21
21
  export interface RestSearchParams {
22
- page: number;
23
- pageSize: number;
24
- filterRules: FilterRule[];
22
+ page?: number;
23
+ pageSize?: number;
24
+ filterRules?: FilterRule[];
25
25
  }
26
26
  export declare abstract class BaseRestApi<DataType> {
27
27
  uri: string;
@@ -29,7 +29,7 @@ export declare abstract class BaseRestApi<DataType> {
29
29
  request: AxiosInstance;
30
30
  protected constructor(uri: string, options?: RestApiOptions);
31
31
  abstract handleRequestConfig(config: AxiosRequestConfig): void;
32
- search(params: RestSearchParams): Promise<ManyResult<DataType>>;
32
+ search(params?: RestSearchParams): Promise<ManyResult<DataType>>;
33
33
  /**
34
34
  * 通过id获取
35
35
  * @param id
@@ -19,9 +19,9 @@ export interface FilterRule {
19
19
  }
20
20
  export declare type OperatorType = "eq" | "ne" | "gt" | "goe" | "lt" | "loe" | "like" | "notLike" | "in" | "notIn" | "isNull" | "isNotNull" | "between" | "notBetween";
21
21
  export interface RestSearchParams {
22
- page: number;
23
- pageSize: number;
24
- filterRules: FilterRule[];
22
+ page?: number;
23
+ pageSize?: number;
24
+ filterRules?: FilterRule[];
25
25
  }
26
26
  export declare abstract class BaseRestApi<DataType> {
27
27
  uri: string;
@@ -29,7 +29,7 @@ export declare abstract class BaseRestApi<DataType> {
29
29
  request: AxiosInstance;
30
30
  protected constructor(uri: string, options?: RestApiOptions);
31
31
  abstract handleRequestConfig(config: AxiosRequestConfig): void;
32
- search(params: RestSearchParams): Promise<ManyResult<DataType>>;
32
+ search(params?: RestSearchParams): Promise<ManyResult<DataType>>;
33
33
  /**
34
34
  * 通过id获取
35
35
  * @param id
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zhubangyun/lowcode-core",
3
- "version": "5.4.291",
3
+ "version": "5.4.292",
4
4
  "description": "低代码核心",
5
5
  "files": [
6
6
  "lib",