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
c1acf8d0
Commit
c1acf8d0
authored
Nov 23, 2018
by
Quxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
xxx
parent
65280aef
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
23 additions
and
38 deletions
+23
-38
AdminTokenServiceImpl.java
...lm/film/api/admin/service/impl/AdminTokenServiceImpl.java
+3
-2
MemberTokenServiceImpl.java
.../film/api/member/service/impl/MemberTokenServiceImpl.java
+3
-2
UserTokenServiceImpl.java
...golm/film/api/user/service/impl/UserTokenServiceImpl.java
+3
-2
Fc_admin_group.java
src/main/java/com/egolm/film/bean/Fc_admin_group.java
+1
-31
Fc_logs.java
src/main/java/com/egolm/film/bean/Fc_logs.java
+13
-1
No files found.
src/main/java/com/egolm/film/api/admin/service/impl/AdminTokenServiceImpl.java
View file @
c1acf8d0
...
...
@@ -109,8 +109,9 @@ public class AdminTokenServiceImpl implements AdminTokenService {
String
prefix
=
path
.
split
(
"/"
)[
1
];
String
content
=
JSON
.
toJSONString
(
request
.
getParameterMap
());
String
ip
=
ServletUtil
.
remoteIp
(
request
);
String
sql
=
"insert into fc_logs (type, loginid, prefix, path, ip, content, create_time) values (?, ?, ?, ?, ?, ?, ?)"
;
Object
[]
objs
=
new
Object
[]{
LOG_TYPE
,
loginid
,
prefix
,
path
,
ip
,
content
,
now
};
String
user_agent
=
request
.
getHeader
(
"User-Agent"
);
String
sql
=
"insert into fc_logs (type, loginid, prefix, path, ip, content, user_agent, create_time) values (?, ?, ?, ?, ?, ?, ?, ?)"
;
Object
[]
objs
=
new
Object
[]{
LOG_TYPE
,
loginid
,
prefix
,
path
,
ip
,
content
,
user_agent
,
now
};
jdbcTemplate
.
executeUpdate
(
sql
,
objs
);
}
...
...
src/main/java/com/egolm/film/api/member/service/impl/MemberTokenServiceImpl.java
View file @
c1acf8d0
...
...
@@ -113,8 +113,9 @@ public class MemberTokenServiceImpl implements MemberTokenService {
String
prefix
=
path
.
split
(
"/"
)[
1
];
String
content
=
JSON
.
toJSONString
(
request
.
getParameterMap
());
String
ip
=
ServletUtil
.
remoteIp
(
request
);
String
sql
=
"insert into fc_logs (type, loginid, prefix, path, ip, content, create_time) values (?, ?, ?, ?, ?, ?, ?)"
;
Object
[]
objs
=
new
Object
[]{
LOG_TYPE
,
loginid
,
prefix
,
path
,
ip
,
content
,
now
};
String
user_agent
=
request
.
getHeader
(
"User-Agent"
);
String
sql
=
"insert into fc_logs (type, loginid, prefix, path, ip, content, user_agent, create_time) values (?, ?, ?, ?, ?, ?, ?, ?)"
;
Object
[]
objs
=
new
Object
[]{
LOG_TYPE
,
loginid
,
prefix
,
path
,
ip
,
content
,
user_agent
,
now
};
jdbcTemplate
.
executeUpdate
(
sql
,
objs
);
}
...
...
src/main/java/com/egolm/film/api/user/service/impl/UserTokenServiceImpl.java
View file @
c1acf8d0
...
...
@@ -104,8 +104,9 @@ public class UserTokenServiceImpl implements UserTokenService {
String
prefix
=
path
.
split
(
"/"
)[
1
];
String
content
=
JSON
.
toJSONString
(
request
.
getParameterMap
());
String
ip
=
ServletUtil
.
remoteIp
(
request
);
String
sql
=
"insert into fc_logs (type, loginid, prefix, path, ip, content, create_time) values (?, ?, ?, ?, ?, ?, ?)"
;
Object
[]
objs
=
new
Object
[]{
LOG_TYPE
,
loginid
,
prefix
,
path
,
ip
,
content
,
now
};
String
user_agent
=
request
.
getHeader
(
"User-Agent"
);
String
sql
=
"insert into fc_logs (type, loginid, prefix, path, ip, content, user_agent, create_time) values (?, ?, ?, ?, ?, ?, ?, ?)"
;
Object
[]
objs
=
new
Object
[]{
LOG_TYPE
,
loginid
,
prefix
,
path
,
ip
,
content
,
user_agent
,
now
};
jdbcTemplate
.
executeUpdate
(
sql
,
objs
);
}
}
src/main/java/com/egolm/film/bean/Fc_admin_group.java
View file @
c1acf8d0
...
...
@@ -45,21 +45,11 @@ public class Fc_admin_group implements java.io.Serializable {
*/
private
Integer
state
;
/**
* 权限
*/
private
String
power
;
/**
* 成员数量
*/
private
Long
user_num
;
/**
* 群组权限
*/
private
String
group_power
;
/**
* 无参数构造方法
...
...
@@ -76,20 +66,16 @@ public class Fc_admin_group implements java.io.Serializable {
* @param create_ip 创建者ip
* @param adminid 创建者uid
* @param state 小组状态
* @param power 权限
* @param user_num 成员数量
* @param group_power 群组权限
*/
public
Fc_admin_group
(
Integer
group_id
,
String
group_name
,
Long
create_time
,
String
create_ip
,
Integer
adminid
,
Integer
state
,
String
power
,
Long
user_num
,
String
group_power
)
{
public
Fc_admin_group
(
Integer
group_id
,
String
group_name
,
Long
create_time
,
String
create_ip
,
Integer
adminid
,
Integer
state
,
Long
user_num
)
{
this
.
group_id
=
group_id
;
this
.
group_name
=
group_name
;
this
.
create_time
=
create_time
;
this
.
create_ip
=
create_ip
;
this
.
adminid
=
adminid
;
this
.
state
=
state
;
this
.
power
=
power
;
this
.
user_num
=
user_num
;
this
.
group_power
=
group_power
;
}
public
void
setGroup_id
(
Integer
group_id
)
{
...
...
@@ -140,14 +126,6 @@ public class Fc_admin_group implements java.io.Serializable {
return
state
;
}
public
void
setPower
(
String
power
)
{
this
.
power
=
power
;
}
public
String
getPower
()
{
return
power
;
}
public
void
setUser_num
(
Long
user_num
)
{
this
.
user_num
=
user_num
;
}
...
...
@@ -156,13 +134,5 @@ public class Fc_admin_group implements java.io.Serializable {
return
user_num
;
}
public
void
setGroup_power
(
String
group_power
)
{
this
.
group_power
=
group_power
;
}
public
String
getGroup_power
()
{
return
group_power
;
}
}
src/main/java/com/egolm/film/bean/Fc_logs.java
View file @
c1acf8d0
...
...
@@ -31,6 +31,8 @@ public class Fc_logs implements java.io.Serializable {
private
String
content
;
private
String
user_agent
;
private
Date
create_time
;
...
...
@@ -50,9 +52,10 @@ public class Fc_logs implements java.io.Serializable {
* @param path
* @param ip
* @param content
* @param user_agent
* @param create_time
*/
public
Fc_logs
(
Long
id
,
String
type
,
String
loginid
,
String
prefix
,
String
path
,
String
ip
,
String
content
,
Date
create_time
)
{
public
Fc_logs
(
Long
id
,
String
type
,
String
loginid
,
String
prefix
,
String
path
,
String
ip
,
String
content
,
String
user_agent
,
Date
create_time
)
{
this
.
id
=
id
;
this
.
type
=
type
;
this
.
loginid
=
loginid
;
...
...
@@ -60,6 +63,7 @@ public class Fc_logs implements java.io.Serializable {
this
.
path
=
path
;
this
.
ip
=
ip
;
this
.
content
=
content
;
this
.
user_agent
=
user_agent
;
this
.
create_time
=
create_time
;
}
...
...
@@ -119,6 +123,14 @@ public class Fc_logs implements java.io.Serializable {
return
content
;
}
public
void
setUser_agent
(
String
user_agent
)
{
this
.
user_agent
=
user_agent
;
}
public
String
getUser_agent
()
{
return
user_agent
;
}
public
void
setCreate_time
(
Date
create_time
)
{
this
.
create_time
=
create_time
;
}
...
...
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