Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
lingxi-lxy-yanshou
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
后端-黄柯铭
lingxi-lxy-yanshou
Commits
981dfaa6
Commit
981dfaa6
authored
Jun 17, 2020
by
wangrican
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:修改文件服务名字
parent
9fec60aa
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
26 changed files
with
24 additions
and
30 deletions
+24
-30
workspace.xml
.idea/workspace.xml
+0
-0
.gitignore
file-service/.gitignore
+0
-0
build.gradle
file-service/build.gradle
+0
-0
gradle-wrapper.jar
file-service/gradle/wrapper/gradle-wrapper.jar
+0
-0
gradle-wrapper.properties
file-service/gradle/wrapper/gradle-wrapper.properties
+0
-0
gradlew
file-service/gradlew
+0
-0
gradlew.bat
file-service/gradlew.bat
+0
-0
settings.gradle
file-service/settings.gradle
+2
-1
FileServiceApplication.java
...service/src/main/java/com/ssy/FileServiceApplication.java
+2
-2
ConstantConfig.java
...main/java/com/ssy/file/service/config/ConstantConfig.java
+1
-1
FdfsConfiguration.java
...n/java/com/ssy/file/service/config/FdfsConfiguration.java
+1
-1
UploadController.java
...ava/com/ssy/file/service/controller/UploadController.java
+2
-2
FileUploadService.java
.../java/com/ssy/file/service/service/FileUploadService.java
+1
-1
FileUploadServiceImpl.java
.../ssy/file/service/service/impl/FileUploadServiceImpl.java
+4
-4
AliyunOSSUtil.java
...c/main/java/com/ssy/file/service/utils/AliyunOSSUtil.java
+2
-2
FastDFSClientUtil.java
...in/java/com/ssy/file/service/utils/FastDFSClientUtil.java
+1
-1
application-dev.yml
file-service/src/main/resources/application-dev.yml
+0
-0
application-test.yml
file-service/src/main/resources/application-test.yml
+0
-0
application.yml
file-service/src/main/resources/application.yml
+1
-1
logback.xml
file-service/src/main/resources/logback.xml
+0
-0
FileSreviceApplicationTests.java
...ava/com/ssy/file/service/FileSreviceApplicationTests.java
+2
-2
GatewayServiceApplication.java
...ava/com/ssy/lingxi/gateway/GatewayServiceApplication.java
+1
-0
TokenAndAuthServiceImpl.java
...y/lingxi/gateway/serviceimpl/TokenAndAuthServiceImpl.java
+1
-9
settings.gradle
settings.gradle
+1
-1
LanguageController.java
.../com/ssy/lingxi/system/controller/LanguageController.java
+1
-1
ShopConfigController.java
...om/ssy/lingxi/system/controller/ShopConfigController.java
+1
-1
No files found.
.idea/workspace.xml
View file @
981dfaa6
This diff is collapsed.
Click to expand it.
file-s
re
vice/.gitignore
→
file-s
er
vice/.gitignore
View file @
981dfaa6
File moved
file-s
re
vice/build.gradle
→
file-s
er
vice/build.gradle
View file @
981dfaa6
File moved
file-s
re
vice/gradle/wrapper/gradle-wrapper.jar
→
file-s
er
vice/gradle/wrapper/gradle-wrapper.jar
View file @
981dfaa6
File moved
file-s
re
vice/gradle/wrapper/gradle-wrapper.properties
→
file-s
er
vice/gradle/wrapper/gradle-wrapper.properties
View file @
981dfaa6
File moved
file-s
re
vice/gradlew
→
file-s
er
vice/gradlew
View file @
981dfaa6
File moved
file-s
re
vice/gradlew.bat
→
file-s
er
vice/gradlew.bat
View file @
981dfaa6
File moved
file-s
re
vice/settings.gradle
→
file-s
er
vice/settings.gradle
View file @
981dfaa6
rootProject
.
name
=
'file-s
re
vice'
rootProject
.
name
=
'file-s
er
vice'
include
'common'
project
(
':common'
).
projectDir
=
"../common"
as
File
\ No newline at end of file
file-s
revice/src/main/java/com/ssy/FileSre
viceApplication.java
→
file-s
ervice/src/main/java/com/ssy/FileSer
viceApplication.java
View file @
981dfaa6
...
...
@@ -6,10 +6,10 @@ import springfox.documentation.swagger2.annotations.EnableSwagger2;
@EnableSwagger2
@SpringBootApplication
public
class
FileS
re
viceApplication
{
public
class
FileS
er
viceApplication
{
public
static
void
main
(
String
[]
args
)
{
SpringApplication
.
run
(
FileS
re
viceApplication
.
class
,
args
);
SpringApplication
.
run
(
FileS
er
viceApplication
.
class
,
args
);
}
}
file-s
revice/src/main/java/com/ssy/file/sre
vice/config/ConstantConfig.java
→
file-s
ervice/src/main/java/com/ssy/file/ser
vice/config/ConstantConfig.java
View file @
981dfaa6
package
com
.
ssy
.
file
.
s
re
vice
.
config
;
package
com
.
ssy
.
file
.
s
er
vice
.
config
;
import
com.aliyun.oss.OSS
;
import
com.aliyun.oss.OSSClientBuilder
;
...
...
file-s
revice/src/main/java/com/ssy/file/sre
vice/config/FdfsConfiguration.java
→
file-s
ervice/src/main/java/com/ssy/file/ser
vice/config/FdfsConfiguration.java
View file @
981dfaa6
package
com
.
ssy
.
file
.
s
re
vice
.
config
;
package
com
.
ssy
.
file
.
s
er
vice
.
config
;
import
com.github.tobato.fastdfs.FdfsClientConfig
;
import
org.springframework.context.annotation.Configuration
;
import
org.springframework.context.annotation.EnableMBeanExport
;
...
...
file-s
revice/src/main/java/com/ssy/file/sre
vice/controller/UploadController.java
→
file-s
ervice/src/main/java/com/ssy/file/ser
vice/controller/UploadController.java
View file @
981dfaa6
package
com
.
ssy
.
file
.
s
re
vice
.
controller
;
package
com
.
ssy
.
file
.
s
er
vice
.
controller
;
import
com.ssy.common.response.Wrapper
;
import
com.ssy.file.s
re
vice.service.FileUploadService
;
import
com.ssy.file.s
er
vice.service.FileUploadService
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
org.springframework.beans.factory.annotation.Autowired
;
...
...
file-s
revice/src/main/java/com/ssy/file/sre
vice/service/FileUploadService.java
→
file-s
ervice/src/main/java/com/ssy/file/ser
vice/service/FileUploadService.java
View file @
981dfaa6
package
com
.
ssy
.
file
.
s
re
vice
.
service
;
package
com
.
ssy
.
file
.
s
er
vice
.
service
;
import
com.ssy.common.response.Wrapper
;
import
org.springframework.web.multipart.MultipartFile
;
...
...
file-s
revice/src/main/java/com/ssy/file/sre
vice/service/impl/FileUploadServiceImpl.java
→
file-s
ervice/src/main/java/com/ssy/file/ser
vice/service/impl/FileUploadServiceImpl.java
View file @
981dfaa6
package
com
.
ssy
.
file
.
s
re
vice
.
service
.
impl
;
package
com
.
ssy
.
file
.
s
er
vice
.
service
.
impl
;
import
com.ssy.common.constant.CommonConstant
;
import
com.ssy.common.response.Wrapper
;
import
com.ssy.file.s
re
vice.service.FileUploadService
;
import
com.ssy.file.s
re
vice.utils.AliyunOSSUtil
;
import
com.ssy.file.s
re
vice.utils.FastDFSClientUtil
;
import
com.ssy.file.s
er
vice.service.FileUploadService
;
import
com.ssy.file.s
er
vice.utils.AliyunOSSUtil
;
import
com.ssy.file.s
er
vice.utils.FastDFSClientUtil
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.beans.factory.annotation.Autowired
;
...
...
file-s
revice/src/main/java/com/ssy/file/sre
vice/utils/AliyunOSSUtil.java
→
file-s
ervice/src/main/java/com/ssy/file/ser
vice/utils/AliyunOSSUtil.java
View file @
981dfaa6
package
com
.
ssy
.
file
.
s
re
vice
.
utils
;
package
com
.
ssy
.
file
.
s
er
vice
.
utils
;
import
com.aliyun.oss.OSS
;
...
...
@@ -6,7 +6,7 @@ import com.aliyun.oss.model.ListObjectsRequest;
import
com.aliyun.oss.model.OSSObjectSummary
;
import
com.aliyun.oss.model.ObjectListing
;
import
com.aliyun.oss.model.PutObjectResult
;
import
com.ssy.file.s
re
vice.config.ConstantConfig
;
import
com.ssy.file.s
er
vice.config.ConstantConfig
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.beans.factory.annotation.Autowired
;
...
...
file-s
revice/src/main/java/com/ssy/file/sre
vice/utils/FastDFSClientUtil.java
→
file-s
ervice/src/main/java/com/ssy/file/ser
vice/utils/FastDFSClientUtil.java
View file @
981dfaa6
package
com
.
ssy
.
file
.
s
re
vice
.
utils
;
package
com
.
ssy
.
file
.
s
er
vice
.
utils
;
import
com.github.tobato.fastdfs.domain.fdfs.StorePath
;
...
...
file-s
re
vice/src/main/resources/application-dev.yml
→
file-s
er
vice/src/main/resources/application-dev.yml
View file @
981dfaa6
File moved
file-s
re
vice/src/main/resources/application-test.yml
→
file-s
er
vice/src/main/resources/application-test.yml
View file @
981dfaa6
File moved
file-s
re
vice/src/main/resources/application.yml
→
file-s
er
vice/src/main/resources/application.yml
View file @
981dfaa6
...
...
@@ -2,7 +2,7 @@ spring:
profiles
:
active
:
dev
application
:
name
:
file-s
re
vice
name
:
file-s
er
vice
main
:
allow-bean-definition-overriding
:
true
server
:
...
...
file-s
re
vice/src/main/resources/logback.xml
→
file-s
er
vice/src/main/resources/logback.xml
View file @
981dfaa6
File moved
file-s
revice/src/test/java/com/ssy/file/sre
vice/FileSreviceApplicationTests.java
→
file-s
ervice/src/test/java/com/ssy/file/ser
vice/FileSreviceApplicationTests.java
View file @
981dfaa6
package
com
.
ssy
.
file
.
s
re
vice
;
package
com
.
ssy
.
file
.
s
er
vice
;
import
org.junit.jupiter.api.Test
;
import
org.springframework.boot.test.context.SpringBootTest
;
@SpringBootTest
class
FileS
re
viceApplicationTests
{
class
FileS
er
viceApplicationTests
{
@Test
void
contextLoads
()
{
...
...
gateway-service/src/main/java/com/ssy/lingxi/gateway/GatewayServiceApplication.java
View file @
981dfaa6
...
...
@@ -34,6 +34,7 @@ public class GatewayServiceApplication {
public
RouteLocator
customRouteLocator
(
RouteLocatorBuilder
builder
)
{
return
builder
.
routes
()
.
route
(
"system-service-route"
,
r
->
r
.
path
(
"/system/**"
).
filters
(
f
->
f
.
stripPrefix
(
1
)).
uri
(
"lb://system-service"
))
.
route
(
"file-service-route"
,
r
->
r
.
path
(
"/file/**"
).
filters
(
f
->
f
.
stripPrefix
(
1
)).
uri
(
"lb://file-service"
))
.
route
(
"platfrom-member-service-route"
,
r
->
r
.
path
(
"/member/platform/**"
).
filters
(
f
->
f
.
stripPrefix
(
2
)).
uri
(
"lb://platform-member-service"
))
.
route
(
"merchant-member-service-route"
,
r
->
r
.
path
(
"/member/merchant/**"
).
filters
(
f
->
f
.
stripPrefix
(
2
)).
uri
(
"lb://merchant-member-service"
))
.
route
(
"workflow-service-route"
,
r
->
r
.
path
(
"/workflow/**"
).
filters
(
f
->
f
.
stripPrefix
(
1
)).
uri
(
"lb://workflow-service"
))
...
...
gateway-service/src/main/java/com/ssy/lingxi/gateway/serviceimpl/TokenAndAuthServiceImpl.java
View file @
981dfaa6
package
com
.
ssy
.
lingxi
.
gateway
.
serviceimpl
;
import
com.ssy.common.model.dto.MenuLoginResponse
;
import
com.ssy.common.model.dto.MiddlegroundUserLoginResponse
;
import
com.ssy.common.model.dto.RoleLoginResponse
;
import
com.ssy.common.response.ResponseCode
;
import
com.ssy.lingxi.gateway.handler.exception.LoginException
;
import
com.ssy.lingxi.gateway.service.ITokenAndAuthService
;
import
org.springframework.cloud.gateway.filter.GatewayFilterChain
;
import
org.springframework.cloud.gateway.support.ServerWebExchangeUtils
;
import
org.springframework.data.redis.core.RedisTemplate
;
import
org.springframework.http.HttpHeaders
;
import
org.springframework.http.HttpStatus
;
import
org.springframework.http.server.reactive.ServerHttpResponse
;
import
org.springframework.stereotype.Service
;
import
org.springframework.web.server.ServerWebExchange
;
import
javax.annotation.Resource
;
import
java.net.URI
;
import
java.util.*
;
import
java.util.List
;
import
java.util.stream.Collectors
;
import
java.util.stream.Stream
;
...
...
settings.gradle
View file @
981dfaa6
...
...
@@ -7,7 +7,7 @@ include 'multi-member-service:platform-member-service'
include
'system-service'
include
'workflow-service'
include
'multi-member-service:merchant-member-service:merchant-member-service-api'
include
'file-s
re
vice'
include
'file-s
er
vice'
//findProject(':multi-member-service:merchant-member-service:merchant-member-service-api')?.name = 'merchant-member-service-api'
...
...
system-service/src/main/java/com/ssy/lingxi/system/controller/LanguageController.java
View file @
981dfaa6
...
...
@@ -60,7 +60,7 @@ public class LanguageController {
@ApiOperation
(
value
=
"查询语言设置全部"
)
@
Pos
tMapping
(
"/language/all"
)
@
Ge
tMapping
(
"/language/all"
)
public
Wrapper
<
List
<
Language
>>
languageAll
()
{
return
languageService
.
languageAll
();
}
...
...
system-service/src/main/java/com/ssy/lingxi/system/controller/ShopConfigController.java
View file @
981dfaa6
...
...
@@ -71,7 +71,7 @@ public class ShopConfigController {
@ApiOperation
(
value
=
"查询所有商城信息"
)
@
Pos
tMapping
(
"/shop/all"
)
@
Ge
tMapping
(
"/shop/all"
)
public
Wrapper
<
List
<
ShopConfig
>>
shopAll
()
{
return
shopConfigService
.
shopAll
();
}
...
...
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