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
e36d3e5a
Commit
e36d3e5a
authored
Sep 26, 2019
by
黄卓然
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
25a7ac92
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
944 additions
and
0 deletions
+944
-0
hos-accrualday.js
common/models/hos-accrualday.js
+5
-0
hos-accrualday.json
common/models/hos-accrualday.json
+63
-0
hos-accrualmonth.js
common/models/hos-accrualmonth.js
+5
-0
hos-accrualmonth.json
common/models/hos-accrualmonth.json
+63
-0
RuiPengLoopbackApi.yaml
definitions/RuiPengLoopbackApi.yaml
+800
-0
model-config.json
server/model-config.json
+8
-0
No files found.
common/models/hos-accrualday.js
0 → 100644
View file @
e36d3e5a
'use strict'
;
module
.
exports
=
function
(
Hosaccrualday
)
{
};
common/models/hos-accrualday.json
0 → 100644
View file @
e36d3e5a
{
"name"
:
"HosAccrualday"
,
"base"
:
"PersistedModel"
,
"idInjection"
:
false
,
"options"
:
{
"validateUpsert"
:
true
},
"mysql"
:
{
"schema"
:
"wordpress"
,
"table"
:
"hos_accrualday"
},
"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"
}
},
"value"
:
{
"type"
:
"Number"
,
"required"
:
true
,
"length"
:
null
,
"precision"
:
19
,
"scale"
:
0
,
"mysql"
:
{
"columnName"
:
"value"
,
"dataType"
:
"bigint"
,
"dataLength"
:
null
,
"dataPrecision"
:
19
,
"dataScale"
:
0
,
"nullable"
:
"N"
}
},
"area"
:
{
"type"
:
"String"
,
"required"
:
false
,
"length"
:
101
,
"precision"
:
null
,
"scale"
:
null
,
"mysql"
:
{
"columnName"
:
"area"
,
"dataType"
:
"varchar"
,
"dataLength"
:
101
,
"dataPrecision"
:
null
,
"dataScale"
:
null
,
"nullable"
:
"Y"
}
}
},
"validations"
:
[],
"relations"
:
{},
"acls"
:
[],
"methods"
:
{}
}
common/models/hos-accrualmonth.js
0 → 100644
View file @
e36d3e5a
'use strict'
;
module
.
exports
=
function
(
Hosaccrualmonth
)
{
};
common/models/hos-accrualmonth.json
0 → 100644
View file @
e36d3e5a
{
"name"
:
"HosAccrualmonth"
,
"base"
:
"PersistedModel"
,
"idInjection"
:
false
,
"options"
:
{
"validateUpsert"
:
true
},
"mysql"
:
{
"schema"
:
"wordpress"
,
"table"
:
"hos_accrualmonth"
},
"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"
}
},
"value"
:
{
"type"
:
"Number"
,
"required"
:
true
,
"length"
:
null
,
"precision"
:
19
,
"scale"
:
0
,
"mysql"
:
{
"columnName"
:
"value"
,
"dataType"
:
"bigint"
,
"dataLength"
:
null
,
"dataPrecision"
:
19
,
"dataScale"
:
0
,
"nullable"
:
"N"
}
},
"area"
:
{
"type"
:
"String"
,
"required"
:
false
,
"length"
:
101
,
"precision"
:
null
,
"scale"
:
null
,
"mysql"
:
{
"columnName"
:
"area"
,
"dataType"
:
"varchar"
,
"dataLength"
:
101
,
"dataPrecision"
:
null
,
"dataScale"
:
null
,
"nullable"
:
"Y"
}
}
},
"validations"
:
[],
"relations"
:
{},
"acls"
:
[],
"methods"
:
{}
}
definitions/RuiPengLoopbackApi.yaml
View file @
e36d3e5a
...
...
@@ -60674,6 +60674,778 @@ paths:
type: number
format: double
deprecated: false
/HosAccrualdays:
post:
tags:
- HosAccrualday
summary: Create a new instance of the model and persist it into the data source.
operationId: HosAccrualday.create
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/HosAccrualday'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/HosAccrualday'
deprecated: false
patch:
tags:
- HosAccrualday
summary: >-
Patch an existing model instance or insert a new one into the data
source.
operationId: HosAccrualday.patchOrCreate
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/HosAccrualday'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/HosAccrualday'
deprecated: false
put:
tags:
- HosAccrualday
summary: >-
Replace an existing model instance or insert a new one into the data
source.
operationId: HosAccrualday.replaceOrCreate__put_HosAccrualdays
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/HosAccrualday'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/HosAccrualday'
deprecated: false
get:
tags:
- HosAccrualday
summary: Find all instances of the model matched by filter from the data source.
operationId: HosAccrualday.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/HosAccrualday'
deprecated: false
/HosAccrualdays/replaceOrCreate:
post:
tags:
- HosAccrualday
summary: >-
Replace an existing model instance or insert a new one into the data
source.
operationId: HosAccrualday.replaceOrCreate__post_HosAccrualdays_replaceOrCreate
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/HosAccrualday'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/HosAccrualday'
deprecated: false
/HosAccrualdays/upsertWithWhere:
post:
tags:
- HosAccrualday
summary: >-
Update an existing model instance or insert a new one into the data
source based on the where criteria.
operationId: HosAccrualday.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/HosAccrualday'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/HosAccrualday'
deprecated: false
'/HosAccrualdays/{id}/exists':
get:
tags:
- HosAccrualday
summary: Check whether a model instance exists in the data source.
operationId: 'HosAccrualday.exists__get_HosAccrualdays_{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
'/HosAccrualdays/{id}':
head:
tags:
- HosAccrualday
summary: Check whether a model instance exists in the data source.
operationId: 'HosAccrualday.exists__head_HosAccrualdays_{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:
- HosAccrualday
summary: 'Find a model instance by {{id}} from the data source.'
operationId: HosAccrualday.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/HosAccrualday'
deprecated: false
put:
tags:
- HosAccrualday
summary: >-
Replace attributes for a model instance and persist it into the data
source.
operationId: 'HosAccrualday.replaceById__put_HosAccrualdays_{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/HosAccrualday'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/HosAccrualday'
deprecated: false
delete:
tags:
- HosAccrualday
summary: 'Delete a model instance by {{id}} from the data source.'
operationId: HosAccrualday.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:
- HosAccrualday
summary: >-
Patch attributes for a model instance and persist it into the data
source.
operationId: HosAccrualday.prototype.patchAttributes
parameters:
- name: id
in: path
description: HosAccrualday 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/HosAccrualday'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/HosAccrualday'
deprecated: false
'/HosAccrualdays/{id}/replace':
post:
tags:
- HosAccrualday
summary: >-
Replace attributes for a model instance and persist it into the data
source.
operationId: 'HosAccrualday.replaceById__post_HosAccrualdays_{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/HosAccrualday'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/HosAccrualday'
deprecated: false
/HosAccrualdays/findOne:
get:
tags:
- HosAccrualday
summary: Find first instance of the model matched by filter from the data source.
operationId: HosAccrualday.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/HosAccrualday'
deprecated: false
/HosAccrualdays/update:
post:
tags:
- HosAccrualday
summary: 'Update instances of the model matched by {{where}} from the data source.'
operationId: HosAccrualday.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/HosAccrualday'
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
/HosAccrualdays/count:
get:
tags:
- HosAccrualday
summary: Count instances of the model matched by where from the data source.
operationId: HosAccrualday.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
/HosAccrualmonths:
post:
tags:
- HosAccrualmonth
summary: Create a new instance of the model and persist it into the data source.
operationId: HosAccrualmonth.create
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/HosAccrualmonth'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/HosAccrualmonth'
deprecated: false
patch:
tags:
- HosAccrualmonth
summary: >-
Patch an existing model instance or insert a new one into the data
source.
operationId: HosAccrualmonth.patchOrCreate
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/HosAccrualmonth'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/HosAccrualmonth'
deprecated: false
put:
tags:
- HosAccrualmonth
summary: >-
Replace an existing model instance or insert a new one into the data
source.
operationId: HosAccrualmonth.replaceOrCreate__put_HosAccrualmonths
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/HosAccrualmonth'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/HosAccrualmonth'
deprecated: false
get:
tags:
- HosAccrualmonth
summary: Find all instances of the model matched by filter from the data source.
operationId: HosAccrualmonth.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/HosAccrualmonth'
deprecated: false
/HosAccrualmonths/replaceOrCreate:
post:
tags:
- HosAccrualmonth
summary: >-
Replace an existing model instance or insert a new one into the data
source.
operationId: HosAccrualmonth.replaceOrCreate__post_HosAccrualmonths_replaceOrCreate
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/HosAccrualmonth'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/HosAccrualmonth'
deprecated: false
/HosAccrualmonths/upsertWithWhere:
post:
tags:
- HosAccrualmonth
summary: >-
Update an existing model instance or insert a new one into the data
source based on the where criteria.
operationId: HosAccrualmonth.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/HosAccrualmonth'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/HosAccrualmonth'
deprecated: false
'/HosAccrualmonths/{id}/exists':
get:
tags:
- HosAccrualmonth
summary: Check whether a model instance exists in the data source.
operationId: 'HosAccrualmonth.exists__get_HosAccrualmonths_{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
'/HosAccrualmonths/{id}':
head:
tags:
- HosAccrualmonth
summary: Check whether a model instance exists in the data source.
operationId: 'HosAccrualmonth.exists__head_HosAccrualmonths_{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:
- HosAccrualmonth
summary: 'Find a model instance by {{id}} from the data source.'
operationId: HosAccrualmonth.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/HosAccrualmonth'
deprecated: false
put:
tags:
- HosAccrualmonth
summary: >-
Replace attributes for a model instance and persist it into the data
source.
operationId: 'HosAccrualmonth.replaceById__put_HosAccrualmonths_{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/HosAccrualmonth'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/HosAccrualmonth'
deprecated: false
delete:
tags:
- HosAccrualmonth
summary: 'Delete a model instance by {{id}} from the data source.'
operationId: HosAccrualmonth.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:
- HosAccrualmonth
summary: >-
Patch attributes for a model instance and persist it into the data
source.
operationId: HosAccrualmonth.prototype.patchAttributes
parameters:
- name: id
in: path
description: HosAccrualmonth 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/HosAccrualmonth'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/HosAccrualmonth'
deprecated: false
'/HosAccrualmonths/{id}/replace':
post:
tags:
- HosAccrualmonth
summary: >-
Replace attributes for a model instance and persist it into the data
source.
operationId: 'HosAccrualmonth.replaceById__post_HosAccrualmonths_{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/HosAccrualmonth'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/HosAccrualmonth'
deprecated: false
/HosAccrualmonths/findOne:
get:
tags:
- HosAccrualmonth
summary: Find first instance of the model matched by filter from the data source.
operationId: HosAccrualmonth.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/HosAccrualmonth'
deprecated: false
/HosAccrualmonths/update:
post:
tags:
- HosAccrualmonth
summary: 'Update instances of the model matched by {{where}} from the data source.'
operationId: HosAccrualmonth.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/HosAccrualmonth'
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
/HosAccrualmonths/count:
get:
tags:
- HosAccrualmonth
summary: Count instances of the model matched by where from the data source.
operationId: HosAccrualmonth.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:
...
...
@@ -63182,6 +63954,34 @@ definitions:
required:
- name
additionalProperties: false
HosAccrualday:
properties:
id:
maxLength: 36
type: string
value:
type: number
format: double
area:
maxLength: 101
type: string
required:
- value
additionalProperties: false
HosAccrualmonth:
properties:
id:
maxLength: 36
type: string
value:
type: number
format: double
area:
maxLength: 101
type: string
required:
- value
additionalProperties: false
basePath: /api/ruipeng
swagger: '2.0'
info:
server/model-config.json
View file @
e36d3e5a
...
...
@@ -640,5 +640,13 @@
"HosYiliao"
:
{
"dataSource"
:
"ruipeng"
,
"public"
:
true
},
"HosAccrualday"
:
{
"dataSource"
:
"ruipeng"
,
"public"
:
true
},
"HosAccrualmonth"
:
{
"dataSource"
:
"ruipeng"
,
"public"
:
true
}
}
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