dff-util 1.0.6 → 1.0.8

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.
package/README.md CHANGED
@@ -175,7 +175,7 @@ export type SessionInfo = {
175
175
  email?: string;
176
176
  mobile?: string;
177
177
  name?: string;
178
- role: string;
178
+ roles: string[];
179
179
  requestId?: string;
180
180
  token?: string;
181
181
  iat?: number;
@@ -192,14 +192,19 @@ export type SessionUser = {
192
192
  email?: string;
193
193
  mobile?: string;
194
194
  name?: string;
195
- role: string;
195
+ roles: string[];
196
196
  };
197
197
  ```
198
198
 
199
199
  ## ResponseType
200
200
 
201
201
  ```
202
- ResponseType
202
+ ResponseType = {
203
+ status?: string | number;
204
+ data?: any;
205
+ error?: any;
206
+ };
207
+
203
208
  ```
204
209
 
205
210
  ## file upload test
@@ -3,7 +3,7 @@ export type SessionInfo = {
3
3
  email?: string;
4
4
  mobile?: string;
5
5
  name?: string;
6
- role: string;
6
+ roles: string[];
7
7
  requestId?: string;
8
8
  token?: string;
9
9
  iat?: number;
@@ -15,7 +15,7 @@ export type SessionUser = {
15
15
  email?: string;
16
16
  mobile?: string;
17
17
  name?: string;
18
- role: string;
18
+ roles: string[];
19
19
  };
20
20
  export type ResponseType = {
21
21
  status?: string | number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dff-util",
3
- "version": "1.0.6",
3
+ "version": "1.0.8",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {