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

add

parent 0494fddf
'use strict';
module.exports = function(Mainrevenuemonth) {
};
{
"name": "MainRevenuemonth",
"base": "PersistedModel",
"idInjection": false,
"options": {
"validateUpsert": true
},
"mysql": {
"schema": "wordpress",
"table": "main_revenuemonth"
},
"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": 100,
"precision": null,
"scale": null,
"mysql": {
"columnName": "name",
"dataType": "varchar",
"dataLength": 100,
"dataPrecision": null,
"dataScale": null,
"nullable": "Y"
}
},
"value": {
"type": "Number",
"required": true,
"length": null,
"precision": 17,
"scale": 0,
"mysql": {
"columnName": "value",
"dataType": "double",
"dataLength": null,
"dataPrecision": 17,
"dataScale": 0,
"nullable": "Y"
}
}
},
"validations": [],
"relations": {},
"acls": [],
"methods": {}
}
...@@ -39,6 +39,21 @@ ...@@ -39,6 +39,21 @@
"dataScale": null, "dataScale": null,
"nullable": "Y" "nullable": "Y"
} }
},
"value": {
"type": "Number",
"required": false,
"length": null,
"precision": 46,
"scale": 2,
"mysql": {
"columnName": "value",
"dataType": "decimal",
"dataLength": null,
"dataPrecision": 46,
"dataScale": 2,
"nullable": "Y"
}
} }
}, },
"validations": [], "validations": [],
......
...@@ -25929,6 +25929,778 @@ paths: ...@@ -25929,6 +25929,778 @@ paths:
type: number type: number
format: double format: double
deprecated: false deprecated: false
/MainRevenuemonths:
post:
tags:
- MainRevenuemonth
summary: Create a new instance of the model and persist it into the data source.
operationId: MainRevenuemonth.create
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/MainRevenuemonth'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/MainRevenuemonth'
deprecated: false
patch:
tags:
- MainRevenuemonth
summary: >-
Patch an existing model instance or insert a new one into the data
source.
operationId: MainRevenuemonth.patchOrCreate
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/MainRevenuemonth'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/MainRevenuemonth'
deprecated: false
put:
tags:
- MainRevenuemonth
summary: >-
Replace an existing model instance or insert a new one into the data
source.
operationId: MainRevenuemonth.replaceOrCreate__put_MainRevenuemonths
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/MainRevenuemonth'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/MainRevenuemonth'
deprecated: false
get:
tags:
- MainRevenuemonth
summary: Find all instances of the model matched by filter from the data source.
operationId: MainRevenuemonth.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/MainRevenuemonth'
deprecated: false
/MainRevenuemonths/replaceOrCreate:
post:
tags:
- MainRevenuemonth
summary: >-
Replace an existing model instance or insert a new one into the data
source.
operationId: MainRevenuemonth.replaceOrCreate__post_MainRevenuemonths_replaceOrCreate
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/MainRevenuemonth'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/MainRevenuemonth'
deprecated: false
/MainRevenuemonths/upsertWithWhere:
post:
tags:
- MainRevenuemonth
summary: >-
Update an existing model instance or insert a new one into the data
source based on the where criteria.
operationId: MainRevenuemonth.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/MainRevenuemonth'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/MainRevenuemonth'
deprecated: false
'/MainRevenuemonths/{id}/exists':
get:
tags:
- MainRevenuemonth
summary: Check whether a model instance exists in the data source.
operationId: 'MainRevenuemonth.exists__get_MainRevenuemonths_{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
'/MainRevenuemonths/{id}':
head:
tags:
- MainRevenuemonth
summary: Check whether a model instance exists in the data source.
operationId: 'MainRevenuemonth.exists__head_MainRevenuemonths_{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:
- MainRevenuemonth
summary: 'Find a model instance by {{id}} from the data source.'
operationId: MainRevenuemonth.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/MainRevenuemonth'
deprecated: false
put:
tags:
- MainRevenuemonth
summary: >-
Replace attributes for a model instance and persist it into the data
source.
operationId: 'MainRevenuemonth.replaceById__put_MainRevenuemonths_{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/MainRevenuemonth'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/MainRevenuemonth'
deprecated: false
delete:
tags:
- MainRevenuemonth
summary: 'Delete a model instance by {{id}} from the data source.'
operationId: MainRevenuemonth.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:
- MainRevenuemonth
summary: >-
Patch attributes for a model instance and persist it into the data
source.
operationId: MainRevenuemonth.prototype.patchAttributes
parameters:
- name: id
in: path
description: MainRevenuemonth 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/MainRevenuemonth'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/MainRevenuemonth'
deprecated: false
'/MainRevenuemonths/{id}/replace':
post:
tags:
- MainRevenuemonth
summary: >-
Replace attributes for a model instance and persist it into the data
source.
operationId: 'MainRevenuemonth.replaceById__post_MainRevenuemonths_{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/MainRevenuemonth'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/MainRevenuemonth'
deprecated: false
/MainRevenuemonths/findOne:
get:
tags:
- MainRevenuemonth
summary: Find first instance of the model matched by filter from the data source.
operationId: MainRevenuemonth.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/MainRevenuemonth'
deprecated: false
/MainRevenuemonths/update:
post:
tags:
- MainRevenuemonth
summary: 'Update instances of the model matched by {{where}} from the data source.'
operationId: MainRevenuemonth.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/MainRevenuemonth'
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
/MainRevenuemonths/count:
get:
tags:
- MainRevenuemonth
summary: Count instances of the model matched by where from the data source.
operationId: MainRevenuemonth.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
/MainTraderevenues:
post:
tags:
- MainTraderevenue
summary: Create a new instance of the model and persist it into the data source.
operationId: MainTraderevenue.create
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/MainTraderevenue'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/MainTraderevenue'
deprecated: false
patch:
tags:
- MainTraderevenue
summary: >-
Patch an existing model instance or insert a new one into the data
source.
operationId: MainTraderevenue.patchOrCreate
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/MainTraderevenue'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/MainTraderevenue'
deprecated: false
put:
tags:
- MainTraderevenue
summary: >-
Replace an existing model instance or insert a new one into the data
source.
operationId: MainTraderevenue.replaceOrCreate__put_MainTraderevenues
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/MainTraderevenue'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/MainTraderevenue'
deprecated: false
get:
tags:
- MainTraderevenue
summary: Find all instances of the model matched by filter from the data source.
operationId: MainTraderevenue.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/MainTraderevenue'
deprecated: false
/MainTraderevenues/replaceOrCreate:
post:
tags:
- MainTraderevenue
summary: >-
Replace an existing model instance or insert a new one into the data
source.
operationId: MainTraderevenue.replaceOrCreate__post_MainTraderevenues_replaceOrCreate
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/MainTraderevenue'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/MainTraderevenue'
deprecated: false
/MainTraderevenues/upsertWithWhere:
post:
tags:
- MainTraderevenue
summary: >-
Update an existing model instance or insert a new one into the data
source based on the where criteria.
operationId: MainTraderevenue.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/MainTraderevenue'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/MainTraderevenue'
deprecated: false
'/MainTraderevenues/{id}/exists':
get:
tags:
- MainTraderevenue
summary: Check whether a model instance exists in the data source.
operationId: 'MainTraderevenue.exists__get_MainTraderevenues_{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
'/MainTraderevenues/{id}':
head:
tags:
- MainTraderevenue
summary: Check whether a model instance exists in the data source.
operationId: 'MainTraderevenue.exists__head_MainTraderevenues_{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:
- MainTraderevenue
summary: 'Find a model instance by {{id}} from the data source.'
operationId: MainTraderevenue.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/MainTraderevenue'
deprecated: false
put:
tags:
- MainTraderevenue
summary: >-
Replace attributes for a model instance and persist it into the data
source.
operationId: 'MainTraderevenue.replaceById__put_MainTraderevenues_{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/MainTraderevenue'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/MainTraderevenue'
deprecated: false
delete:
tags:
- MainTraderevenue
summary: 'Delete a model instance by {{id}} from the data source.'
operationId: MainTraderevenue.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:
- MainTraderevenue
summary: >-
Patch attributes for a model instance and persist it into the data
source.
operationId: MainTraderevenue.prototype.patchAttributes
parameters:
- name: id
in: path
description: MainTraderevenue 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/MainTraderevenue'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/MainTraderevenue'
deprecated: false
'/MainTraderevenues/{id}/replace':
post:
tags:
- MainTraderevenue
summary: >-
Replace attributes for a model instance and persist it into the data
source.
operationId: 'MainTraderevenue.replaceById__post_MainTraderevenues_{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/MainTraderevenue'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/MainTraderevenue'
deprecated: false
/MainTraderevenues/findOne:
get:
tags:
- MainTraderevenue
summary: Find first instance of the model matched by filter from the data source.
operationId: MainTraderevenue.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/MainTraderevenue'
deprecated: false
/MainTraderevenues/update:
post:
tags:
- MainTraderevenue
summary: 'Update instances of the model matched by {{where}} from the data source.'
operationId: MainTraderevenue.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/MainTraderevenue'
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
/MainTraderevenues/count:
get:
tags:
- MainTraderevenue
summary: Count instances of the model matched by where from the data source.
operationId: MainTraderevenue.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: definitions:
DashboardHospitalAwenCount: DashboardHospitalAwenCount:
properties: properties:
...@@ -27054,6 +27826,32 @@ definitions: ...@@ -27054,6 +27826,32 @@ definitions:
type: number type: number
format: double format: double
additionalProperties: false additionalProperties: false
MainRevenuemonth:
properties:
id:
maxLength: 36
type: string
name:
maxLength: 100
type: string
value:
type: number
format: double
required:
- value
additionalProperties: false
MainTraderevenue:
properties:
id:
maxLength: 36
type: string
name:
maxLength: 200
type: string
value:
type: number
format: double
additionalProperties: false
basePath: /api/ruipeng basePath: /api/ruipeng
swagger: '2.0' swagger: '2.0'
info: info:
......
...@@ -280,5 +280,13 @@ ...@@ -280,5 +280,13 @@
"BillCompanyrevenue": { "BillCompanyrevenue": {
"dataSource": "ruipeng", "dataSource": "ruipeng",
"public": true "public": true
},
"MainRevenuemonth": {
"dataSource": "ruipeng",
"public": true
},
"MainTraderevenue": {
"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