Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
CivWeb
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
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
ReactWeb5
CivWeb
Commits
e66d65eb
Commit
e66d65eb
authored
Feb 24, 2022
by
崔佳豪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 添加云平台统计接口
parent
b98a991d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
48 additions
and
1 deletion
+48
-1
index.js
src/api/index.js
+3
-1
cloud.js
src/api/service/cloud.js
+45
-0
No files found.
src/api/index.js
View file @
e66d65eb
...
...
@@ -5,6 +5,7 @@ import { event } from 'microser-data';
import
{
actionCreators
}
from
'../containers/App/store'
;
import
AppService
from
'./service/base'
;
import
notificationService
from
'./service/notification'
;
import
CloudService
from
'./service/cloud'
;
const
{
warning
}
=
Modal
;
// eslint-disable-next-line no-return-await
instanceRequest
.
reportCodeError
=
true
;
...
...
@@ -74,4 +75,5 @@ instanceRequest.setErrorHandler(error => {
});
const
appService
=
service
(
AppService
);
const
noticeService
=
service
(
notificationService
);
export
{
appService
,
noticeService
};
const
cloudService
=
service
(
CloudService
);
export
{
appService
,
noticeService
,
cloudService
};
src/api/service/cloud.js
0 → 100644
View file @
e66d65eb
import
{
jsonp
,
request
}
from
'@wisdom-utils/utils'
;
import
*
as
constants
from
'../../constants'
;
const
portalURL
=
'CityInterface/rest/Services/Portal.svc'
;
export
const
API
=
{
GET_DATA_DICTIONARY_LIST
:
'/CityInterface/Services/CityServer_WorkFlow/REST/WorkFlowREST.svc/GetDataDictionaryList'
,
// 云平台使用分析
LOGIN_STATISTIC
:
`
${
portalURL
}
/OMManage/LoginStatisticServer`
,
FUNCTIONS_STATISTIC
:
`
${
portalURL
}
/OMManage/FunctionStatisticServer`
,
ENVIROMENT_STATISTIC
:
`
${
portalURL
}
/OMManage/EnviromentStatisticServer`
,
USER_LOGIN_STATISTIC
:
`
${
portalURL
}
/OMManage/UserLoginStatisticServer`
,
};
const
services
=
{
getDataDictionaryList
:
{
url
:
API
.
GET_DATA_DICTIONARY_LIST
,
method
:
constants
.
REQUEST_METHOD_GET
,
type
:
constants
.
REQUEST_HTTP
,
},
getLoginStatistic
:
{
url
:
API
.
LOGIN_STATISTIC
,
method
:
constants
.
REQUEST_METHOD_GET
,
type
:
constants
.
REQUEST_HTTP
,
},
getFunctionsStatistic
:
{
url
:
API
.
FUNCTIONS_STATISTIC
,
method
:
constants
.
REQUEST_METHOD_GET
,
type
:
constants
.
REQUEST_HTTP
,
},
getEnviromentStatistic
:
{
url
:
API
.
ENVIROMENT_STATISTIC
,
method
:
constants
.
REQUEST_METHOD_GET
,
type
:
constants
.
REQUEST_HTTP
,
},
getUserLoginStatistic
:
{
url
:
API
.
USER_LOGIN_STATISTIC
,
method
:
constants
.
REQUEST_METHOD_GET
,
type
:
constants
.
REQUEST_HTTP
,
},
};
export
default
services
;
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