diff --git a/common/models/hos-accrualday.js b/common/models/hos-accrualday.js new file mode 100644 index 0000000000000000000000000000000000000000..8aabb1d2b180f00949f7131274d362b02b97bd1a --- /dev/null +++ b/common/models/hos-accrualday.js @@ -0,0 +1,5 @@ +'use strict'; + +module.exports = function(Hosaccrualday) { + +}; diff --git a/common/models/hos-accrualday.json b/common/models/hos-accrualday.json new file mode 100644 index 0000000000000000000000000000000000000000..c9eedce0a60458b2f32a6971e3882954eaf42c77 --- /dev/null +++ b/common/models/hos-accrualday.json @@ -0,0 +1,63 @@ +{ + "name": "HosAccrualday", + "base": "PersistedModel", + "idInjection": false, + "options": { + "validateUpsert": true + }, + "mysql": { + "schema": "wordpress", + "table": "hos_accrualday" + }, + "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" + } + }, + "area": { + "type": "String", + "required": false, + "length": 101, + "precision": null, + "scale": null, + "mysql": { + "columnName": "area", + "dataType": "varchar", + "dataLength": 101, + "dataPrecision": null, + "dataScale": null, + "nullable": "Y" + } + } + }, + "validations": [], + "relations": {}, + "acls": [], + "methods": {} +} diff --git a/common/models/hos-accrualmonth.js b/common/models/hos-accrualmonth.js new file mode 100644 index 0000000000000000000000000000000000000000..4e23b07035b52850b894db393d3ed1c17f835824 --- /dev/null +++ b/common/models/hos-accrualmonth.js @@ -0,0 +1,5 @@ +'use strict'; + +module.exports = function(Hosaccrualmonth) { + +}; diff --git a/common/models/hos-accrualmonth.json b/common/models/hos-accrualmonth.json new file mode 100644 index 0000000000000000000000000000000000000000..59321373f6347b505bf612092b1071125be6edb6 --- /dev/null +++ b/common/models/hos-accrualmonth.json @@ -0,0 +1,63 @@ +{ + "name": "HosAccrualmonth", + "base": "PersistedModel", + "idInjection": false, + "options": { + "validateUpsert": true + }, + "mysql": { + "schema": "wordpress", + "table": "hos_accrualmonth" + }, + "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" + } + }, + "area": { + "type": "String", + "required": false, + "length": 101, + "precision": null, + "scale": null, + "mysql": { + "columnName": "area", + "dataType": "varchar", + "dataLength": 101, + "dataPrecision": null, + "dataScale": null, + "nullable": "Y" + } + } + }, + "validations": [], + "relations": {}, + "acls": [], + "methods": {} +} diff --git a/definitions/RuiPengLoopbackApi.yaml b/definitions/RuiPengLoopbackApi.yaml index 8541691a75c8878d0bfcfcd9439410dea8686971..3df237a6cf0db8adf07d494f2c0c32193b1041b5 100644 --- a/definitions/RuiPengLoopbackApi.yaml +++ b/definitions/RuiPengLoopbackApi.yaml @@ -60674,6 +60674,778 @@ paths: type: number format: double deprecated: false + /HosAccrualdays: + post: + tags: + - HosAccrualday + summary: Create a new instance of the model and persist it into the data source. + operationId: HosAccrualday.create + parameters: + - name: data + in: body + description: Model instance data + required: false + schema: + description: Model instance data + $ref: '#/definitions/HosAccrualday' + responses: + '200': + description: Request was successful + schema: + $ref: '#/definitions/HosAccrualday' + deprecated: false + patch: + tags: + - HosAccrualday + summary: >- + Patch an existing model instance or insert a new one into the data + source. + operationId: HosAccrualday.patchOrCreate + parameters: + - name: data + in: body + description: Model instance data + required: false + schema: + description: Model instance data + $ref: '#/definitions/HosAccrualday' + responses: + '200': + description: Request was successful + schema: + $ref: '#/definitions/HosAccrualday' + deprecated: false + put: + tags: + - HosAccrualday + summary: >- + Replace an existing model instance or insert a new one into the data + source. + operationId: HosAccrualday.replaceOrCreate__put_HosAccrualdays + parameters: + - name: data + in: body + description: Model instance data + required: false + schema: + description: Model instance data + $ref: '#/definitions/HosAccrualday' + responses: + '200': + description: Request was successful + schema: + $ref: '#/definitions/HosAccrualday' + deprecated: false + get: + tags: + - HosAccrualday + summary: Find all instances of the model matched by filter from the data source. + operationId: HosAccrualday.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/HosAccrualday' + deprecated: false + /HosAccrualdays/replaceOrCreate: + post: + tags: + - HosAccrualday + summary: >- + Replace an existing model instance or insert a new one into the data + source. + operationId: HosAccrualday.replaceOrCreate__post_HosAccrualdays_replaceOrCreate + parameters: + - name: data + in: body + description: Model instance data + required: false + schema: + description: Model instance data + $ref: '#/definitions/HosAccrualday' + responses: + '200': + description: Request was successful + schema: + $ref: '#/definitions/HosAccrualday' + deprecated: false + /HosAccrualdays/upsertWithWhere: + post: + tags: + - HosAccrualday + summary: >- + Update an existing model instance or insert a new one into the data + source based on the where criteria. + operationId: HosAccrualday.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/HosAccrualday' + responses: + '200': + description: Request was successful + schema: + $ref: '#/definitions/HosAccrualday' + deprecated: false + '/HosAccrualdays/{id}/exists': + get: + tags: + - HosAccrualday + summary: Check whether a model instance exists in the data source. + operationId: 'HosAccrualday.exists__get_HosAccrualdays_{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 + '/HosAccrualdays/{id}': + head: + tags: + - HosAccrualday + summary: Check whether a model instance exists in the data source. + operationId: 'HosAccrualday.exists__head_HosAccrualdays_{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: + - HosAccrualday + summary: 'Find a model instance by {{id}} from the data source.' + operationId: HosAccrualday.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/HosAccrualday' + deprecated: false + put: + tags: + - HosAccrualday + summary: >- + Replace attributes for a model instance and persist it into the data + source. + operationId: 'HosAccrualday.replaceById__put_HosAccrualdays_{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/HosAccrualday' + responses: + '200': + description: Request was successful + schema: + $ref: '#/definitions/HosAccrualday' + deprecated: false + delete: + tags: + - HosAccrualday + summary: 'Delete a model instance by {{id}} from the data source.' + operationId: HosAccrualday.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: + - HosAccrualday + summary: >- + Patch attributes for a model instance and persist it into the data + source. + operationId: HosAccrualday.prototype.patchAttributes + parameters: + - name: id + in: path + description: HosAccrualday 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/HosAccrualday' + responses: + '200': + description: Request was successful + schema: + $ref: '#/definitions/HosAccrualday' + deprecated: false + '/HosAccrualdays/{id}/replace': + post: + tags: + - HosAccrualday + summary: >- + Replace attributes for a model instance and persist it into the data + source. + operationId: 'HosAccrualday.replaceById__post_HosAccrualdays_{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/HosAccrualday' + responses: + '200': + description: Request was successful + schema: + $ref: '#/definitions/HosAccrualday' + deprecated: false + /HosAccrualdays/findOne: + get: + tags: + - HosAccrualday + summary: Find first instance of the model matched by filter from the data source. + operationId: HosAccrualday.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/HosAccrualday' + deprecated: false + /HosAccrualdays/update: + post: + tags: + - HosAccrualday + summary: 'Update instances of the model matched by {{where}} from the data source.' + operationId: HosAccrualday.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/HosAccrualday' + 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 + /HosAccrualdays/count: + get: + tags: + - HosAccrualday + summary: Count instances of the model matched by where from the data source. + operationId: HosAccrualday.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 + /HosAccrualmonths: + post: + tags: + - HosAccrualmonth + summary: Create a new instance of the model and persist it into the data source. + operationId: HosAccrualmonth.create + parameters: + - name: data + in: body + description: Model instance data + required: false + schema: + description: Model instance data + $ref: '#/definitions/HosAccrualmonth' + responses: + '200': + description: Request was successful + schema: + $ref: '#/definitions/HosAccrualmonth' + deprecated: false + patch: + tags: + - HosAccrualmonth + summary: >- + Patch an existing model instance or insert a new one into the data + source. + operationId: HosAccrualmonth.patchOrCreate + parameters: + - name: data + in: body + description: Model instance data + required: false + schema: + description: Model instance data + $ref: '#/definitions/HosAccrualmonth' + responses: + '200': + description: Request was successful + schema: + $ref: '#/definitions/HosAccrualmonth' + deprecated: false + put: + tags: + - HosAccrualmonth + summary: >- + Replace an existing model instance or insert a new one into the data + source. + operationId: HosAccrualmonth.replaceOrCreate__put_HosAccrualmonths + parameters: + - name: data + in: body + description: Model instance data + required: false + schema: + description: Model instance data + $ref: '#/definitions/HosAccrualmonth' + responses: + '200': + description: Request was successful + schema: + $ref: '#/definitions/HosAccrualmonth' + deprecated: false + get: + tags: + - HosAccrualmonth + summary: Find all instances of the model matched by filter from the data source. + operationId: HosAccrualmonth.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/HosAccrualmonth' + deprecated: false + /HosAccrualmonths/replaceOrCreate: + post: + tags: + - HosAccrualmonth + summary: >- + Replace an existing model instance or insert a new one into the data + source. + operationId: HosAccrualmonth.replaceOrCreate__post_HosAccrualmonths_replaceOrCreate + parameters: + - name: data + in: body + description: Model instance data + required: false + schema: + description: Model instance data + $ref: '#/definitions/HosAccrualmonth' + responses: + '200': + description: Request was successful + schema: + $ref: '#/definitions/HosAccrualmonth' + deprecated: false + /HosAccrualmonths/upsertWithWhere: + post: + tags: + - HosAccrualmonth + summary: >- + Update an existing model instance or insert a new one into the data + source based on the where criteria. + operationId: HosAccrualmonth.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/HosAccrualmonth' + responses: + '200': + description: Request was successful + schema: + $ref: '#/definitions/HosAccrualmonth' + deprecated: false + '/HosAccrualmonths/{id}/exists': + get: + tags: + - HosAccrualmonth + summary: Check whether a model instance exists in the data source. + operationId: 'HosAccrualmonth.exists__get_HosAccrualmonths_{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 + '/HosAccrualmonths/{id}': + head: + tags: + - HosAccrualmonth + summary: Check whether a model instance exists in the data source. + operationId: 'HosAccrualmonth.exists__head_HosAccrualmonths_{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: + - HosAccrualmonth + summary: 'Find a model instance by {{id}} from the data source.' + operationId: HosAccrualmonth.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/HosAccrualmonth' + deprecated: false + put: + tags: + - HosAccrualmonth + summary: >- + Replace attributes for a model instance and persist it into the data + source. + operationId: 'HosAccrualmonth.replaceById__put_HosAccrualmonths_{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/HosAccrualmonth' + responses: + '200': + description: Request was successful + schema: + $ref: '#/definitions/HosAccrualmonth' + deprecated: false + delete: + tags: + - HosAccrualmonth + summary: 'Delete a model instance by {{id}} from the data source.' + operationId: HosAccrualmonth.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: + - HosAccrualmonth + summary: >- + Patch attributes for a model instance and persist it into the data + source. + operationId: HosAccrualmonth.prototype.patchAttributes + parameters: + - name: id + in: path + description: HosAccrualmonth 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/HosAccrualmonth' + responses: + '200': + description: Request was successful + schema: + $ref: '#/definitions/HosAccrualmonth' + deprecated: false + '/HosAccrualmonths/{id}/replace': + post: + tags: + - HosAccrualmonth + summary: >- + Replace attributes for a model instance and persist it into the data + source. + operationId: 'HosAccrualmonth.replaceById__post_HosAccrualmonths_{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/HosAccrualmonth' + responses: + '200': + description: Request was successful + schema: + $ref: '#/definitions/HosAccrualmonth' + deprecated: false + /HosAccrualmonths/findOne: + get: + tags: + - HosAccrualmonth + summary: Find first instance of the model matched by filter from the data source. + operationId: HosAccrualmonth.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/HosAccrualmonth' + deprecated: false + /HosAccrualmonths/update: + post: + tags: + - HosAccrualmonth + summary: 'Update instances of the model matched by {{where}} from the data source.' + operationId: HosAccrualmonth.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/HosAccrualmonth' + 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 + /HosAccrualmonths/count: + get: + tags: + - HosAccrualmonth + summary: Count instances of the model matched by where from the data source. + operationId: HosAccrualmonth.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: @@ -63182,6 +63954,34 @@ definitions: required: - name additionalProperties: false + HosAccrualday: + properties: + id: + maxLength: 36 + type: string + value: + type: number + format: double + area: + maxLength: 101 + type: string + required: + - value + additionalProperties: false + HosAccrualmonth: + properties: + id: + maxLength: 36 + type: string + value: + type: number + format: double + area: + maxLength: 101 + type: string + required: + - value + additionalProperties: false basePath: /api/ruipeng swagger: '2.0' info: diff --git a/server/model-config.json b/server/model-config.json index 0162fe4bc369dd7b2c074b4d453a8a7db877b814..69b958117161b8b7242f2532a3b9462ed7bd2079 100644 --- a/server/model-config.json +++ b/server/model-config.json @@ -640,5 +640,13 @@ "HosYiliao": { "dataSource": "ruipeng", "public": true + }, + "HosAccrualday": { + "dataSource": "ruipeng", + "public": true + }, + "HosAccrualmonth": { + "dataSource": "ruipeng", + "public": true } }