fy-http 1.0.0 → 1.0.2
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/dist/base/CURDController.d.ts +1 -0
- package/dist/base/CURDController.d.ts.map +1 -1
- package/dist/base/CURDController.js +4 -0
- package/dist/base/CURDController.js.map +1 -1
- package/dist/index.d.ts +14 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +24 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CURDController.d.ts","sourceRoot":"","sources":["../../src/base/CURDController.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAA;AACrD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AAKjD,qBAAa,cAAe,SAAQ,cAAc;IAK9C,GAAG,CAAC,IAAI,EAAE,YAAY;IAStB,UAAU,CAAC,IAAI,EAAE,YAAY;IAS7B,MAAM,CAAC,IAAI,EAAE,YAAY;IASzB,UAAU,CAAC,IAAI,EAAE,YAAY;
|
|
1
|
+
{"version":3,"file":"CURDController.d.ts","sourceRoot":"","sources":["../../src/base/CURDController.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAA;AACrD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AAKjD,qBAAa,cAAe,SAAQ,cAAc;IAK9C,GAAG,CAAC,IAAI,EAAE,YAAY;IAStB,UAAU,CAAC,IAAI,EAAE,YAAY;IAS7B,MAAM,CAAC,IAAI,EAAE,YAAY;IASzB,UAAU,CAAC,IAAI,EAAE,YAAY;IAS7B,IAAI,CAAC,IAAI,EAAE,YAAY;CAI1B"}
|
|
@@ -19,6 +19,10 @@ class CURDController extends ReadController_1.ReadController {
|
|
|
19
19
|
para.url = `/${this.name}/updateByID`;
|
|
20
20
|
this.put(para);
|
|
21
21
|
}
|
|
22
|
+
sort(para) {
|
|
23
|
+
para.url = `/${this.name}/sort`;
|
|
24
|
+
this.put(para);
|
|
25
|
+
}
|
|
22
26
|
}
|
|
23
27
|
exports.CURDController = CURDController;
|
|
24
28
|
//# sourceMappingURL=CURDController.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CURDController.js","sourceRoot":"","sources":["../../src/base/CURDController.ts"],"names":[],"mappings":";;;AACA,qDAAiD;AAKjD,MAAa,cAAe,SAAQ,+BAAc;IAK9C,GAAG,CAAC,IAAkB;QAClB,IAAI,CAAC,GAAG,GAAG,IAAI,IAAI,CAAC,IAAI,MAAM,CAAA;QAC9B,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;IACnB,CAAC;IAMD,UAAU,CAAC,IAAkB;QACzB,IAAI,CAAC,GAAG,GAAG,IAAI,IAAI,CAAC,IAAI,aAAa,CAAA;QACrC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,CAAA;IACrB,CAAC;IAMD,MAAM,CAAC,IAAkB;QACrB,IAAI,CAAC,GAAG,GAAG,IAAI,IAAI,CAAC,IAAI,SAAS,CAAA;QACjC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,CAAA;IACrB,CAAC;IAMD,UAAU,CAAC,IAAkB;QACzB,IAAI,CAAC,GAAG,GAAG,IAAI,IAAI,CAAC,IAAI,aAAa,CAAA;QACrC,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,CAAA;IAClB,CAAC;CACJ;
|
|
1
|
+
{"version":3,"file":"CURDController.js","sourceRoot":"","sources":["../../src/base/CURDController.ts"],"names":[],"mappings":";;;AACA,qDAAiD;AAKjD,MAAa,cAAe,SAAQ,+BAAc;IAK9C,GAAG,CAAC,IAAkB;QAClB,IAAI,CAAC,GAAG,GAAG,IAAI,IAAI,CAAC,IAAI,MAAM,CAAA;QAC9B,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;IACnB,CAAC;IAMD,UAAU,CAAC,IAAkB;QACzB,IAAI,CAAC,GAAG,GAAG,IAAI,IAAI,CAAC,IAAI,aAAa,CAAA;QACrC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,CAAA;IACrB,CAAC;IAMD,MAAM,CAAC,IAAkB;QACrB,IAAI,CAAC,GAAG,GAAG,IAAI,IAAI,CAAC,IAAI,SAAS,CAAA;QACjC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,CAAA;IACrB,CAAC;IAMD,UAAU,CAAC,IAAkB;QACzB,IAAI,CAAC,GAAG,GAAG,IAAI,IAAI,CAAC,IAAI,aAAa,CAAA;QACrC,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,CAAA;IAClB,CAAC;IAMD,IAAI,CAAC,IAAkB;QACnB,IAAI,CAAC,GAAG,GAAG,IAAI,IAAI,CAAC,IAAI,OAAO,CAAA;QAC/B,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,CAAA;IAClB,CAAC;CACJ;AA7CD,wCA6CC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,22 @@
|
|
|
1
|
+
import { WhereType } from './models/WhereType';
|
|
2
|
+
import { QuerySort } from './models/QuerySort';
|
|
3
|
+
import { QueryParameter } from './models/QueryParameter';
|
|
4
|
+
import { QueryCondition } from './models/QueryCondition';
|
|
5
|
+
import { OrderByType } from './models/OrderByType';
|
|
6
|
+
import { CSharpDataType } from './models/CSharpDataType';
|
|
7
|
+
import { ConditionalType } from './models/ConditionalType';
|
|
8
|
+
import { APIResult } from './models/APIResult';
|
|
9
|
+
import { APIParameter } from './models/APIParameter';
|
|
1
10
|
import { AxiosInstance } from 'axios';
|
|
11
|
+
import { BaseController } from './base/BaseController';
|
|
12
|
+
import { CURDController } from './base/CURDController';
|
|
13
|
+
import { ReadController } from './base/ReadController';
|
|
2
14
|
declare const _default: {
|
|
3
15
|
install: (app: any, options: {
|
|
4
16
|
axiosInstance: AxiosInstance;
|
|
5
17
|
}) => void;
|
|
6
18
|
};
|
|
7
19
|
export default _default;
|
|
20
|
+
export { BaseController, CURDController, ReadController };
|
|
21
|
+
export { APIParameter, APIResult, ConditionalType, CSharpDataType, OrderByType, QueryCondition, QueryParameter, QuerySort, WhereType };
|
|
8
22
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAA;;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAA;AAC9C,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAA;AAC9C,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAA;AACxD,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAA;AACxD,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAA;AACxD,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAA;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAA;AAC9C,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAA;AACpD,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAA;AAErC,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAA;AACtD,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAA;AACtD,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAA;;mBAEhC,GAAG,WAAW;QAAE,aAAa,EAAE,aAAa,CAAA;KAAE;;AAQpE,wBAA0B;AAC1B,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,cAAc,EAAE,CAAA;AACzD,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,eAAe,EAAE,cAAc,EAAE,WAAW,EAAE,cAAc,EAAE,cAAc,EAAE,SAAS,EAAE,SAAS,EAAE,CAAA"}
|
package/dist/index.js
CHANGED
|
@@ -1,9 +1,32 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WhereType = exports.QuerySort = exports.QueryParameter = exports.QueryCondition = exports.OrderByType = exports.ConditionalType = exports.APIResult = exports.APIParameter = exports.ReadController = exports.CURDController = exports.BaseController = void 0;
|
|
4
|
+
const WhereType_1 = require("./models/WhereType");
|
|
5
|
+
Object.defineProperty(exports, "WhereType", { enumerable: true, get: function () { return WhereType_1.WhereType; } });
|
|
6
|
+
const QuerySort_1 = require("./models/QuerySort");
|
|
7
|
+
Object.defineProperty(exports, "QuerySort", { enumerable: true, get: function () { return QuerySort_1.QuerySort; } });
|
|
8
|
+
const QueryParameter_1 = require("./models/QueryParameter");
|
|
9
|
+
Object.defineProperty(exports, "QueryParameter", { enumerable: true, get: function () { return QueryParameter_1.QueryParameter; } });
|
|
10
|
+
const QueryCondition_1 = require("./models/QueryCondition");
|
|
11
|
+
Object.defineProperty(exports, "QueryCondition", { enumerable: true, get: function () { return QueryCondition_1.QueryCondition; } });
|
|
12
|
+
const OrderByType_1 = require("./models/OrderByType");
|
|
13
|
+
Object.defineProperty(exports, "OrderByType", { enumerable: true, get: function () { return OrderByType_1.OrderByType; } });
|
|
14
|
+
const ConditionalType_1 = require("./models/ConditionalType");
|
|
15
|
+
Object.defineProperty(exports, "ConditionalType", { enumerable: true, get: function () { return ConditionalType_1.ConditionalType; } });
|
|
16
|
+
const APIResult_1 = require("./models/APIResult");
|
|
17
|
+
Object.defineProperty(exports, "APIResult", { enumerable: true, get: function () { return APIResult_1.APIResult; } });
|
|
18
|
+
const APIParameter_1 = require("./models/APIParameter");
|
|
19
|
+
Object.defineProperty(exports, "APIParameter", { enumerable: true, get: function () { return APIParameter_1.APIParameter; } });
|
|
3
20
|
const GlobalConfig_1 = require("./base/GlobalConfig");
|
|
21
|
+
const BaseController_1 = require("./base/BaseController");
|
|
22
|
+
Object.defineProperty(exports, "BaseController", { enumerable: true, get: function () { return BaseController_1.BaseController; } });
|
|
23
|
+
const CURDController_1 = require("./base/CURDController");
|
|
24
|
+
Object.defineProperty(exports, "CURDController", { enumerable: true, get: function () { return CURDController_1.CURDController; } });
|
|
25
|
+
const ReadController_1 = require("./base/ReadController");
|
|
26
|
+
Object.defineProperty(exports, "ReadController", { enumerable: true, get: function () { return ReadController_1.ReadController; } });
|
|
4
27
|
const install = (app, options) => {
|
|
5
28
|
app.config.globalProperties.$http = {
|
|
6
|
-
version: '1.0.
|
|
29
|
+
version: '1.0.1',
|
|
7
30
|
config: options
|
|
8
31
|
};
|
|
9
32
|
GlobalConfig_1.GlobalConfig.service = options.axiosInstance;
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,kDAA8C;AAyB6E,0FAzBlH,qBAAS,OAyBkH;AAxBpI,kDAA8C;AAwBkE,0FAxBvG,qBAAS,OAwBuG;AAvBzH,4DAAwD;AAuBwC,+FAvBvF,+BAAc,OAuBuF;AAtB9G,4DAAwD;AAsBwB,+FAtBvE,+BAAc,OAsBuE;AArB9F,sDAAkD;AAqBiB,4FArB1D,yBAAW,OAqB0D;AAnB9E,8DAA0D;AAmBxB,gGAnBzB,iCAAe,OAmByB;AAlBjD,kDAA8C;AAkBvB,0FAlBd,qBAAS,OAkBc;AAjBhC,wDAAoD;AAiB3C,6FAjBA,2BAAY,OAiBA;AAfrB,sDAAkD;AAClD,0DAAsD;AAa7C,+FAbA,+BAAc,OAaA;AAZvB,0DAAsD;AAY7B,+FAZhB,+BAAc,OAYgB;AAXvC,0DAAsD;AAWb,+FAXhC,+BAAc,OAWgC;AATvD,MAAM,OAAO,GAAG,CAAC,GAAQ,EAAE,OAAyC,EAAE,EAAE;IACpE,GAAG,CAAC,MAAM,CAAC,gBAAgB,CAAC,KAAK,GAAG;QAChC,OAAO,EAAE,OAAO;QAChB,MAAM,EAAE,OAAO;KAClB,CAAA;IACD,2BAAY,CAAC,OAAO,GAAG,OAAO,CAAC,aAAa,CAAA;AAChD,CAAC,CAAA;AAED,kBAAe,EAAE,OAAO,EAAE,CAAA"}
|