Commit e36d3e5a authored by 黄卓然's avatar 黄卓然

fix

parent 25a7ac92
'use strict';
module.exports = function(Hosaccrualday) {
};
{
"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": {}
}
'use strict';
module.exports = function(Hosaccrualmonth) {
};
{
"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": {}
}
......@@ -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:
......@@ -640,5 +640,13 @@
"HosYiliao": {
"dataSource": "ruipeng",
"public": true
},
"HosAccrualday": {
"dataSource": "ruipeng",
"public": true
},
"HosAccrualmonth": {
"dataSource": "ruipeng",
"public": true
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment