diff --git a/common/models/dashboard-hospital-base-information.json b/common/models/dashboard-hospital-base-information.json index e38ccb215420922f8c851baf756d9f98550236b3..65820df46b519a7b9da105d45b32e33a0b4548de 100644 --- a/common/models/dashboard-hospital-base-information.json +++ b/common/models/dashboard-hospital-base-information.json @@ -10,6 +10,51 @@ "table": "dashboard_hospital_base_information" }, "properties": { + "id": { + "type": "String", + "required": true, + "length": 100, + "precision": null, + "scale": null, + "mysql": { + "columnName": "id", + "dataType": "varchar", + "dataLength": 100, + "dataPrecision": null, + "dataScale": null, + "nullable": "N" + } + }, + "rpBrandId": { + "type": "Number", + "required": false, + "length": null, + "precision": 10, + "scale": 0, + "mysql": { + "columnName": "rp_brand_id", + "dataType": "int", + "dataLength": null, + "dataPrecision": 10, + "dataScale": 0, + "nullable": "Y" + } + }, + "rpBrand": { + "type": "String", + "required": false, + "length": 100, + "precision": null, + "scale": null, + "mysql": { + "columnName": "rp_brand", + "dataType": "varchar", + "dataLength": 100, + "dataPrecision": null, + "dataScale": null, + "nullable": "Y" + } + }, "rpRegionid": { "type": "String", "required": false, @@ -86,17 +131,17 @@ } }, "clinicId": { - "type": "Number", + "type": "String", "required": false, - "length": null, - "precision": 10, - "scale": 0, + "length": 100, + "precision": null, + "scale": null, "mysql": { "columnName": "clinic_id", - "dataType": "int", - "dataLength": null, - "dataPrecision": 10, - "dataScale": 0, + "dataType": "varchar", + "dataLength": 100, + "dataPrecision": null, + "dataScale": null, "nullable": "Y" } }, @@ -160,14 +205,29 @@ "nullable": "Y" } }, - "id": { + "address": { + "type": "String", + "required": false, + "length": 200, + "precision": null, + "scale": null, + "mysql": { + "columnName": "address", + "dataType": "varchar", + "dataLength": 200, + "dataPrecision": null, + "dataScale": null, + "nullable": "Y" + } + }, + "deanNumber": { "type": "String", "required": false, "length": 100, "precision": null, "scale": null, "mysql": { - "columnName": "id", + "columnName": "dean_number", "dataType": "varchar", "dataLength": 100, "dataPrecision": null, diff --git a/definitions/RuiPengLoopbackApi.yaml b/definitions/RuiPengLoopbackApi.yaml index 988354ab4bfaa8eddd512708a7b8eab1baafc3c5..ba08514264a3540b04c5a1fe2f396309edd0eccd 100644 --- a/definitions/RuiPengLoopbackApi.yaml +++ b/definitions/RuiPengLoopbackApi.yaml @@ -1561,398 +1561,6 @@ paths: type: number format: double deprecated: false - /DashboardHospitalBaseInformations: - post: - tags: - - DashboardHospitalBaseInformation - summary: Create a new instance of the model and persist it into the data source. - operationId: DashboardHospitalBaseInformation.create - parameters: - - name: data - in: body - description: Model instance data - required: false - schema: - description: Model instance data - $ref: '#/definitions/DashboardHospitalBaseInformation' - responses: - '200': - description: Request was successful - schema: - $ref: '#/definitions/DashboardHospitalBaseInformation' - deprecated: false - patch: - tags: - - DashboardHospitalBaseInformation - summary: >- - Patch an existing model instance or insert a new one into the data - source. - operationId: DashboardHospitalBaseInformation.patchOrCreate - parameters: - - name: data - in: body - description: Model instance data - required: false - schema: - description: Model instance data - $ref: '#/definitions/DashboardHospitalBaseInformation' - responses: - '200': - description: Request was successful - schema: - $ref: '#/definitions/DashboardHospitalBaseInformation' - deprecated: false - put: - tags: - - DashboardHospitalBaseInformation - summary: >- - Replace an existing model instance or insert a new one into the data - source. - operationId: >- - DashboardHospitalBaseInformation.replaceOrCreate__put_DashboardHospitalBaseInformations - parameters: - - name: data - in: body - description: Model instance data - required: false - schema: - description: Model instance data - $ref: '#/definitions/DashboardHospitalBaseInformation' - responses: - '200': - description: Request was successful - schema: - $ref: '#/definitions/DashboardHospitalBaseInformation' - deprecated: false - get: - tags: - - DashboardHospitalBaseInformation - summary: Find all instances of the model matched by filter from the data source. - operationId: DashboardHospitalBaseInformation.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/DashboardHospitalBaseInformation' - deprecated: false - /DashboardHospitalBaseInformations/replaceOrCreate: - post: - tags: - - DashboardHospitalBaseInformation - summary: >- - Replace an existing model instance or insert a new one into the data - source. - operationId: >- - DashboardHospitalBaseInformation.replaceOrCreate__post_DashboardHospitalBaseInformations_replaceOrCreate - parameters: - - name: data - in: body - description: Model instance data - required: false - schema: - description: Model instance data - $ref: '#/definitions/DashboardHospitalBaseInformation' - responses: - '200': - description: Request was successful - schema: - $ref: '#/definitions/DashboardHospitalBaseInformation' - deprecated: false - /DashboardHospitalBaseInformations/upsertWithWhere: - post: - tags: - - DashboardHospitalBaseInformation - summary: >- - Update an existing model instance or insert a new one into the data - source based on the where criteria. - operationId: DashboardHospitalBaseInformation.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/DashboardHospitalBaseInformation' - responses: - '200': - description: Request was successful - schema: - $ref: '#/definitions/DashboardHospitalBaseInformation' - deprecated: false - '/DashboardHospitalBaseInformations/{id}/exists': - get: - tags: - - DashboardHospitalBaseInformation - summary: Check whether a model instance exists in the data source. - operationId: >- - DashboardHospitalBaseInformation.exists__get_DashboardHospitalBaseInformations_{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 - '/DashboardHospitalBaseInformations/{id}': - head: - tags: - - DashboardHospitalBaseInformation - summary: Check whether a model instance exists in the data source. - operationId: >- - DashboardHospitalBaseInformation.exists__head_DashboardHospitalBaseInformations_{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: - - DashboardHospitalBaseInformation - summary: 'Find a model instance by {{id}} from the data source.' - operationId: DashboardHospitalBaseInformation.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/DashboardHospitalBaseInformation' - deprecated: false - put: - tags: - - DashboardHospitalBaseInformation - summary: >- - Replace attributes for a model instance and persist it into the data - source. - operationId: >- - DashboardHospitalBaseInformation.replaceById__put_DashboardHospitalBaseInformations_{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/DashboardHospitalBaseInformation' - responses: - '200': - description: Request was successful - schema: - $ref: '#/definitions/DashboardHospitalBaseInformation' - deprecated: false - delete: - tags: - - DashboardHospitalBaseInformation - summary: 'Delete a model instance by {{id}} from the data source.' - operationId: DashboardHospitalBaseInformation.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: - - DashboardHospitalBaseInformation - summary: >- - Patch attributes for a model instance and persist it into the data - source. - operationId: DashboardHospitalBaseInformation.prototype.patchAttributes - parameters: - - name: id - in: path - description: DashboardHospitalBaseInformation 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/DashboardHospitalBaseInformation' - responses: - '200': - description: Request was successful - schema: - $ref: '#/definitions/DashboardHospitalBaseInformation' - deprecated: false - '/DashboardHospitalBaseInformations/{id}/replace': - post: - tags: - - DashboardHospitalBaseInformation - summary: >- - Replace attributes for a model instance and persist it into the data - source. - operationId: >- - DashboardHospitalBaseInformation.replaceById__post_DashboardHospitalBaseInformations_{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/DashboardHospitalBaseInformation' - responses: - '200': - description: Request was successful - schema: - $ref: '#/definitions/DashboardHospitalBaseInformation' - deprecated: false - /DashboardHospitalBaseInformations/findOne: - get: - tags: - - DashboardHospitalBaseInformation - summary: Find first instance of the model matched by filter from the data source. - operationId: DashboardHospitalBaseInformation.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/DashboardHospitalBaseInformation' - deprecated: false - /DashboardHospitalBaseInformations/update: - post: - tags: - - DashboardHospitalBaseInformation - summary: 'Update instances of the model matched by {{where}} from the data source.' - operationId: DashboardHospitalBaseInformation.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/DashboardHospitalBaseInformation' - 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 - /DashboardHospitalBaseInformations/count: - get: - tags: - - DashboardHospitalBaseInformation - summary: Count instances of the model matched by where from the data source. - operationId: DashboardHospitalBaseInformation.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 /DashboardRvetCounts: post: tags: @@ -33650,6 +33258,398 @@ paths: type: number format: double deprecated: false + /DashboardHospitalBaseInformations: + post: + tags: + - DashboardHospitalBaseInformation + summary: Create a new instance of the model and persist it into the data source. + operationId: DashboardHospitalBaseInformation.create + parameters: + - name: data + in: body + description: Model instance data + required: false + schema: + description: Model instance data + $ref: '#/definitions/DashboardHospitalBaseInformation' + responses: + '200': + description: Request was successful + schema: + $ref: '#/definitions/DashboardHospitalBaseInformation' + deprecated: false + patch: + tags: + - DashboardHospitalBaseInformation + summary: >- + Patch an existing model instance or insert a new one into the data + source. + operationId: DashboardHospitalBaseInformation.patchOrCreate + parameters: + - name: data + in: body + description: Model instance data + required: false + schema: + description: Model instance data + $ref: '#/definitions/DashboardHospitalBaseInformation' + responses: + '200': + description: Request was successful + schema: + $ref: '#/definitions/DashboardHospitalBaseInformation' + deprecated: false + put: + tags: + - DashboardHospitalBaseInformation + summary: >- + Replace an existing model instance or insert a new one into the data + source. + operationId: >- + DashboardHospitalBaseInformation.replaceOrCreate__put_DashboardHospitalBaseInformations + parameters: + - name: data + in: body + description: Model instance data + required: false + schema: + description: Model instance data + $ref: '#/definitions/DashboardHospitalBaseInformation' + responses: + '200': + description: Request was successful + schema: + $ref: '#/definitions/DashboardHospitalBaseInformation' + deprecated: false + get: + tags: + - DashboardHospitalBaseInformation + summary: Find all instances of the model matched by filter from the data source. + operationId: DashboardHospitalBaseInformation.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/DashboardHospitalBaseInformation' + deprecated: false + /DashboardHospitalBaseInformations/replaceOrCreate: + post: + tags: + - DashboardHospitalBaseInformation + summary: >- + Replace an existing model instance or insert a new one into the data + source. + operationId: >- + DashboardHospitalBaseInformation.replaceOrCreate__post_DashboardHospitalBaseInformations_replaceOrCreate + parameters: + - name: data + in: body + description: Model instance data + required: false + schema: + description: Model instance data + $ref: '#/definitions/DashboardHospitalBaseInformation' + responses: + '200': + description: Request was successful + schema: + $ref: '#/definitions/DashboardHospitalBaseInformation' + deprecated: false + /DashboardHospitalBaseInformations/upsertWithWhere: + post: + tags: + - DashboardHospitalBaseInformation + summary: >- + Update an existing model instance or insert a new one into the data + source based on the where criteria. + operationId: DashboardHospitalBaseInformation.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/DashboardHospitalBaseInformation' + responses: + '200': + description: Request was successful + schema: + $ref: '#/definitions/DashboardHospitalBaseInformation' + deprecated: false + '/DashboardHospitalBaseInformations/{id}/exists': + get: + tags: + - DashboardHospitalBaseInformation + summary: Check whether a model instance exists in the data source. + operationId: >- + DashboardHospitalBaseInformation.exists__get_DashboardHospitalBaseInformations_{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 + '/DashboardHospitalBaseInformations/{id}': + head: + tags: + - DashboardHospitalBaseInformation + summary: Check whether a model instance exists in the data source. + operationId: >- + DashboardHospitalBaseInformation.exists__head_DashboardHospitalBaseInformations_{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: + - DashboardHospitalBaseInformation + summary: 'Find a model instance by {{id}} from the data source.' + operationId: DashboardHospitalBaseInformation.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/DashboardHospitalBaseInformation' + deprecated: false + put: + tags: + - DashboardHospitalBaseInformation + summary: >- + Replace attributes for a model instance and persist it into the data + source. + operationId: >- + DashboardHospitalBaseInformation.replaceById__put_DashboardHospitalBaseInformations_{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/DashboardHospitalBaseInformation' + responses: + '200': + description: Request was successful + schema: + $ref: '#/definitions/DashboardHospitalBaseInformation' + deprecated: false + delete: + tags: + - DashboardHospitalBaseInformation + summary: 'Delete a model instance by {{id}} from the data source.' + operationId: DashboardHospitalBaseInformation.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: + - DashboardHospitalBaseInformation + summary: >- + Patch attributes for a model instance and persist it into the data + source. + operationId: DashboardHospitalBaseInformation.prototype.patchAttributes + parameters: + - name: id + in: path + description: DashboardHospitalBaseInformation 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/DashboardHospitalBaseInformation' + responses: + '200': + description: Request was successful + schema: + $ref: '#/definitions/DashboardHospitalBaseInformation' + deprecated: false + '/DashboardHospitalBaseInformations/{id}/replace': + post: + tags: + - DashboardHospitalBaseInformation + summary: >- + Replace attributes for a model instance and persist it into the data + source. + operationId: >- + DashboardHospitalBaseInformation.replaceById__post_DashboardHospitalBaseInformations_{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/DashboardHospitalBaseInformation' + responses: + '200': + description: Request was successful + schema: + $ref: '#/definitions/DashboardHospitalBaseInformation' + deprecated: false + /DashboardHospitalBaseInformations/findOne: + get: + tags: + - DashboardHospitalBaseInformation + summary: Find first instance of the model matched by filter from the data source. + operationId: DashboardHospitalBaseInformation.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/DashboardHospitalBaseInformation' + deprecated: false + /DashboardHospitalBaseInformations/update: + post: + tags: + - DashboardHospitalBaseInformation + summary: 'Update instances of the model matched by {{where}} from the data source.' + operationId: DashboardHospitalBaseInformation.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/DashboardHospitalBaseInformation' + 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 + /DashboardHospitalBaseInformations/count: + get: + tags: + - DashboardHospitalBaseInformation + summary: Count instances of the model matched by where from the data source. + operationId: DashboardHospitalBaseInformation.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: @@ -33856,42 +33856,6 @@ definitions: required: - id additionalProperties: false - DashboardHospitalBaseInformation: - properties: - rpRegionid: - maxLength: 100 - type: string - rpRegion: - maxLength: 100 - type: string - rpAreaid: - maxLength: 100 - type: string - rpArea: - maxLength: 100 - type: string - brandCode: - maxLength: 100 - type: string - clinicId: - type: number - format: double - clinicName: - maxLength: 100 - type: string - clinicShortname: - maxLength: 100 - type: string - lng: - type: number - format: double - lat: - type: number - format: double - id: - maxLength: 100 - type: string - additionalProperties: false DashboardRvetCount: properties: id: @@ -35052,6 +35016,56 @@ definitions: required: - value additionalProperties: false + DashboardHospitalBaseInformation: + properties: + id: + maxLength: 100 + type: string + rpBrandId: + type: number + format: double + rpBrand: + maxLength: 100 + type: string + rpRegionid: + maxLength: 100 + type: string + rpRegion: + maxLength: 100 + type: string + rpAreaid: + maxLength: 100 + type: string + rpArea: + maxLength: 100 + type: string + brandCode: + maxLength: 100 + type: string + clinicId: + maxLength: 100 + type: string + clinicName: + maxLength: 100 + type: string + clinicShortname: + maxLength: 100 + type: string + lng: + type: number + format: double + lat: + type: number + format: double + address: + maxLength: 200 + type: string + deanNumber: + maxLength: 100 + type: string + required: + - id + additionalProperties: false basePath: /api/ruipeng swagger: '2.0' info: diff --git a/server/model-config.json b/server/model-config.json index 518171189aa1e48e0f896f71052216d57b4edc37..00fe6bda6ce3e353e38269ebecd38717afa639f6 100644 --- a/server/model-config.json +++ b/server/model-config.json @@ -29,10 +29,6 @@ "dataSource": "ruipeng", "public": true }, - "DashboardHospitalBaseInformation": { - "dataSource": "ruipeng", - "public": true - }, "DashboardRvetCount": { "dataSource": "ruipeng", "public": true @@ -360,5 +356,9 @@ "MainSum": { "dataSource": "ruipeng", "public": true + }, + "DashboardHospitalBaseInformation": { + "dataSource": "ruipeng", + "public": true } }