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
c5638f88
Commit
c5638f88
authored
5 years ago
by
余海军
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add
parent
0494fddf
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
889 additions
and
0 deletions
+889
-0
main-revenuemonth.js
common/models/main-revenuemonth.js
+5
-0
main-revenuemonth.json
common/models/main-revenuemonth.json
+63
-0
main-traderevenue.json
common/models/main-traderevenue.json
+15
-0
RuiPengLoopbackApi.yaml
definitions/RuiPengLoopbackApi.yaml
+798
-0
model-config.json
server/model-config.json
+8
-0
No files found.
common/models/main-revenuemonth.js
0 → 100644
View file @
c5638f88
'use strict'
;
module
.
exports
=
function
(
Mainrevenuemonth
)
{
};
This diff is collapsed.
Click to expand it.
common/models/main-revenuemonth.json
0 → 100644
View file @
c5638f88
{
"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"
:
{}
}
This diff is collapsed.
Click to expand it.
common/models/main-traderevenue.json
View file @
c5638f88
...
...
@@ -39,6 +39,21 @@
"dataScale"
:
null
,
"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"
:
[],
...
...
This diff is collapsed.
Click to expand it.
definitions/RuiPengLoopbackApi.yaml
View file @
c5638f88
...
...
@@ -25929,6 +25929,778 @@ paths:
type
:
number
format
:
double
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
:
DashboardHospitalAwenCount
:
properties
:
...
...
@@ -27054,6 +27826,32 @@ definitions:
type
:
number
format
:
double
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
swagger
:
'
2.0'
info
:
...
...
This diff is collapsed.
Click to expand it.
server/model-config.json
View file @
c5638f88
...
...
@@ -280,5 +280,13 @@
"BillCompanyrevenue"
:
{
"dataSource"
:
"ruipeng"
,
"public"
:
true
},
"MainRevenuemonth"
:
{
"dataSource"
:
"ruipeng"
,
"public"
:
true
},
"MainTraderevenue"
:
{
"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