Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
member-api
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
曲欣亮
member-api
Commits
d0ce8a1f
Commit
d0ce8a1f
authored
Feb 19, 2019
by
Quxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x
parent
4914e2e0
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
23 additions
and
1 deletion
+23
-1
LogService.java
src/main/java/com/egolm/film/api/service/LogService.java
+2
-0
LogServiceImpl.java
.../java/com/egolm/film/api/service/impl/LogServiceImpl.java
+5
-0
AdminLogController.java
...java/com/egolm/film/api/web/admin/AdminLogController.java
+16
-0
AliyunSign.java
src/main/java/com/egolm/film/util/AliyunSign.java
+0
-1
No files found.
src/main/java/com/egolm/film/api/service/LogService.java
View file @
d0ce8a1f
...
...
@@ -11,4 +11,6 @@ public interface LogService {
void
saveErrorLog
(
Throwable
ex
);
List
<
Map
<
String
,
Object
>>
queryErrorList
(
Page
page
);
}
src/main/java/com/egolm/film/api/service/impl/LogServiceImpl.java
View file @
d0ce8a1f
...
...
@@ -62,4 +62,9 @@ public class LogServiceImpl implements LogService {
return
stack
;
}
@Override
public
List
<
Map
<
String
,
Object
>>
queryErrorList
(
Page
page
)
{
return
jdbcTemplate
.
limit
(
"select * from fc_logs_error"
,
page
);
}
}
src/main/java/com/egolm/film/api/web/admin/AdminLogController.java
View file @
d0ce8a1f
...
...
@@ -43,4 +43,20 @@ public class AdminLogController {
return
Rjx
.
jsonOk
().
setData
(
list
).
setPage
(
page
);
}
@ResponseBody
@PostMapping
(
"getErrorList"
)
@ApiOperation
(
"查询日志"
)
@ApiImplicitParams
({
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"long"
,
required
=
false
,
name
=
"index"
,
value
=
"分页编号"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"long"
,
required
=
false
,
name
=
"limit"
,
value
=
"分页大小"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"string"
,
required
=
false
,
name
=
"limitKey"
,
value
=
"排序"
),
})
public
Object
getErrorList
(
String
[]
limitKey
,
Long
index
,
Long
limit
)
{
index
=
index
==
null
?
1
:
index
;
limit
=
limit
==
null
?
20
:
limit
;
Page
page
=
new
Page
(
index
,
limit
,
limitKey
==
null
||
limitKey
.
length
==
0
?
new
String
[]
{
"id desc"
}
:
limitKey
);
List
<
Map
<
String
,
Object
>>
list
=
service
.
queryErrorList
(
page
);
return
Rjx
.
jsonOk
().
setData
(
list
).
setPage
(
page
);
}
}
src/main/java/com/egolm/film/util/AliyunSign.java
View file @
d0ce8a1f
...
...
@@ -30,7 +30,6 @@ import sun.misc.BASE64Encoder;
* 视频点播OpenAPI调用示例
* 以GetVideoPlayAuth接口为例,其他接口请替换相应接口名称及私有参数
*/
@SuppressWarnings
(
"restriction"
)
public
class
AliyunSign
{
//账号AK信息请填写(必选)
private
static
String
access_key_id
=
"LTAIOtHCCpDLXYp8"
;
...
...
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