Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
RuiPengLoopbackApi
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
黄卓然
RuiPengLoopbackApi
Commits
c22038f1
Commit
c22038f1
authored
5 years ago
by
余海军
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add
parent
21dcd4f2
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
944 additions
and
0 deletions
+944
-0
inter-total.js
common/models/inter-total.js
+5
-0
inter-total.json
common/models/inter-total.json
+63
-0
inter-yesterday.js
common/models/inter-yesterday.js
+5
-0
inter-yesterday.json
common/models/inter-yesterday.json
+63
-0
RuiPengLoopbackApi.yaml
definitions/RuiPengLoopbackApi.yaml
+800
-0
model-config.json
server/model-config.json
+8
-0
No files found.
common/models/inter-total.js
0 → 100644
View file @
c22038f1
'use strict'
;
module
.
exports
=
function
(
Intertotal
)
{
};
This diff is collapsed.
Click to expand it.
common/models/inter-total.json
0 → 100644
View file @
c22038f1
{
"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"
:
{}
}
This diff is collapsed.
Click to expand it.
common/models/inter-yesterday.js
0 → 100644
View file @
c22038f1
'use strict'
;
module
.
exports
=
function
(
Interyesterday
)
{
};
This diff is collapsed.
Click to expand it.
common/models/inter-yesterday.json
0 → 100644
View file @
c22038f1
{
"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"
:
{}
}
This diff is collapsed.
Click to expand it.
definitions/RuiPengLoopbackApi.yaml
View file @
c22038f1
...
@@ -61062,6 +61062,778 @@ paths:
...
@@ -61062,6 +61062,778 @@ paths:
type: number
type: number
format: double
format: double
deprecated: false
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:
definitions:
DashboardHospitalAwenCount:
DashboardHospitalAwenCount:
properties:
properties:
...
@@ -63433,6 +64205,34 @@ definitions:
...
@@ -63433,6 +64205,34 @@ definitions:
required:
required:
- imgUrl
- imgUrl
additionalProperties: false
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
basePath: /api/ruipeng
swagger: '2.0'
swagger: '2.0'
info:
info:
This diff is collapsed.
Click to expand it.
server/model-config.json
View file @
c22038f1
...
@@ -644,5 +644,13 @@
...
@@ -644,5 +644,13 @@
"HosDetail"
:
{
"HosDetail"
:
{
"dataSource"
:
"ruipeng"
,
"dataSource"
:
"ruipeng"
,
"public"
:
true
"public"
:
true
},
"InterTotal"
:
{
"dataSource"
:
"ruipeng"
,
"public"
:
true
},
"InterYesterday"
:
{
"dataSource"
:
"ruipeng"
,
"public"
:
true
}
}
}
}
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment