diff --git a/common/models/main-aorders.js b/common/models/main-aorders.js new file mode 100644 index 0000000000000000000000000000000000000000..e9832c22819eccf198cb8a3d115ecc78a52996a4 --- /dev/null +++ b/common/models/main-aorders.js @@ -0,0 +1,5 @@ +'use strict'; + +module.exports = function(Mainaorders) { + +}; diff --git a/common/models/main-aorders.json b/common/models/main-aorders.json new file mode 100644 index 0000000000000000000000000000000000000000..dfe28d2428ca8f4e392374465b87c88b1e84ba02 --- /dev/null +++ b/common/models/main-aorders.json @@ -0,0 +1,63 @@ +{ + "name": "MainAorders", + "base": "PersistedModel", + "idInjection": false, + "options": { + "validateUpsert": true + }, + "mysql": { + "schema": "wordpress", + "table": "main_aorders" + }, + "properties": { + "id": { + "type": "String", + "required": false, + "length": 36, + "precision": null, + "scale": null, + "mysql": { + "columnName": "id", + "dataType": "varchar", + "dataLength": 36, + "dataPrecision": null, + "dataScale": null, + "nullable": "Y" + } + }, + "name": { + "type": "String", + "required": true, + "length": 4, + "precision": null, + "scale": null, + "mysql": { + "columnName": "name", + "dataType": "varchar", + "dataLength": 4, + "dataPrecision": null, + "dataScale": null, + "nullable": "N" + } + }, + "vlaue": { + "type": "Number", + "required": false, + "length": null, + "precision": 33, + "scale": 0, + "mysql": { + "columnName": "vlaue", + "dataType": "decimal", + "dataLength": null, + "dataPrecision": 33, + "dataScale": 0, + "nullable": "Y" + } + } + }, + "validations": [], + "relations": {}, + "acls": [], + "methods": {} +} diff --git a/definitions/RuiPengLoopbackApi.yaml b/definitions/RuiPengLoopbackApi.yaml index 247546f5dbdbddd153f04f4b25c13eaacdb96c47..e3bfd333ecd7bfc0adc25b762897144e82ac45da 100644 --- a/definitions/RuiPengLoopbackApi.yaml +++ b/definitions/RuiPengLoopbackApi.yaml @@ -32878,6 +32878,392 @@ paths: type: number format: double deprecated: false + /MainAorders: + post: + tags: + - MainAorders + summary: Create a new instance of the model and persist it into the data source. + operationId: MainAorders.create + parameters: + - name: data + in: body + description: Model instance data + required: false + schema: + description: Model instance data + $ref: '#/definitions/MainAorders' + responses: + '200': + description: Request was successful + schema: + $ref: '#/definitions/MainAorders' + deprecated: false + patch: + tags: + - MainAorders + summary: >- + Patch an existing model instance or insert a new one into the data + source. + operationId: MainAorders.patchOrCreate + parameters: + - name: data + in: body + description: Model instance data + required: false + schema: + description: Model instance data + $ref: '#/definitions/MainAorders' + responses: + '200': + description: Request was successful + schema: + $ref: '#/definitions/MainAorders' + deprecated: false + put: + tags: + - MainAorders + summary: >- + Replace an existing model instance or insert a new one into the data + source. + operationId: MainAorders.replaceOrCreate__put_MainAorders + parameters: + - name: data + in: body + description: Model instance data + required: false + schema: + description: Model instance data + $ref: '#/definitions/MainAorders' + responses: + '200': + description: Request was successful + schema: + $ref: '#/definitions/MainAorders' + deprecated: false + get: + tags: + - MainAorders + summary: Find all instances of the model matched by filter from the data source. + operationId: MainAorders.find + parameters: + - name: filter + in: query + description: >- + Filter defining fields, where, include, order, offset, and limit - + must be a JSON-encoded string (`{"where":{"something":"value"}}`). + See + https://loopback.io/doc/en/lb3/Querying-data.html#using-stringified-json-in-rest-queries + for more details. + required: false + type: string + format: JSON + responses: + '200': + description: Request was successful + schema: + type: array + items: + $ref: '#/definitions/MainAorders' + deprecated: false + /MainAorders/replaceOrCreate: + post: + tags: + - MainAorders + summary: >- + Replace an existing model instance or insert a new one into the data + source. + operationId: MainAorders.replaceOrCreate__post_MainAorders_replaceOrCreate + parameters: + - name: data + in: body + description: Model instance data + required: false + schema: + description: Model instance data + $ref: '#/definitions/MainAorders' + responses: + '200': + description: Request was successful + schema: + $ref: '#/definitions/MainAorders' + deprecated: false + /MainAorders/upsertWithWhere: + post: + tags: + - MainAorders + summary: >- + Update an existing model instance or insert a new one into the data + source based on the where criteria. + operationId: MainAorders.upsertWithWhere + parameters: + - name: where + in: query + description: Criteria to match model instances + required: false + type: string + format: JSON + - name: data + in: body + description: An object of model property name/value pairs + required: false + schema: + description: An object of model property name/value pairs + $ref: '#/definitions/MainAorders' + responses: + '200': + description: Request was successful + schema: + $ref: '#/definitions/MainAorders' + deprecated: false + '/MainAorders/{id}/exists': + get: + tags: + - MainAorders + summary: Check whether a model instance exists in the data source. + operationId: 'MainAorders.exists__get_MainAorders_{id}_exists' + parameters: + - name: id + in: path + description: Model id + required: true + type: string + format: JSON + responses: + '200': + description: Request was successful + schema: + type: object + properties: + exists: + type: boolean + deprecated: false + '/MainAorders/{id}': + head: + tags: + - MainAorders + summary: Check whether a model instance exists in the data source. + operationId: 'MainAorders.exists__head_MainAorders_{id}' + parameters: + - name: id + in: path + description: Model id + required: true + type: string + format: JSON + responses: + '200': + description: Request was successful + schema: + type: object + properties: + exists: + type: boolean + deprecated: false + get: + tags: + - MainAorders + summary: 'Find a model instance by {{id}} from the data source.' + operationId: MainAorders.findById + parameters: + - name: id + in: path + description: Model id + required: true + type: string + format: JSON + - name: filter + in: query + description: >- + Filter defining fields and include - must be a JSON-encoded string + ({"something":"value"}) + required: false + type: string + format: JSON + responses: + '200': + description: Request was successful + schema: + $ref: '#/definitions/MainAorders' + deprecated: false + put: + tags: + - MainAorders + summary: >- + Replace attributes for a model instance and persist it into the data + source. + operationId: 'MainAorders.replaceById__put_MainAorders_{id}' + parameters: + - name: id + in: path + description: Model id + required: true + type: string + format: JSON + - name: data + in: body + description: Model instance data + required: false + schema: + description: Model instance data + $ref: '#/definitions/MainAorders' + responses: + '200': + description: Request was successful + schema: + $ref: '#/definitions/MainAorders' + deprecated: false + delete: + tags: + - MainAorders + summary: 'Delete a model instance by {{id}} from the data source.' + operationId: MainAorders.deleteById + parameters: + - name: id + in: path + description: Model id + required: true + type: string + format: JSON + responses: + '200': + description: Request was successful + schema: + type: object + deprecated: false + patch: + tags: + - MainAorders + summary: >- + Patch attributes for a model instance and persist it into the data + source. + operationId: MainAorders.prototype.patchAttributes + parameters: + - name: id + in: path + description: MainAorders id + required: true + type: string + format: JSON + - name: data + in: body + description: An object of model property name/value pairs + required: false + schema: + description: An object of model property name/value pairs + $ref: '#/definitions/MainAorders' + responses: + '200': + description: Request was successful + schema: + $ref: '#/definitions/MainAorders' + deprecated: false + '/MainAorders/{id}/replace': + post: + tags: + - MainAorders + summary: >- + Replace attributes for a model instance and persist it into the data + source. + operationId: 'MainAorders.replaceById__post_MainAorders_{id}_replace' + parameters: + - name: id + in: path + description: Model id + required: true + type: string + format: JSON + - name: data + in: body + description: Model instance data + required: false + schema: + description: Model instance data + $ref: '#/definitions/MainAorders' + responses: + '200': + description: Request was successful + schema: + $ref: '#/definitions/MainAorders' + deprecated: false + /MainAorders/findOne: + get: + tags: + - MainAorders + summary: Find first instance of the model matched by filter from the data source. + operationId: MainAorders.findOne + parameters: + - name: filter + in: query + description: >- + Filter defining fields, where, include, order, offset, and limit - + must be a JSON-encoded string (`{"where":{"something":"value"}}`). + See + https://loopback.io/doc/en/lb3/Querying-data.html#using-stringified-json-in-rest-queries + for more details. + required: false + type: string + format: JSON + responses: + '200': + description: Request was successful + schema: + $ref: '#/definitions/MainAorders' + deprecated: false + /MainAorders/update: + post: + tags: + - MainAorders + summary: 'Update instances of the model matched by {{where}} from the data source.' + operationId: MainAorders.updateAll + parameters: + - name: where + in: query + description: Criteria to match model instances + required: false + type: string + format: JSON + - name: data + in: body + description: An object of model property name/value pairs + required: false + schema: + description: An object of model property name/value pairs + $ref: '#/definitions/MainAorders' + responses: + '200': + description: Request was successful + schema: + description: Information related to the outcome of the operation + type: object + properties: + count: + description: The number of instances updated + type: number + format: double + deprecated: false + /MainAorders/count: + get: + tags: + - MainAorders + summary: Count instances of the model matched by where from the data source. + operationId: MainAorders.count + parameters: + - name: where + in: query + description: Criteria to match model instances + required: false + type: string + format: JSON + responses: + '200': + description: Request was successful + schema: + type: object + properties: + count: + type: number + format: double + deprecated: false definitions: DashboardHospitalAwenCount: properties: @@ -34252,6 +34638,20 @@ definitions: required: - value additionalProperties: false + MainAorders: + properties: + id: + maxLength: 36 + type: string + name: + maxLength: 4 + type: string + vlaue: + type: number + format: double + required: + - name + additionalProperties: false basePath: /api/ruipeng swagger: '2.0' info: diff --git a/server/model-config.json b/server/model-config.json index 033e770c9728245a9d6e048fb61dd34d91e129a6..fa7705f55cc88ac2014b727cc165d23bacf46872 100644 --- a/server/model-config.json +++ b/server/model-config.json @@ -352,5 +352,9 @@ "MainCompanyarea": { "dataSource": "ruipeng", "public": true + }, + "MainAorders": { + "dataSource": "ruipeng", + "public": true } }