Commit 1b7333d4 authored by 余海军's avatar 余海军

添加

parent 9e73da5d
'use strict';
module.exports = function(Mainbillbrand) {
};
{
"name": "MainBillbrand",
"base": "PersistedModel",
"idInjection": false,
"options": {
"validateUpsert": true
},
"mysql": {
"schema": "wordpress",
"table": "main_billbrand"
},
"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": false,
"length": 200,
"precision": null,
"scale": null,
"mysql": {
"columnName": "name",
"dataType": "varchar",
"dataLength": 200,
"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"
}
}
},
"validations": [],
"relations": {},
"acls": [],
"methods": {}
}
'use strict';
module.exports = function(Maineachmonth) {
};
{
"name": "MainEachmonth",
"base": "PersistedModel",
"idInjection": false,
"options": {
"validateUpsert": true
},
"mysql": {
"schema": "wordpress",
"table": "main_eachmonth"
},
"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": false,
"length": 2,
"precision": null,
"scale": null,
"mysql": {
"columnName": "name",
"dataType": "varchar",
"dataLength": 2,
"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"
}
}
},
"validations": [],
"relations": {},
"acls": [],
"methods": {}
}
......@@ -20521,6 +20521,778 @@ paths:
type: number
format: double
deprecated: false
/MainBillbrands:
post:
tags:
- MainBillbrand
summary: Create a new instance of the model and persist it into the data source.
operationId: MainBillbrand.create
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/MainBillbrand'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/MainBillbrand'
deprecated: false
patch:
tags:
- MainBillbrand
summary: >-
Patch an existing model instance or insert a new one into the data
source.
operationId: MainBillbrand.patchOrCreate
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/MainBillbrand'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/MainBillbrand'
deprecated: false
put:
tags:
- MainBillbrand
summary: >-
Replace an existing model instance or insert a new one into the data
source.
operationId: MainBillbrand.replaceOrCreate__put_MainBillbrands
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/MainBillbrand'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/MainBillbrand'
deprecated: false
get:
tags:
- MainBillbrand
summary: Find all instances of the model matched by filter from the data source.
operationId: MainBillbrand.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/MainBillbrand'
deprecated: false
/MainBillbrands/replaceOrCreate:
post:
tags:
- MainBillbrand
summary: >-
Replace an existing model instance or insert a new one into the data
source.
operationId: MainBillbrand.replaceOrCreate__post_MainBillbrands_replaceOrCreate
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/MainBillbrand'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/MainBillbrand'
deprecated: false
/MainBillbrands/upsertWithWhere:
post:
tags:
- MainBillbrand
summary: >-
Update an existing model instance or insert a new one into the data
source based on the where criteria.
operationId: MainBillbrand.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/MainBillbrand'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/MainBillbrand'
deprecated: false
'/MainBillbrands/{id}/exists':
get:
tags:
- MainBillbrand
summary: Check whether a model instance exists in the data source.
operationId: 'MainBillbrand.exists__get_MainBillbrands_{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
'/MainBillbrands/{id}':
head:
tags:
- MainBillbrand
summary: Check whether a model instance exists in the data source.
operationId: 'MainBillbrand.exists__head_MainBillbrands_{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:
- MainBillbrand
summary: 'Find a model instance by {{id}} from the data source.'
operationId: MainBillbrand.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/MainBillbrand'
deprecated: false
put:
tags:
- MainBillbrand
summary: >-
Replace attributes for a model instance and persist it into the data
source.
operationId: 'MainBillbrand.replaceById__put_MainBillbrands_{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/MainBillbrand'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/MainBillbrand'
deprecated: false
delete:
tags:
- MainBillbrand
summary: 'Delete a model instance by {{id}} from the data source.'
operationId: MainBillbrand.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:
- MainBillbrand
summary: >-
Patch attributes for a model instance and persist it into the data
source.
operationId: MainBillbrand.prototype.patchAttributes
parameters:
- name: id
in: path
description: MainBillbrand 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/MainBillbrand'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/MainBillbrand'
deprecated: false
'/MainBillbrands/{id}/replace':
post:
tags:
- MainBillbrand
summary: >-
Replace attributes for a model instance and persist it into the data
source.
operationId: 'MainBillbrand.replaceById__post_MainBillbrands_{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/MainBillbrand'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/MainBillbrand'
deprecated: false
/MainBillbrands/findOne:
get:
tags:
- MainBillbrand
summary: Find first instance of the model matched by filter from the data source.
operationId: MainBillbrand.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/MainBillbrand'
deprecated: false
/MainBillbrands/update:
post:
tags:
- MainBillbrand
summary: 'Update instances of the model matched by {{where}} from the data source.'
operationId: MainBillbrand.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/MainBillbrand'
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
/MainBillbrands/count:
get:
tags:
- MainBillbrand
summary: Count instances of the model matched by where from the data source.
operationId: MainBillbrand.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
/MainEachmonths:
post:
tags:
- MainEachmonth
summary: Create a new instance of the model and persist it into the data source.
operationId: MainEachmonth.create
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/MainEachmonth'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/MainEachmonth'
deprecated: false
patch:
tags:
- MainEachmonth
summary: >-
Patch an existing model instance or insert a new one into the data
source.
operationId: MainEachmonth.patchOrCreate
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/MainEachmonth'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/MainEachmonth'
deprecated: false
put:
tags:
- MainEachmonth
summary: >-
Replace an existing model instance or insert a new one into the data
source.
operationId: MainEachmonth.replaceOrCreate__put_MainEachmonths
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/MainEachmonth'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/MainEachmonth'
deprecated: false
get:
tags:
- MainEachmonth
summary: Find all instances of the model matched by filter from the data source.
operationId: MainEachmonth.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/MainEachmonth'
deprecated: false
/MainEachmonths/replaceOrCreate:
post:
tags:
- MainEachmonth
summary: >-
Replace an existing model instance or insert a new one into the data
source.
operationId: MainEachmonth.replaceOrCreate__post_MainEachmonths_replaceOrCreate
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/MainEachmonth'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/MainEachmonth'
deprecated: false
/MainEachmonths/upsertWithWhere:
post:
tags:
- MainEachmonth
summary: >-
Update an existing model instance or insert a new one into the data
source based on the where criteria.
operationId: MainEachmonth.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/MainEachmonth'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/MainEachmonth'
deprecated: false
'/MainEachmonths/{id}/exists':
get:
tags:
- MainEachmonth
summary: Check whether a model instance exists in the data source.
operationId: 'MainEachmonth.exists__get_MainEachmonths_{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
'/MainEachmonths/{id}':
head:
tags:
- MainEachmonth
summary: Check whether a model instance exists in the data source.
operationId: 'MainEachmonth.exists__head_MainEachmonths_{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:
- MainEachmonth
summary: 'Find a model instance by {{id}} from the data source.'
operationId: MainEachmonth.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/MainEachmonth'
deprecated: false
put:
tags:
- MainEachmonth
summary: >-
Replace attributes for a model instance and persist it into the data
source.
operationId: 'MainEachmonth.replaceById__put_MainEachmonths_{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/MainEachmonth'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/MainEachmonth'
deprecated: false
delete:
tags:
- MainEachmonth
summary: 'Delete a model instance by {{id}} from the data source.'
operationId: MainEachmonth.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:
- MainEachmonth
summary: >-
Patch attributes for a model instance and persist it into the data
source.
operationId: MainEachmonth.prototype.patchAttributes
parameters:
- name: id
in: path
description: MainEachmonth 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/MainEachmonth'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/MainEachmonth'
deprecated: false
'/MainEachmonths/{id}/replace':
post:
tags:
- MainEachmonth
summary: >-
Replace attributes for a model instance and persist it into the data
source.
operationId: 'MainEachmonth.replaceById__post_MainEachmonths_{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/MainEachmonth'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/MainEachmonth'
deprecated: false
/MainEachmonths/findOne:
get:
tags:
- MainEachmonth
summary: Find first instance of the model matched by filter from the data source.
operationId: MainEachmonth.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/MainEachmonth'
deprecated: false
/MainEachmonths/update:
post:
tags:
- MainEachmonth
summary: 'Update instances of the model matched by {{where}} from the data source.'
operationId: MainEachmonth.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/MainEachmonth'
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
/MainEachmonths/count:
get:
tags:
- MainEachmonth
summary: Count instances of the model matched by where from the data source.
operationId: MainEachmonth.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:
......@@ -21469,6 +22241,34 @@ definitions:
required:
- name
additionalProperties: false
MainBillbrand:
properties:
id:
maxLength: 36
type: string
name:
maxLength: 200
type: string
value:
type: number
format: double
required:
- value
additionalProperties: false
MainEachmonth:
properties:
id:
maxLength: 36
type: string
name:
maxLength: 2
type: string
value:
type: number
format: double
required:
- value
additionalProperties: false
basePath: /api/ruipeng
swagger: '2.0'
info:
......
......@@ -224,5 +224,13 @@
"InterEntityorder": {
"dataSource": "ruipeng",
"public": true
},
"MainBillbrand": {
"dataSource": "ruipeng",
"public": true
},
"MainEachmonth": {
"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