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

add

parent 00132e84
'use strict';
module.exports = function(Intermiaopai) {
};
{
"name": "InterMiaopai",
"base": "PersistedModel",
"idInjection": false,
"options": {
"validateUpsert": true
},
"mysql": {
"schema": "wordpress",
"table": "inter_miaopai"
},
"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": 3,
"precision": null,
"scale": null,
"mysql": {
"columnName": "name",
"dataType": "varchar",
"dataLength": 3,
"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(Intertengxun) {
};
{
"name": "InterTengxun",
"base": "PersistedModel",
"idInjection": false,
"options": {
"validateUpsert": true
},
"mysql": {
"schema": "wordpress",
"table": "inter_tengxun"
},
"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": 3,
"precision": null,
"scale": null,
"mysql": {
"columnName": "name",
"dataType": "varchar",
"dataLength": 3,
"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": {}
}
......@@ -59904,6 +59904,778 @@ paths:
type: number
format: double
deprecated: false
/InterTengxuns:
post:
tags:
- InterTengxun
summary: Create a new instance of the model and persist it into the data source.
operationId: InterTengxun.create
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/InterTengxun'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/InterTengxun'
deprecated: false
patch:
tags:
- InterTengxun
summary: >-
Patch an existing model instance or insert a new one into the data
source.
operationId: InterTengxun.patchOrCreate
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/InterTengxun'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/InterTengxun'
deprecated: false
put:
tags:
- InterTengxun
summary: >-
Replace an existing model instance or insert a new one into the data
source.
operationId: InterTengxun.replaceOrCreate__put_InterTengxuns
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/InterTengxun'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/InterTengxun'
deprecated: false
get:
tags:
- InterTengxun
summary: Find all instances of the model matched by filter from the data source.
operationId: InterTengxun.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/InterTengxun'
deprecated: false
/InterTengxuns/replaceOrCreate:
post:
tags:
- InterTengxun
summary: >-
Replace an existing model instance or insert a new one into the data
source.
operationId: InterTengxun.replaceOrCreate__post_InterTengxuns_replaceOrCreate
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/InterTengxun'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/InterTengxun'
deprecated: false
/InterTengxuns/upsertWithWhere:
post:
tags:
- InterTengxun
summary: >-
Update an existing model instance or insert a new one into the data
source based on the where criteria.
operationId: InterTengxun.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/InterTengxun'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/InterTengxun'
deprecated: false
'/InterTengxuns/{id}/exists':
get:
tags:
- InterTengxun
summary: Check whether a model instance exists in the data source.
operationId: 'InterTengxun.exists__get_InterTengxuns_{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
'/InterTengxuns/{id}':
head:
tags:
- InterTengxun
summary: Check whether a model instance exists in the data source.
operationId: 'InterTengxun.exists__head_InterTengxuns_{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:
- InterTengxun
summary: 'Find a model instance by {{id}} from the data source.'
operationId: InterTengxun.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/InterTengxun'
deprecated: false
put:
tags:
- InterTengxun
summary: >-
Replace attributes for a model instance and persist it into the data
source.
operationId: 'InterTengxun.replaceById__put_InterTengxuns_{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/InterTengxun'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/InterTengxun'
deprecated: false
delete:
tags:
- InterTengxun
summary: 'Delete a model instance by {{id}} from the data source.'
operationId: InterTengxun.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:
- InterTengxun
summary: >-
Patch attributes for a model instance and persist it into the data
source.
operationId: InterTengxun.prototype.patchAttributes
parameters:
- name: id
in: path
description: InterTengxun 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/InterTengxun'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/InterTengxun'
deprecated: false
'/InterTengxuns/{id}/replace':
post:
tags:
- InterTengxun
summary: >-
Replace attributes for a model instance and persist it into the data
source.
operationId: 'InterTengxun.replaceById__post_InterTengxuns_{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/InterTengxun'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/InterTengxun'
deprecated: false
/InterTengxuns/findOne:
get:
tags:
- InterTengxun
summary: Find first instance of the model matched by filter from the data source.
operationId: InterTengxun.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/InterTengxun'
deprecated: false
/InterTengxuns/update:
post:
tags:
- InterTengxun
summary: 'Update instances of the model matched by {{where}} from the data source.'
operationId: InterTengxun.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/InterTengxun'
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
/InterTengxuns/count:
get:
tags:
- InterTengxun
summary: Count instances of the model matched by where from the data source.
operationId: InterTengxun.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
/InterMiaopais:
post:
tags:
- InterMiaopai
summary: Create a new instance of the model and persist it into the data source.
operationId: InterMiaopai.create
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/InterMiaopai'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/InterMiaopai'
deprecated: false
patch:
tags:
- InterMiaopai
summary: >-
Patch an existing model instance or insert a new one into the data
source.
operationId: InterMiaopai.patchOrCreate
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/InterMiaopai'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/InterMiaopai'
deprecated: false
put:
tags:
- InterMiaopai
summary: >-
Replace an existing model instance or insert a new one into the data
source.
operationId: InterMiaopai.replaceOrCreate__put_InterMiaopais
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/InterMiaopai'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/InterMiaopai'
deprecated: false
get:
tags:
- InterMiaopai
summary: Find all instances of the model matched by filter from the data source.
operationId: InterMiaopai.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/InterMiaopai'
deprecated: false
/InterMiaopais/replaceOrCreate:
post:
tags:
- InterMiaopai
summary: >-
Replace an existing model instance or insert a new one into the data
source.
operationId: InterMiaopai.replaceOrCreate__post_InterMiaopais_replaceOrCreate
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/InterMiaopai'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/InterMiaopai'
deprecated: false
/InterMiaopais/upsertWithWhere:
post:
tags:
- InterMiaopai
summary: >-
Update an existing model instance or insert a new one into the data
source based on the where criteria.
operationId: InterMiaopai.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/InterMiaopai'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/InterMiaopai'
deprecated: false
'/InterMiaopais/{id}/exists':
get:
tags:
- InterMiaopai
summary: Check whether a model instance exists in the data source.
operationId: 'InterMiaopai.exists__get_InterMiaopais_{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
'/InterMiaopais/{id}':
head:
tags:
- InterMiaopai
summary: Check whether a model instance exists in the data source.
operationId: 'InterMiaopai.exists__head_InterMiaopais_{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:
- InterMiaopai
summary: 'Find a model instance by {{id}} from the data source.'
operationId: InterMiaopai.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/InterMiaopai'
deprecated: false
put:
tags:
- InterMiaopai
summary: >-
Replace attributes for a model instance and persist it into the data
source.
operationId: 'InterMiaopai.replaceById__put_InterMiaopais_{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/InterMiaopai'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/InterMiaopai'
deprecated: false
delete:
tags:
- InterMiaopai
summary: 'Delete a model instance by {{id}} from the data source.'
operationId: InterMiaopai.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:
- InterMiaopai
summary: >-
Patch attributes for a model instance and persist it into the data
source.
operationId: InterMiaopai.prototype.patchAttributes
parameters:
- name: id
in: path
description: InterMiaopai 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/InterMiaopai'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/InterMiaopai'
deprecated: false
'/InterMiaopais/{id}/replace':
post:
tags:
- InterMiaopai
summary: >-
Replace attributes for a model instance and persist it into the data
source.
operationId: 'InterMiaopai.replaceById__post_InterMiaopais_{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/InterMiaopai'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/InterMiaopai'
deprecated: false
/InterMiaopais/findOne:
get:
tags:
- InterMiaopai
summary: Find first instance of the model matched by filter from the data source.
operationId: InterMiaopai.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/InterMiaopai'
deprecated: false
/InterMiaopais/update:
post:
tags:
- InterMiaopai
summary: 'Update instances of the model matched by {{where}} from the data source.'
operationId: InterMiaopai.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/InterMiaopai'
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
/InterMiaopais/count:
get:
tags:
- InterMiaopai
summary: Count instances of the model matched by where from the data source.
operationId: InterMiaopai.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:
......@@ -62227,6 +62999,34 @@ definitions:
required:
- name
additionalProperties: false
InterTengxun:
properties:
id:
maxLength: 36
type: string
name:
maxLength: 3
type: string
value:
type: number
format: double
required:
- name
additionalProperties: false
InterMiaopai:
properties:
id:
maxLength: 36
type: string
name:
maxLength: 3
type: string
value:
type: number
format: double
required:
- name
additionalProperties: false
basePath: /api/ruipeng
swagger: '2.0'
info:
......@@ -632,5 +632,13 @@
"InterDoctor": {
"dataSource": "ruipeng",
"public": true
},
"InterTengxun": {
"dataSource": "ruipeng",
"public": true
},
"InterMiaopai": {
"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