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
4b1a9ac1
Commit
4b1a9ac1
authored
Nov 30, 2018
by
Quxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x
parent
b0b08e89
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
5 additions
and
95 deletions
+5
-95
MemberApplyController.java
.../com/egolm/film/api/web/member/MemberApplyController.java
+2
-10
MemberInfoController.java
...a/com/egolm/film/api/web/member/MemberInfoController.java
+1
-5
application-dev.properties
src/main/resources/application-dev.properties
+1
-2
application-pro.properties
src/main/resources/application-pro.properties
+1
-2
application-tvdev.properties
src/main/resources/application-tvdev.properties
+0
-38
application-tvpro.properties
src/main/resources/application-tvpro.properties
+0
-38
No files found.
src/main/java/com/egolm/film/api/web/member/MemberApplyController.java
View file @
4b1a9ac1
...
@@ -4,7 +4,6 @@ import java.util.List;
...
@@ -4,7 +4,6 @@ import java.util.List;
import
java.util.Map
;
import
java.util.Map
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.stereotype.Controller
;
import
org.springframework.stereotype.Controller
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
...
@@ -35,24 +34,17 @@ public class MemberApplyController {
...
@@ -35,24 +34,17 @@ public class MemberApplyController {
@Autowired
@Autowired
private
MemberTokenService
tokenService
;
private
MemberTokenService
tokenService
;
@Value
(
"${opt.member_id}"
)
private
Integer
opt_member_id
;
@ResponseBody
@ResponseBody
@PostMapping
(
"get_list"
)
@PostMapping
(
"get_list"
)
@ApiOperation
(
"申报项目查询"
)
@ApiOperation
(
"申报项目查询"
)
@ApiImplicitParams
({
@ApiImplicitParams
({
@ApiImplicitParam
(
paramType
=
"header"
,
dataType
=
"string"
,
name
=
"i18n_language"
)
@ApiImplicitParam
(
paramType
=
"header"
,
dataType
=
"string"
,
name
=
"i18n_language"
)
})
})
public
Object
list
(
String
keyword
)
{
public
Object
list
()
{
LoginToken
loginToken
=
tokenService
.
getToken
();
LoginToken
loginToken
=
tokenService
.
getToken
();
Integer
member_id
=
(
Integer
)
loginToken
.
getId
();
Integer
member_id
=
(
Integer
)
loginToken
.
getId
();
List
<
Map
<
String
,
Object
>>
list
=
null
;
List
<
Map
<
String
,
Object
>>
list
=
null
;
if
(
member_id
.
intValue
()
==
opt_member_id
.
intValue
())
{
list
=
memberFilmService
.
queryListAll
(
keyword
);
}
else
{
list
=
memberService
.
queryListByMemberID
(
member_id
);
list
=
memberService
.
queryListByMemberID
(
member_id
);
}
return
Rjx
.
jsonOk
().
setData
(
list
);
return
Rjx
.
jsonOk
().
setData
(
list
);
}
}
...
...
src/main/java/com/egolm/film/api/web/member/MemberInfoController.java
View file @
4b1a9ac1
package
com
.
egolm
.
film
.
api
.
web
.
member
;
package
com
.
egolm
.
film
.
api
.
web
.
member
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.stereotype.Controller
;
import
org.springframework.stereotype.Controller
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
...
@@ -34,9 +33,6 @@ public class MemberInfoController {
...
@@ -34,9 +33,6 @@ public class MemberInfoController {
@Autowired
@Autowired
private
Messages
messages
;
private
Messages
messages
;
@Value
(
"${opt.member_id}"
)
private
Integer
opt_member_id
;
@ResponseBody
@ResponseBody
@PostMapping
(
"query"
)
@PostMapping
(
"query"
)
@ApiOperation
(
"查询会员基本信息"
)
@ApiOperation
(
"查询会员基本信息"
)
...
@@ -47,7 +43,7 @@ public class MemberInfoController {
...
@@ -47,7 +43,7 @@ public class MemberInfoController {
LoginToken
loginToken
=
tokenService
.
getToken
();
LoginToken
loginToken
=
tokenService
.
getToken
();
Integer
id
=
(
Integer
)
loginToken
.
getId
();
Integer
id
=
(
Integer
)
loginToken
.
getId
();
Fc_member
member
=
memberService
.
getMemberById
(
id
);
Fc_member
member
=
memberService
.
getMemberById
(
id
);
return
Rjx
.
jsonOk
().
setData
(
member
)
.
set
(
"show"
,
id
.
compareTo
(
opt_member_id
)
==
0
)
;
return
Rjx
.
jsonOk
().
setData
(
member
);
}
}
@ResponseBody
@ResponseBody
...
...
src/main/resources/application-dev.properties
View file @
4b1a9ac1
...
@@ -35,4 +35,3 @@ aliyun.sts.accessKeyId=LTAIOtHCCpDLXYp8
...
@@ -35,4 +35,3 @@ aliyun.sts.accessKeyId=LTAIOtHCCpDLXYp8
aliyun.sts.accessKeySecret
=
9XTHW7P9TTRvCsBHBSclOue2tdWOoa
aliyun.sts.accessKeySecret
=
9XTHW7P9TTRvCsBHBSclOue2tdWOoa
opt.project.type
=
1
opt.project.type
=
1
opt.member_id
=
3785
\ No newline at end of file
src/main/resources/application-pro.properties
View file @
4b1a9ac1
...
@@ -35,4 +35,3 @@ aliyun.sts.accessKeyId=LTAIOtHCCpDLXYp8
...
@@ -35,4 +35,3 @@ aliyun.sts.accessKeyId=LTAIOtHCCpDLXYp8
aliyun.sts.accessKeySecret
=
9XTHW7P9TTRvCsBHBSclOue2tdWOoa
aliyun.sts.accessKeySecret
=
9XTHW7P9TTRvCsBHBSclOue2tdWOoa
opt.project.type
=
1
opt.project.type
=
1
opt.member_id
=
3785
\ No newline at end of file
src/main/resources/application-tvdev.properties
deleted
100644 → 0
View file @
b0b08e89
server.tomcat.max-threads
=
1000
server.tomcat.min-spare-threads
=
30
server.port
=
20003
server.context-path
=
/tv
server.tomcat.uri-encoding
=
utf-8
server.session.timeout
=
90000
spring.http.multipart.maxFileSize
=
5MB
spring.http.multipart.maxRequestSize
=
5MB
spring.http.encoding.force
=
true
spring.http.encoding.enabled
=
true
spring.http.encoding.charset
=
utf-8
com.egolm.film.email.smtp.host
=
smtp.siff.com
com.egolm.film.email.smtp.port
=
25
com.egolm.film.email.smtp.is_auth
=
true
com.egolm.film.email.smtp.from
=
filmpassword@siff.com
com.egolm.film.email.smtp.username
=
filmpassword@siff.com
com.egolm.film.email.smtp.password
=
siffstvf2018
spring.datasource.url
=
jdbc:mysql://10.10.0.111:3306/tv?useSSL=false&useUnicode=true&characterEncoding=utf8
spring.datasource.username
=
root
spring.datasource.password
=
egolm#2018
spring.datasource.driver-class-name
=
com.mysql.jdbc.Driver
spring.datasource.test-while-idle
=
true
spring.datasource.test-on-borrow
=
false
spring.datasource.test-on-return
=
false
spring.datasource.validation-query
=
select 1 from dual
spring.datasource.time-between-eviction-runs-millis
=
300000
spring.datasource.min-evictable-idle-time-millis
=
1800000
spring.datasource.max-wait
=
10000
spring.datasource.initial-size
=
10
spring.datasource.max-active
=
100
spring.datasource.min-idle
=
10
aliyun.sts.accessKeyId
=
LTAIOtHCCpDLXYp8
aliyun.sts.accessKeySecret
=
9XTHW7P9TTRvCsBHBSclOue2tdWOoa
opt.project.type
=
2
opt.member_id
=
3785
\ No newline at end of file
src/main/resources/application-tvpro.properties
deleted
100644 → 0
View file @
b0b08e89
server.tomcat.max-threads
=
1000
server.tomcat.min-spare-threads
=
30
server.port
=
20003
server.context-path
=
/tv
server.tomcat.uri-encoding
=
utf-8
server.session.timeout
=
90000
spring.http.multipart.maxFileSize
=
5MB
spring.http.multipart.maxRequestSize
=
5MB
spring.http.encoding.force
=
true
spring.http.encoding.enabled
=
true
spring.http.encoding.charset
=
utf-8
com.egolm.film.email.smtp.host
=
smtp.siff.com
com.egolm.film.email.smtp.port
=
25
com.egolm.film.email.smtp.is_auth
=
true
com.egolm.film.email.smtp.from
=
filmpassword@siff.com
com.egolm.film.email.smtp.username
=
filmpassword@siff.com
com.egolm.film.email.smtp.password
=
siffstvf2018
spring.datasource.url
=
jdbc:mysql://10.10.0.111:3306/tv?useSSL=false&useUnicode=true&characterEncoding=utf8
spring.datasource.username
=
root
spring.datasource.password
=
egolm#2018
spring.datasource.driver-class-name
=
com.mysql.jdbc.Driver
spring.datasource.test-while-idle
=
true
spring.datasource.test-on-borrow
=
false
spring.datasource.test-on-return
=
false
spring.datasource.validation-query
=
select 1 from dual
spring.datasource.time-between-eviction-runs-millis
=
300000
spring.datasource.min-evictable-idle-time-millis
=
1800000
spring.datasource.max-wait
=
10000
spring.datasource.initial-size
=
10
spring.datasource.max-active
=
100
spring.datasource.min-idle
=
10
aliyun.sts.accessKeyId
=
LTAIOtHCCpDLXYp8
aliyun.sts.accessKeySecret
=
9XTHW7P9TTRvCsBHBSclOue2tdWOoa
opt.project.type
=
2
opt.member_id
=
3785
\ No newline at end of file
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