Commit c22038f1 authored by 余海军's avatar 余海军

add

parent 21dcd4f2
'use strict';
module.exports = function(Intertotal) {
};
{
"name": "InterTotal",
"base": "PersistedModel",
"idInjection": false,
"options": {
"validateUpsert": true
},
"mysql": {
"schema": "wordpress",
"table": "inter_total"
},
"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"
}
},
"value": {
"type": "Number",
"required": false,
"length": null,
"precision": 32,
"scale": 0,
"mysql": {
"columnName": "value",
"dataType": "decimal",
"dataLength": null,
"dataPrecision": 32,
"dataScale": 0,
"nullable": "Y"
}
}
},
"validations": [],
"relations": {},
"acls": [],
"methods": {}
}
'use strict';
module.exports = function(Interyesterday) {
};
{
"name": "InterYesterday",
"base": "PersistedModel",
"idInjection": false,
"options": {
"validateUpsert": true
},
"mysql": {
"schema": "wordpress",
"table": "inter_yesterday"
},
"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": 5,
"precision": null,
"scale": null,
"mysql": {
"columnName": "name",
"dataType": "varchar",
"dataLength": 5,
"dataPrecision": null,
"dataScale": null,
"nullable": "N"
}
},
"value": {
"type": "Number",
"required": false,
"length": null,
"precision": 32,
"scale": 0,
"mysql": {
"columnName": "value",
"dataType": "decimal",
"dataLength": null,
"dataPrecision": 32,
"dataScale": 0,
"nullable": "Y"
}
}
},
"validations": [],
"relations": {},
"acls": [],
"methods": {}
}
......@@ -61062,6 +61062,778 @@ paths:
type: number
format: double
deprecated: false
/InterTotals:
post:
tags:
- InterTotal
summary: Create a new instance of the model and persist it into the data source.
operationId: InterTotal.create
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/InterTotal'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/InterTotal'
deprecated: false
patch:
tags:
- InterTotal
summary: >-
Patch an existing model instance or insert a new one into the data
source.
operationId: InterTotal.patchOrCreate
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/InterTotal'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/InterTotal'
deprecated: false
put:
tags:
- InterTotal
summary: >-
Replace an existing model instance or insert a new one into the data
source.
operationId: InterTotal.replaceOrCreate__put_InterTotals
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/InterTotal'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/InterTotal'
deprecated: false
get:
tags:
- InterTotal
summary: Find all instances of the model matched by filter from the data source.
operationId: InterTotal.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/InterTotal'
deprecated: false
/InterTotals/replaceOrCreate:
post:
tags:
- InterTotal
summary: >-
Replace an existing model instance or insert a new one into the data
source.
operationId: InterTotal.replaceOrCreate__post_InterTotals_replaceOrCreate
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/InterTotal'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/InterTotal'
deprecated: false
/InterTotals/upsertWithWhere:
post:
tags:
- InterTotal
summary: >-
Update an existing model instance or insert a new one into the data
source based on the where criteria.
operationId: InterTotal.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/InterTotal'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/InterTotal'
deprecated: false
'/InterTotals/{id}/exists':
get:
tags:
- InterTotal
summary: Check whether a model instance exists in the data source.
operationId: 'InterTotal.exists__get_InterTotals_{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
'/InterTotals/{id}':
head:
tags:
- InterTotal
summary: Check whether a model instance exists in the data source.
operationId: 'InterTotal.exists__head_InterTotals_{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:
- InterTotal
summary: 'Find a model instance by {{id}} from the data source.'
operationId: InterTotal.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/InterTotal'
deprecated: false
put:
tags:
- InterTotal
summary: >-
Replace attributes for a model instance and persist it into the data
source.
operationId: 'InterTotal.replaceById__put_InterTotals_{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/InterTotal'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/InterTotal'
deprecated: false
delete:
tags:
- InterTotal
summary: 'Delete a model instance by {{id}} from the data source.'
operationId: InterTotal.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:
- InterTotal
summary: >-
Patch attributes for a model instance and persist it into the data
source.
operationId: InterTotal.prototype.patchAttributes
parameters:
- name: id
in: path
description: InterTotal 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/InterTotal'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/InterTotal'
deprecated: false
'/InterTotals/{id}/replace':
post:
tags:
- InterTotal
summary: >-
Replace attributes for a model instance and persist it into the data
source.
operationId: 'InterTotal.replaceById__post_InterTotals_{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/InterTotal'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/InterTotal'
deprecated: false
/InterTotals/findOne:
get:
tags:
- InterTotal
summary: Find first instance of the model matched by filter from the data source.
operationId: InterTotal.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/InterTotal'
deprecated: false
/InterTotals/update:
post:
tags:
- InterTotal
summary: 'Update instances of the model matched by {{where}} from the data source.'
operationId: InterTotal.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/InterTotal'
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
/InterTotals/count:
get:
tags:
- InterTotal
summary: Count instances of the model matched by where from the data source.
operationId: InterTotal.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
/InterYesterdays:
post:
tags:
- InterYesterday
summary: Create a new instance of the model and persist it into the data source.
operationId: InterYesterday.create
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/InterYesterday'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/InterYesterday'
deprecated: false
patch:
tags:
- InterYesterday
summary: >-
Patch an existing model instance or insert a new one into the data
source.
operationId: InterYesterday.patchOrCreate
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/InterYesterday'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/InterYesterday'
deprecated: false
put:
tags:
- InterYesterday
summary: >-
Replace an existing model instance or insert a new one into the data
source.
operationId: InterYesterday.replaceOrCreate__put_InterYesterdays
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/InterYesterday'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/InterYesterday'
deprecated: false
get:
tags:
- InterYesterday
summary: Find all instances of the model matched by filter from the data source.
operationId: InterYesterday.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/InterYesterday'
deprecated: false
/InterYesterdays/replaceOrCreate:
post:
tags:
- InterYesterday
summary: >-
Replace an existing model instance or insert a new one into the data
source.
operationId: InterYesterday.replaceOrCreate__post_InterYesterdays_replaceOrCreate
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/InterYesterday'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/InterYesterday'
deprecated: false
/InterYesterdays/upsertWithWhere:
post:
tags:
- InterYesterday
summary: >-
Update an existing model instance or insert a new one into the data
source based on the where criteria.
operationId: InterYesterday.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/InterYesterday'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/InterYesterday'
deprecated: false
'/InterYesterdays/{id}/exists':
get:
tags:
- InterYesterday
summary: Check whether a model instance exists in the data source.
operationId: 'InterYesterday.exists__get_InterYesterdays_{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
'/InterYesterdays/{id}':
head:
tags:
- InterYesterday
summary: Check whether a model instance exists in the data source.
operationId: 'InterYesterday.exists__head_InterYesterdays_{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:
- InterYesterday
summary: 'Find a model instance by {{id}} from the data source.'
operationId: InterYesterday.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/InterYesterday'
deprecated: false
put:
tags:
- InterYesterday
summary: >-
Replace attributes for a model instance and persist it into the data
source.
operationId: 'InterYesterday.replaceById__put_InterYesterdays_{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/InterYesterday'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/InterYesterday'
deprecated: false
delete:
tags:
- InterYesterday
summary: 'Delete a model instance by {{id}} from the data source.'
operationId: InterYesterday.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:
- InterYesterday
summary: >-
Patch attributes for a model instance and persist it into the data
source.
operationId: InterYesterday.prototype.patchAttributes
parameters:
- name: id
in: path
description: InterYesterday 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/InterYesterday'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/InterYesterday'
deprecated: false
'/InterYesterdays/{id}/replace':
post:
tags:
- InterYesterday
summary: >-
Replace attributes for a model instance and persist it into the data
source.
operationId: 'InterYesterday.replaceById__post_InterYesterdays_{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/InterYesterday'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/InterYesterday'
deprecated: false
/InterYesterdays/findOne:
get:
tags:
- InterYesterday
summary: Find first instance of the model matched by filter from the data source.
operationId: InterYesterday.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/InterYesterday'
deprecated: false
/InterYesterdays/update:
post:
tags:
- InterYesterday
summary: 'Update instances of the model matched by {{where}} from the data source.'
operationId: InterYesterday.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/InterYesterday'
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
/InterYesterdays/count:
get:
tags:
- InterYesterday
summary: Count instances of the model matched by where from the data source.
operationId: InterYesterday.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:
......@@ -63433,6 +64205,34 @@ definitions:
required:
- imgUrl
additionalProperties: false
InterTotal:
properties:
id:
maxLength: 36
type: string
name:
maxLength: 4
type: string
value:
type: number
format: double
required:
- name
additionalProperties: false
InterYesterday:
properties:
id:
maxLength: 36
type: string
name:
maxLength: 5
type: string
value:
type: number
format: double
required:
- name
additionalProperties: false
basePath: /api/ruipeng
swagger: '2.0'
info:
......@@ -644,5 +644,13 @@
"HosDetail": {
"dataSource": "ruipeng",
"public": true
},
"InterTotal": {
"dataSource": "ruipeng",
"public": true
},
"InterYesterday": {
"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