From 22c0912a524fe3548f282ad7697b179cdc03b4be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BD=99=E6=B5=B7=E5=86=9B?= <yuhaijun@haomo.studio.com> Date: Fri, 27 Sep 2019 14:22:55 +0800 Subject: [PATCH] add --- common/models/hos-regnumday.js | 5 + common/models/hos-regnumday.json | 48 ++ common/models/hos-regnummonth.js | 5 + common/models/hos-regnummonth.json | 48 ++ definitions/RuiPengLoopbackApi.yaml | 794 ++++++++++++++++++++++++++++ server/model-config.json | 8 + 6 files changed, 908 insertions(+) create mode 100644 common/models/hos-regnumday.js create mode 100644 common/models/hos-regnumday.json create mode 100644 common/models/hos-regnummonth.js create mode 100644 common/models/hos-regnummonth.json diff --git a/common/models/hos-regnumday.js b/common/models/hos-regnumday.js new file mode 100644 index 0000000..e098dbc --- /dev/null +++ b/common/models/hos-regnumday.js @@ -0,0 +1,5 @@ +'use strict'; + +module.exports = function(Hosregnumday) { + +}; diff --git a/common/models/hos-regnumday.json b/common/models/hos-regnumday.json new file mode 100644 index 0000000..d913460 --- /dev/null +++ b/common/models/hos-regnumday.json @@ -0,0 +1,48 @@ +{ + "name": "HosRegnumday", + "base": "PersistedModel", + "idInjection": false, + "options": { + "validateUpsert": true + }, + "mysql": { + "schema": "wordpress", + "table": "hos_regnumday" + }, + "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" + } + }, + "value": { + "type": "Number", + "required": true, + "length": null, + "precision": 19, + "scale": 0, + "mysql": { + "columnName": "value", + "dataType": "bigint", + "dataLength": null, + "dataPrecision": 19, + "dataScale": 0, + "nullable": "N" + } + } + }, + "validations": [], + "relations": {}, + "acls": [], + "methods": {} +} diff --git a/common/models/hos-regnummonth.js b/common/models/hos-regnummonth.js new file mode 100644 index 0000000..3e58274 --- /dev/null +++ b/common/models/hos-regnummonth.js @@ -0,0 +1,5 @@ +'use strict'; + +module.exports = function(Hosregnummonth) { + +}; diff --git a/common/models/hos-regnummonth.json b/common/models/hos-regnummonth.json new file mode 100644 index 0000000..100a73c --- /dev/null +++ b/common/models/hos-regnummonth.json @@ -0,0 +1,48 @@ +{ + "name": "HosRegnummonth", + "base": "PersistedModel", + "idInjection": false, + "options": { + "validateUpsert": true + }, + "mysql": { + "schema": "wordpress", + "table": "hos_regnummonth" + }, + "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" + } + }, + "value": { + "type": "Number", + "required": true, + "length": null, + "precision": 19, + "scale": 0, + "mysql": { + "columnName": "value", + "dataType": "bigint", + "dataLength": null, + "dataPrecision": 19, + "dataScale": 0, + "nullable": "N" + } + } + }, + "validations": [], + "relations": {}, + "acls": [], + "methods": {} +} diff --git a/definitions/RuiPengLoopbackApi.yaml b/definitions/RuiPengLoopbackApi.yaml index ff70454..e6f87cb 100644 --- a/definitions/RuiPengLoopbackApi.yaml +++ b/definitions/RuiPengLoopbackApi.yaml @@ -62993,6 +62993,778 @@ paths: type: number format: double deprecated: false + /HosRegnummonths: + post: + tags: + - HosRegnummonth + summary: Create a new instance of the model and persist it into the data source. + operationId: HosRegnummonth.create + parameters: + - name: data + in: body + description: Model instance data + required: false + schema: + description: Model instance data + $ref: '#/definitions/HosRegnummonth' + responses: + '200': + description: Request was successful + schema: + $ref: '#/definitions/HosRegnummonth' + deprecated: false + patch: + tags: + - HosRegnummonth + summary: >- + Patch an existing model instance or insert a new one into the data + source. + operationId: HosRegnummonth.patchOrCreate + parameters: + - name: data + in: body + description: Model instance data + required: false + schema: + description: Model instance data + $ref: '#/definitions/HosRegnummonth' + responses: + '200': + description: Request was successful + schema: + $ref: '#/definitions/HosRegnummonth' + deprecated: false + put: + tags: + - HosRegnummonth + summary: >- + Replace an existing model instance or insert a new one into the data + source. + operationId: HosRegnummonth.replaceOrCreate__put_HosRegnummonths + parameters: + - name: data + in: body + description: Model instance data + required: false + schema: + description: Model instance data + $ref: '#/definitions/HosRegnummonth' + responses: + '200': + description: Request was successful + schema: + $ref: '#/definitions/HosRegnummonth' + deprecated: false + get: + tags: + - HosRegnummonth + summary: Find all instances of the model matched by filter from the data source. + operationId: HosRegnummonth.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/HosRegnummonth' + deprecated: false + /HosRegnummonths/replaceOrCreate: + post: + tags: + - HosRegnummonth + summary: >- + Replace an existing model instance or insert a new one into the data + source. + operationId: HosRegnummonth.replaceOrCreate__post_HosRegnummonths_replaceOrCreate + parameters: + - name: data + in: body + description: Model instance data + required: false + schema: + description: Model instance data + $ref: '#/definitions/HosRegnummonth' + responses: + '200': + description: Request was successful + schema: + $ref: '#/definitions/HosRegnummonth' + deprecated: false + /HosRegnummonths/upsertWithWhere: + post: + tags: + - HosRegnummonth + summary: >- + Update an existing model instance or insert a new one into the data + source based on the where criteria. + operationId: HosRegnummonth.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/HosRegnummonth' + responses: + '200': + description: Request was successful + schema: + $ref: '#/definitions/HosRegnummonth' + deprecated: false + '/HosRegnummonths/{id}/exists': + get: + tags: + - HosRegnummonth + summary: Check whether a model instance exists in the data source. + operationId: 'HosRegnummonth.exists__get_HosRegnummonths_{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 + '/HosRegnummonths/{id}': + head: + tags: + - HosRegnummonth + summary: Check whether a model instance exists in the data source. + operationId: 'HosRegnummonth.exists__head_HosRegnummonths_{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: + - HosRegnummonth + summary: 'Find a model instance by {{id}} from the data source.' + operationId: HosRegnummonth.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/HosRegnummonth' + deprecated: false + put: + tags: + - HosRegnummonth + summary: >- + Replace attributes for a model instance and persist it into the data + source. + operationId: 'HosRegnummonth.replaceById__put_HosRegnummonths_{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/HosRegnummonth' + responses: + '200': + description: Request was successful + schema: + $ref: '#/definitions/HosRegnummonth' + deprecated: false + delete: + tags: + - HosRegnummonth + summary: 'Delete a model instance by {{id}} from the data source.' + operationId: HosRegnummonth.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: + - HosRegnummonth + summary: >- + Patch attributes for a model instance and persist it into the data + source. + operationId: HosRegnummonth.prototype.patchAttributes + parameters: + - name: id + in: path + description: HosRegnummonth 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/HosRegnummonth' + responses: + '200': + description: Request was successful + schema: + $ref: '#/definitions/HosRegnummonth' + deprecated: false + '/HosRegnummonths/{id}/replace': + post: + tags: + - HosRegnummonth + summary: >- + Replace attributes for a model instance and persist it into the data + source. + operationId: 'HosRegnummonth.replaceById__post_HosRegnummonths_{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/HosRegnummonth' + responses: + '200': + description: Request was successful + schema: + $ref: '#/definitions/HosRegnummonth' + deprecated: false + /HosRegnummonths/findOne: + get: + tags: + - HosRegnummonth + summary: Find first instance of the model matched by filter from the data source. + operationId: HosRegnummonth.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/HosRegnummonth' + deprecated: false + /HosRegnummonths/update: + post: + tags: + - HosRegnummonth + summary: 'Update instances of the model matched by {{where}} from the data source.' + operationId: HosRegnummonth.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/HosRegnummonth' + 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 + /HosRegnummonths/count: + get: + tags: + - HosRegnummonth + summary: Count instances of the model matched by where from the data source. + operationId: HosRegnummonth.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 + /HosRegnumdays: + post: + tags: + - HosRegnumday + summary: Create a new instance of the model and persist it into the data source. + operationId: HosRegnumday.create + parameters: + - name: data + in: body + description: Model instance data + required: false + schema: + description: Model instance data + $ref: '#/definitions/HosRegnumday' + responses: + '200': + description: Request was successful + schema: + $ref: '#/definitions/HosRegnumday' + deprecated: false + patch: + tags: + - HosRegnumday + summary: >- + Patch an existing model instance or insert a new one into the data + source. + operationId: HosRegnumday.patchOrCreate + parameters: + - name: data + in: body + description: Model instance data + required: false + schema: + description: Model instance data + $ref: '#/definitions/HosRegnumday' + responses: + '200': + description: Request was successful + schema: + $ref: '#/definitions/HosRegnumday' + deprecated: false + put: + tags: + - HosRegnumday + summary: >- + Replace an existing model instance or insert a new one into the data + source. + operationId: HosRegnumday.replaceOrCreate__put_HosRegnumdays + parameters: + - name: data + in: body + description: Model instance data + required: false + schema: + description: Model instance data + $ref: '#/definitions/HosRegnumday' + responses: + '200': + description: Request was successful + schema: + $ref: '#/definitions/HosRegnumday' + deprecated: false + get: + tags: + - HosRegnumday + summary: Find all instances of the model matched by filter from the data source. + operationId: HosRegnumday.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/HosRegnumday' + deprecated: false + /HosRegnumdays/replaceOrCreate: + post: + tags: + - HosRegnumday + summary: >- + Replace an existing model instance or insert a new one into the data + source. + operationId: HosRegnumday.replaceOrCreate__post_HosRegnumdays_replaceOrCreate + parameters: + - name: data + in: body + description: Model instance data + required: false + schema: + description: Model instance data + $ref: '#/definitions/HosRegnumday' + responses: + '200': + description: Request was successful + schema: + $ref: '#/definitions/HosRegnumday' + deprecated: false + /HosRegnumdays/upsertWithWhere: + post: + tags: + - HosRegnumday + summary: >- + Update an existing model instance or insert a new one into the data + source based on the where criteria. + operationId: HosRegnumday.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/HosRegnumday' + responses: + '200': + description: Request was successful + schema: + $ref: '#/definitions/HosRegnumday' + deprecated: false + '/HosRegnumdays/{id}/exists': + get: + tags: + - HosRegnumday + summary: Check whether a model instance exists in the data source. + operationId: 'HosRegnumday.exists__get_HosRegnumdays_{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 + '/HosRegnumdays/{id}': + head: + tags: + - HosRegnumday + summary: Check whether a model instance exists in the data source. + operationId: 'HosRegnumday.exists__head_HosRegnumdays_{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: + - HosRegnumday + summary: 'Find a model instance by {{id}} from the data source.' + operationId: HosRegnumday.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/HosRegnumday' + deprecated: false + put: + tags: + - HosRegnumday + summary: >- + Replace attributes for a model instance and persist it into the data + source. + operationId: 'HosRegnumday.replaceById__put_HosRegnumdays_{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/HosRegnumday' + responses: + '200': + description: Request was successful + schema: + $ref: '#/definitions/HosRegnumday' + deprecated: false + delete: + tags: + - HosRegnumday + summary: 'Delete a model instance by {{id}} from the data source.' + operationId: HosRegnumday.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: + - HosRegnumday + summary: >- + Patch attributes for a model instance and persist it into the data + source. + operationId: HosRegnumday.prototype.patchAttributes + parameters: + - name: id + in: path + description: HosRegnumday 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/HosRegnumday' + responses: + '200': + description: Request was successful + schema: + $ref: '#/definitions/HosRegnumday' + deprecated: false + '/HosRegnumdays/{id}/replace': + post: + tags: + - HosRegnumday + summary: >- + Replace attributes for a model instance and persist it into the data + source. + operationId: 'HosRegnumday.replaceById__post_HosRegnumdays_{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/HosRegnumday' + responses: + '200': + description: Request was successful + schema: + $ref: '#/definitions/HosRegnumday' + deprecated: false + /HosRegnumdays/findOne: + get: + tags: + - HosRegnumday + summary: Find first instance of the model matched by filter from the data source. + operationId: HosRegnumday.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/HosRegnumday' + deprecated: false + /HosRegnumdays/update: + post: + tags: + - HosRegnumday + summary: 'Update instances of the model matched by {{where}} from the data source.' + operationId: HosRegnumday.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/HosRegnumday' + 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 + /HosRegnumdays/count: + get: + tags: + - HosRegnumday + summary: Count instances of the model matched by where from the data source. + operationId: HosRegnumday.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: @@ -65588,6 +66360,28 @@ definitions: type: number format: double additionalProperties: false + HosRegnummonth: + properties: + id: + maxLength: 36 + type: string + value: + type: number + format: double + required: + - value + additionalProperties: false + HosRegnumday: + properties: + id: + maxLength: 36 + type: string + value: + type: number + format: double + required: + - value + additionalProperties: false basePath: /api/ruipeng swagger: '2.0' info: diff --git a/server/model-config.json b/server/model-config.json index 648f479..53543a1 100644 --- a/server/model-config.json +++ b/server/model-config.json @@ -664,5 +664,13 @@ "InterQijianrevenue": { "dataSource": "ruipeng", "public": true + }, + "HosRegnummonth": { + "dataSource": "ruipeng", + "public": true + }, + "HosRegnumday": { + "dataSource": "ruipeng", + "public": true } } -- 2.21.0