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
b6892fd9
Commit
b6892fd9
authored
5 years ago
by
余海军
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add
parent
00132e84
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
944 additions
and
0 deletions
+944
-0
inter-miaopai.js
common/models/inter-miaopai.js
+5
-0
inter-miaopai.json
common/models/inter-miaopai.json
+63
-0
inter-tengxun.js
common/models/inter-tengxun.js
+5
-0
inter-tengxun.json
common/models/inter-tengxun.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-miaopai.js
0 → 100644
View file @
b6892fd9
'use strict'
;
module
.
exports
=
function
(
Intermiaopai
)
{
};
This diff is collapsed.
Click to expand it.
common/models/inter-miaopai.json
0 → 100644
View file @
b6892fd9
{
"name"
:
"InterMiaopai"
,
"base"
:
"PersistedModel"
,
"idInjection"
:
false
,
"options"
:
{
"validateUpsert"
:
true
},
"mysql"
:
{
"schema"
:
"wordpress"
,
"table"
:
"inter_miaopai"
},
"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"
:
3
,
"precision"
:
null
,
"scale"
:
null
,
"mysql"
:
{
"columnName"
:
"name"
,
"dataType"
:
"varchar"
,
"dataLength"
:
3
,
"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-tengxun.js
0 → 100644
View file @
b6892fd9
'use strict'
;
module
.
exports
=
function
(
Intertengxun
)
{
};
This diff is collapsed.
Click to expand it.
common/models/inter-tengxun.json
0 → 100644
View file @
b6892fd9
{
"name"
:
"InterTengxun"
,
"base"
:
"PersistedModel"
,
"idInjection"
:
false
,
"options"
:
{
"validateUpsert"
:
true
},
"mysql"
:
{
"schema"
:
"wordpress"
,
"table"
:
"inter_tengxun"
},
"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"
:
3
,
"precision"
:
null
,
"scale"
:
null
,
"mysql"
:
{
"columnName"
:
"name"
,
"dataType"
:
"varchar"
,
"dataLength"
:
3
,
"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 @
b6892fd9
...
@@ -59904,6 +59904,778 @@ paths:
...
@@ -59904,6 +59904,778 @@ paths:
type: number
type: number
format: double
format: double
deprecated: false
deprecated: false
/InterTengxuns:
post:
tags:
- InterTengxun
summary: Create a new instance of the model and persist it into the data source.
operationId: InterTengxun.create
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/InterTengxun'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/InterTengxun'
deprecated: false
patch:
tags:
- InterTengxun
summary: >-
Patch an existing model instance or insert a new one into the data
source.
operationId: InterTengxun.patchOrCreate
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/InterTengxun'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/InterTengxun'
deprecated: false
put:
tags:
- InterTengxun
summary: >-
Replace an existing model instance or insert a new one into the data
source.
operationId: InterTengxun.replaceOrCreate__put_InterTengxuns
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/InterTengxun'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/InterTengxun'
deprecated: false
get:
tags:
- InterTengxun
summary: Find all instances of the model matched by filter from the data source.
operationId: InterTengxun.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/InterTengxun'
deprecated: false
/InterTengxuns/replaceOrCreate:
post:
tags:
- InterTengxun
summary: >-
Replace an existing model instance or insert a new one into the data
source.
operationId: InterTengxun.replaceOrCreate__post_InterTengxuns_replaceOrCreate
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/InterTengxun'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/InterTengxun'
deprecated: false
/InterTengxuns/upsertWithWhere:
post:
tags:
- InterTengxun
summary: >-
Update an existing model instance or insert a new one into the data
source based on the where criteria.
operationId: InterTengxun.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/InterTengxun'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/InterTengxun'
deprecated: false
'/InterTengxuns/{id}/exists':
get:
tags:
- InterTengxun
summary: Check whether a model instance exists in the data source.
operationId: 'InterTengxun.exists__get_InterTengxuns_{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
'/InterTengxuns/{id}':
head:
tags:
- InterTengxun
summary: Check whether a model instance exists in the data source.
operationId: 'InterTengxun.exists__head_InterTengxuns_{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:
- InterTengxun
summary: 'Find a model instance by {{id}} from the data source.'
operationId: InterTengxun.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/InterTengxun'
deprecated: false
put:
tags:
- InterTengxun
summary: >-
Replace attributes for a model instance and persist it into the data
source.
operationId: 'InterTengxun.replaceById__put_InterTengxuns_{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/InterTengxun'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/InterTengxun'
deprecated: false
delete:
tags:
- InterTengxun
summary: 'Delete a model instance by {{id}} from the data source.'
operationId: InterTengxun.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:
- InterTengxun
summary: >-
Patch attributes for a model instance and persist it into the data
source.
operationId: InterTengxun.prototype.patchAttributes
parameters:
- name: id
in: path
description: InterTengxun 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/InterTengxun'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/InterTengxun'
deprecated: false
'/InterTengxuns/{id}/replace':
post:
tags:
- InterTengxun
summary: >-
Replace attributes for a model instance and persist it into the data
source.
operationId: 'InterTengxun.replaceById__post_InterTengxuns_{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/InterTengxun'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/InterTengxun'
deprecated: false
/InterTengxuns/findOne:
get:
tags:
- InterTengxun
summary: Find first instance of the model matched by filter from the data source.
operationId: InterTengxun.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/InterTengxun'
deprecated: false
/InterTengxuns/update:
post:
tags:
- InterTengxun
summary: 'Update instances of the model matched by {{where}} from the data source.'
operationId: InterTengxun.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/InterTengxun'
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
/InterTengxuns/count:
get:
tags:
- InterTengxun
summary: Count instances of the model matched by where from the data source.
operationId: InterTengxun.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
/InterMiaopais:
post:
tags:
- InterMiaopai
summary: Create a new instance of the model and persist it into the data source.
operationId: InterMiaopai.create
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/InterMiaopai'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/InterMiaopai'
deprecated: false
patch:
tags:
- InterMiaopai
summary: >-
Patch an existing model instance or insert a new one into the data
source.
operationId: InterMiaopai.patchOrCreate
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/InterMiaopai'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/InterMiaopai'
deprecated: false
put:
tags:
- InterMiaopai
summary: >-
Replace an existing model instance or insert a new one into the data
source.
operationId: InterMiaopai.replaceOrCreate__put_InterMiaopais
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/InterMiaopai'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/InterMiaopai'
deprecated: false
get:
tags:
- InterMiaopai
summary: Find all instances of the model matched by filter from the data source.
operationId: InterMiaopai.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/InterMiaopai'
deprecated: false
/InterMiaopais/replaceOrCreate:
post:
tags:
- InterMiaopai
summary: >-
Replace an existing model instance or insert a new one into the data
source.
operationId: InterMiaopai.replaceOrCreate__post_InterMiaopais_replaceOrCreate
parameters:
- name: data
in: body
description: Model instance data
required: false
schema:
description: Model instance data
$ref: '#/definitions/InterMiaopai'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/InterMiaopai'
deprecated: false
/InterMiaopais/upsertWithWhere:
post:
tags:
- InterMiaopai
summary: >-
Update an existing model instance or insert a new one into the data
source based on the where criteria.
operationId: InterMiaopai.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/InterMiaopai'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/InterMiaopai'
deprecated: false
'/InterMiaopais/{id}/exists':
get:
tags:
- InterMiaopai
summary: Check whether a model instance exists in the data source.
operationId: 'InterMiaopai.exists__get_InterMiaopais_{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
'/InterMiaopais/{id}':
head:
tags:
- InterMiaopai
summary: Check whether a model instance exists in the data source.
operationId: 'InterMiaopai.exists__head_InterMiaopais_{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:
- InterMiaopai
summary: 'Find a model instance by {{id}} from the data source.'
operationId: InterMiaopai.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/InterMiaopai'
deprecated: false
put:
tags:
- InterMiaopai
summary: >-
Replace attributes for a model instance and persist it into the data
source.
operationId: 'InterMiaopai.replaceById__put_InterMiaopais_{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/InterMiaopai'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/InterMiaopai'
deprecated: false
delete:
tags:
- InterMiaopai
summary: 'Delete a model instance by {{id}} from the data source.'
operationId: InterMiaopai.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:
- InterMiaopai
summary: >-
Patch attributes for a model instance and persist it into the data
source.
operationId: InterMiaopai.prototype.patchAttributes
parameters:
- name: id
in: path
description: InterMiaopai 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/InterMiaopai'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/InterMiaopai'
deprecated: false
'/InterMiaopais/{id}/replace':
post:
tags:
- InterMiaopai
summary: >-
Replace attributes for a model instance and persist it into the data
source.
operationId: 'InterMiaopai.replaceById__post_InterMiaopais_{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/InterMiaopai'
responses:
'200':
description: Request was successful
schema:
$ref: '#/definitions/InterMiaopai'
deprecated: false
/InterMiaopais/findOne:
get:
tags:
- InterMiaopai
summary: Find first instance of the model matched by filter from the data source.
operationId: InterMiaopai.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/InterMiaopai'
deprecated: false
/InterMiaopais/update:
post:
tags:
- InterMiaopai
summary: 'Update instances of the model matched by {{where}} from the data source.'
operationId: InterMiaopai.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/InterMiaopai'
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
/InterMiaopais/count:
get:
tags:
- InterMiaopai
summary: Count instances of the model matched by where from the data source.
operationId: InterMiaopai.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:
...
@@ -62227,6 +62999,34 @@ definitions:
...
@@ -62227,6 +62999,34 @@ definitions:
required:
required:
- name
- name
additionalProperties: false
additionalProperties: false
InterTengxun:
properties:
id:
maxLength: 36
type: string
name:
maxLength: 3
type: string
value:
type: number
format: double
required:
- name
additionalProperties: false
InterMiaopai:
properties:
id:
maxLength: 36
type: string
name:
maxLength: 3
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 @
b6892fd9
...
@@ -632,5 +632,13 @@
...
@@ -632,5 +632,13 @@
"InterDoctor"
:
{
"InterDoctor"
:
{
"dataSource"
:
"ruipeng"
,
"dataSource"
:
"ruipeng"
,
"public"
:
true
"public"
:
true
},
"InterTengxun"
:
{
"dataSource"
:
"ruipeng"
,
"public"
:
true
},
"InterMiaopai"
:
{
"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