Commit 86b6bd86 authored by 余海军's avatar 余海军

总订单量

parent 466a29fa
'use strict';
module.exports = function(Teachers) {
module.exports = function(Physical) {
};
{
"name": "Teachers",
"name": "Physical",
"base": "PersistedModel",
"idInjection": false,
"options": {
......@@ -7,7 +7,7 @@
},
"mysql": {
"schema": "wordpress",
"table": "teachers"
"table": "physical"
},
"properties": {
"id": {
......@@ -25,18 +25,33 @@
"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": 23,
"scale": null,
"precision": 32,
"scale": 0,
"mysql": {
"columnName": "value",
"dataType": "double",
"dataType": "decimal",
"dataLength": null,
"dataPrecision": 23,
"dataScale": null,
"dataPrecision": 32,
"dataScale": 0,
"nullable": "Y"
}
}
......
......@@ -5456,12 +5456,12 @@ paths:
type: number
format: double
deprecated: false
/Teachers:
/Revenues:
post:
tags:
- Teachers
- Revenue
summary: Create a new instance of the model and persist it into the data source.
operationId: Teachers.create
operationId: Revenue.create
parameters:
- name: data
in: body
......@@ -5469,20 +5469,20 @@ paths:
required: false
schema:
description: Model instance data
$ref: '#/definitions/Teachers'
$ref: '#/definitions/Revenue'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/Teachers'
$ref: '#/definitions/Revenue'
deprecated: false
patch:
tags:
- Teachers
- Revenue
summary: >-
Patch an existing model instance or insert a new one into the data
source.
operationId: Teachers.patchOrCreate
operationId: Revenue.patchOrCreate
parameters:
- name: data
in: body
......@@ -5490,20 +5490,20 @@ paths:
required: false
schema:
description: Model instance data
$ref: '#/definitions/Teachers'
$ref: '#/definitions/Revenue'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/Teachers'
$ref: '#/definitions/Revenue'
deprecated: false
put:
tags:
- Teachers
- Revenue
summary: >-
Replace an existing model instance or insert a new one into the data
source.
operationId: Teachers.replaceOrCreate__put_Teachers
operationId: Revenue.replaceOrCreate__put_Revenues
parameters:
- name: data
in: body
......@@ -5511,18 +5511,18 @@ paths:
required: false
schema:
description: Model instance data
$ref: '#/definitions/Teachers'
$ref: '#/definitions/Revenue'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/Teachers'
$ref: '#/definitions/Revenue'
deprecated: false
get:
tags:
- Teachers
- Revenue
summary: Find all instances of the model matched by filter from the data source.
operationId: Teachers.find
operationId: Revenue.find
parameters:
- name: filter
in: query
......@@ -5541,16 +5541,16 @@ paths:
schema:
type: array
items:
$ref: '#/definitions/Teachers'
$ref: '#/definitions/Revenue'
deprecated: false
/Teachers/replaceOrCreate:
/Revenues/replaceOrCreate:
post:
tags:
- Teachers
- Revenue
summary: >-
Replace an existing model instance or insert a new one into the data
source.
operationId: Teachers.replaceOrCreate__post_Teachers_replaceOrCreate
operationId: Revenue.replaceOrCreate__post_Revenues_replaceOrCreate
parameters:
- name: data
in: body
......@@ -5558,21 +5558,21 @@ paths:
required: false
schema:
description: Model instance data
$ref: '#/definitions/Teachers'
$ref: '#/definitions/Revenue'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/Teachers'
$ref: '#/definitions/Revenue'
deprecated: false
/Teachers/upsertWithWhere:
/Revenues/upsertWithWhere:
post:
tags:
- Teachers
- Revenue
summary: >-
Update an existing model instance or insert a new one into the data
source based on the where criteria.
operationId: Teachers.upsertWithWhere
operationId: Revenue.upsertWithWhere
parameters:
- name: where
in: query
......@@ -5586,19 +5586,19 @@ paths:
required: false
schema:
description: An object of model property name/value pairs
$ref: '#/definitions/Teachers'
$ref: '#/definitions/Revenue'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/Teachers'
$ref: '#/definitions/Revenue'
deprecated: false
'/Teachers/{id}/exists':
'/Revenues/{id}/exists':
get:
tags:
- Teachers
- Revenue
summary: Check whether a model instance exists in the data source.
operationId: 'Teachers.exists__get_Teachers_{id}_exists'
operationId: 'Revenue.exists__get_Revenues_{id}_exists'
parameters:
- name: id
in: path
......@@ -5615,12 +5615,12 @@ paths:
exists:
type: boolean
deprecated: false
'/Teachers/{id}':
'/Revenues/{id}':
head:
tags:
- Teachers
- Revenue
summary: Check whether a model instance exists in the data source.
operationId: 'Teachers.exists__head_Teachers_{id}'
operationId: 'Revenue.exists__head_Revenues_{id}'
parameters:
- name: id
in: path
......@@ -5639,9 +5639,9 @@ paths:
deprecated: false
get:
tags:
- Teachers
- Revenue
summary: 'Find a model instance by {{id}} from the data source.'
operationId: Teachers.findById
operationId: Revenue.findById
parameters:
- name: id
in: path
......@@ -5661,15 +5661,15 @@ paths:
'200':
description: Request was successful
schema:
$ref: '#/definitions/Teachers'
$ref: '#/definitions/Revenue'
deprecated: false
put:
tags:
- Teachers
- Revenue
summary: >-
Replace attributes for a model instance and persist it into the data
source.
operationId: 'Teachers.replaceById__put_Teachers_{id}'
operationId: 'Revenue.replaceById__put_Revenues_{id}'
parameters:
- name: id
in: path
......@@ -5683,18 +5683,18 @@ paths:
required: false
schema:
description: Model instance data
$ref: '#/definitions/Teachers'
$ref: '#/definitions/Revenue'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/Teachers'
$ref: '#/definitions/Revenue'
deprecated: false
delete:
tags:
- Teachers
- Revenue
summary: 'Delete a model instance by {{id}} from the data source.'
operationId: Teachers.deleteById
operationId: Revenue.deleteById
parameters:
- name: id
in: path
......@@ -5710,15 +5710,15 @@ paths:
deprecated: false
patch:
tags:
- Teachers
- Revenue
summary: >-
Patch attributes for a model instance and persist it into the data
source.
operationId: Teachers.prototype.patchAttributes
operationId: Revenue.prototype.patchAttributes
parameters:
- name: id
in: path
description: Teachers id
description: Revenue id
required: true
type: string
format: JSON
......@@ -5728,21 +5728,21 @@ paths:
required: false
schema:
description: An object of model property name/value pairs
$ref: '#/definitions/Teachers'
$ref: '#/definitions/Revenue'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/Teachers'
$ref: '#/definitions/Revenue'
deprecated: false
'/Teachers/{id}/replace':
'/Revenues/{id}/replace':
post:
tags:
- Teachers
- Revenue
summary: >-
Replace attributes for a model instance and persist it into the data
source.
operationId: 'Teachers.replaceById__post_Teachers_{id}_replace'
operationId: 'Revenue.replaceById__post_Revenues_{id}_replace'
parameters:
- name: id
in: path
......@@ -5756,19 +5756,19 @@ paths:
required: false
schema:
description: Model instance data
$ref: '#/definitions/Teachers'
$ref: '#/definitions/Revenue'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/Teachers'
$ref: '#/definitions/Revenue'
deprecated: false
/Teachers/findOne:
/Revenues/findOne:
get:
tags:
- Teachers
- Revenue
summary: Find first instance of the model matched by filter from the data source.
operationId: Teachers.findOne
operationId: Revenue.findOne
parameters:
- name: filter
in: query
......@@ -5785,14 +5785,14 @@ paths:
'200':
description: Request was successful
schema:
$ref: '#/definitions/Teachers'
$ref: '#/definitions/Revenue'
deprecated: false
/Teachers/update:
/Revenues/update:
post:
tags:
- Teachers
- Revenue
summary: 'Update instances of the model matched by {{where}} from the data source.'
operationId: Teachers.updateAll
operationId: Revenue.updateAll
parameters:
- name: where
in: query
......@@ -5806,7 +5806,7 @@ paths:
required: false
schema:
description: An object of model property name/value pairs
$ref: '#/definitions/Teachers'
$ref: '#/definitions/Revenue'
responses:
'200':
description: Request was successful
......@@ -5819,12 +5819,12 @@ paths:
type: number
format: double
deprecated: false
/Teachers/count:
/Revenues/count:
get:
tags:
- Teachers
- Revenue
summary: Count instances of the model matched by where from the data source.
operationId: Teachers.count
operationId: Revenue.count
parameters:
- name: where
in: query
......@@ -5842,12 +5842,12 @@ paths:
type: number
format: double
deprecated: false
/Revenues:
/Physicals:
post:
tags:
- Revenue
- Physical
summary: Create a new instance of the model and persist it into the data source.
operationId: Revenue.create
operationId: Physical.create
parameters:
- name: data
in: body
......@@ -5855,20 +5855,20 @@ paths:
required: false
schema:
description: Model instance data
$ref: '#/definitions/Revenue'
$ref: '#/definitions/Physical'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/Revenue'
$ref: '#/definitions/Physical'
deprecated: false
patch:
tags:
- Revenue
- Physical
summary: >-
Patch an existing model instance or insert a new one into the data
source.
operationId: Revenue.patchOrCreate
operationId: Physical.patchOrCreate
parameters:
- name: data
in: body
......@@ -5876,20 +5876,20 @@ paths:
required: false
schema:
description: Model instance data
$ref: '#/definitions/Revenue'
$ref: '#/definitions/Physical'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/Revenue'
$ref: '#/definitions/Physical'
deprecated: false
put:
tags:
- Revenue
- Physical
summary: >-
Replace an existing model instance or insert a new one into the data
source.
operationId: Revenue.replaceOrCreate__put_Revenues
operationId: Physical.replaceOrCreate__put_Physicals
parameters:
- name: data
in: body
......@@ -5897,18 +5897,18 @@ paths:
required: false
schema:
description: Model instance data
$ref: '#/definitions/Revenue'
$ref: '#/definitions/Physical'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/Revenue'
$ref: '#/definitions/Physical'
deprecated: false
get:
tags:
- Revenue
- Physical
summary: Find all instances of the model matched by filter from the data source.
operationId: Revenue.find
operationId: Physical.find
parameters:
- name: filter
in: query
......@@ -5927,16 +5927,16 @@ paths:
schema:
type: array
items:
$ref: '#/definitions/Revenue'
$ref: '#/definitions/Physical'
deprecated: false
/Revenues/replaceOrCreate:
/Physicals/replaceOrCreate:
post:
tags:
- Revenue
- Physical
summary: >-
Replace an existing model instance or insert a new one into the data
source.
operationId: Revenue.replaceOrCreate__post_Revenues_replaceOrCreate
operationId: Physical.replaceOrCreate__post_Physicals_replaceOrCreate
parameters:
- name: data
in: body
......@@ -5944,21 +5944,21 @@ paths:
required: false
schema:
description: Model instance data
$ref: '#/definitions/Revenue'
$ref: '#/definitions/Physical'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/Revenue'
$ref: '#/definitions/Physical'
deprecated: false
/Revenues/upsertWithWhere:
/Physicals/upsertWithWhere:
post:
tags:
- Revenue
- Physical
summary: >-
Update an existing model instance or insert a new one into the data
source based on the where criteria.
operationId: Revenue.upsertWithWhere
operationId: Physical.upsertWithWhere
parameters:
- name: where
in: query
......@@ -5972,19 +5972,19 @@ paths:
required: false
schema:
description: An object of model property name/value pairs
$ref: '#/definitions/Revenue'
$ref: '#/definitions/Physical'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/Revenue'
$ref: '#/definitions/Physical'
deprecated: false
'/Revenues/{id}/exists':
'/Physicals/{id}/exists':
get:
tags:
- Revenue
- Physical
summary: Check whether a model instance exists in the data source.
operationId: 'Revenue.exists__get_Revenues_{id}_exists'
operationId: 'Physical.exists__get_Physicals_{id}_exists'
parameters:
- name: id
in: path
......@@ -6001,12 +6001,12 @@ paths:
exists:
type: boolean
deprecated: false
'/Revenues/{id}':
'/Physicals/{id}':
head:
tags:
- Revenue
- Physical
summary: Check whether a model instance exists in the data source.
operationId: 'Revenue.exists__head_Revenues_{id}'
operationId: 'Physical.exists__head_Physicals_{id}'
parameters:
- name: id
in: path
......@@ -6025,9 +6025,9 @@ paths:
deprecated: false
get:
tags:
- Revenue
- Physical
summary: 'Find a model instance by {{id}} from the data source.'
operationId: Revenue.findById
operationId: Physical.findById
parameters:
- name: id
in: path
......@@ -6047,15 +6047,15 @@ paths:
'200':
description: Request was successful
schema:
$ref: '#/definitions/Revenue'
$ref: '#/definitions/Physical'
deprecated: false
put:
tags:
- Revenue
- Physical
summary: >-
Replace attributes for a model instance and persist it into the data
source.
operationId: 'Revenue.replaceById__put_Revenues_{id}'
operationId: 'Physical.replaceById__put_Physicals_{id}'
parameters:
- name: id
in: path
......@@ -6069,18 +6069,18 @@ paths:
required: false
schema:
description: Model instance data
$ref: '#/definitions/Revenue'
$ref: '#/definitions/Physical'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/Revenue'
$ref: '#/definitions/Physical'
deprecated: false
delete:
tags:
- Revenue
- Physical
summary: 'Delete a model instance by {{id}} from the data source.'
operationId: Revenue.deleteById
operationId: Physical.deleteById
parameters:
- name: id
in: path
......@@ -6096,15 +6096,15 @@ paths:
deprecated: false
patch:
tags:
- Revenue
- Physical
summary: >-
Patch attributes for a model instance and persist it into the data
source.
operationId: Revenue.prototype.patchAttributes
operationId: Physical.prototype.patchAttributes
parameters:
- name: id
in: path
description: Revenue id
description: Physical id
required: true
type: string
format: JSON
......@@ -6114,21 +6114,21 @@ paths:
required: false
schema:
description: An object of model property name/value pairs
$ref: '#/definitions/Revenue'
$ref: '#/definitions/Physical'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/Revenue'
$ref: '#/definitions/Physical'
deprecated: false
'/Revenues/{id}/replace':
'/Physicals/{id}/replace':
post:
tags:
- Revenue
- Physical
summary: >-
Replace attributes for a model instance and persist it into the data
source.
operationId: 'Revenue.replaceById__post_Revenues_{id}_replace'
operationId: 'Physical.replaceById__post_Physicals_{id}_replace'
parameters:
- name: id
in: path
......@@ -6142,19 +6142,19 @@ paths:
required: false
schema:
description: Model instance data
$ref: '#/definitions/Revenue'
$ref: '#/definitions/Physical'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/Revenue'
$ref: '#/definitions/Physical'
deprecated: false
/Revenues/findOne:
/Physicals/findOne:
get:
tags:
- Revenue
- Physical
summary: Find first instance of the model matched by filter from the data source.
operationId: Revenue.findOne
operationId: Physical.findOne
parameters:
- name: filter
in: query
......@@ -6171,14 +6171,14 @@ paths:
'200':
description: Request was successful
schema:
$ref: '#/definitions/Revenue'
$ref: '#/definitions/Physical'
deprecated: false
/Revenues/update:
/Physicals/update:
post:
tags:
- Revenue
- Physical
summary: 'Update instances of the model matched by {{where}} from the data source.'
operationId: Revenue.updateAll
operationId: Physical.updateAll
parameters:
- name: where
in: query
......@@ -6192,7 +6192,7 @@ paths:
required: false
schema:
description: An object of model property name/value pairs
$ref: '#/definitions/Revenue'
$ref: '#/definitions/Physical'
responses:
'200':
description: Request was successful
......@@ -6205,12 +6205,12 @@ paths:
type: number
format: double
deprecated: false
/Revenues/count:
/Physicals/count:
get:
tags:
- Revenue
- Physical
summary: Count instances of the model matched by where from the data source.
operationId: Revenue.count
operationId: Physical.count
parameters:
- name: where
in: query
......@@ -6644,22 +6644,27 @@ definitions:
- name
- value
additionalProperties: false
Teachers:
Revenue:
properties:
id:
maxLength: 36
type: string
name:
maxLength: 5
type: string
value:
type: number
format: double
required:
- name
additionalProperties: false
Revenue:
Physical:
properties:
id:
maxLength: 36
type: string
name:
maxLength: 5
maxLength: 4
type: string
value:
type: number
......
......@@ -69,11 +69,11 @@
"dataSource": "ruipeng",
"public": true
},
"Teachers": {
"Revenue": {
"dataSource": "ruipeng",
"public": true
},
"Revenue": {
"Physical": {
"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