Commit 981dfaa6 authored by wangrican's avatar wangrican

feat:修改文件服务名字

parent 9fec60aa
This diff is collapsed.
rootProject.name = 'file-srevice'
rootProject.name = 'file-service'
include 'common'
project(':common').projectDir = "../common" as File
\ No newline at end of file
......@@ -6,10 +6,10 @@ import springfox.documentation.swagger2.annotations.EnableSwagger2;
@EnableSwagger2
@SpringBootApplication
public class FileSreviceApplication {
public class FileServiceApplication {
public static void main(String[] args) {
SpringApplication.run(FileSreviceApplication.class, args);
SpringApplication.run(FileServiceApplication.class, args);
}
}
package com.ssy.file.srevice.config;
package com.ssy.file.service.config;
import com.aliyun.oss.OSS;
import com.aliyun.oss.OSSClientBuilder;
......
package com.ssy.file.srevice.config;
package com.ssy.file.service.config;
import com.github.tobato.fastdfs.FdfsClientConfig;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.EnableMBeanExport;
......
package com.ssy.file.srevice.controller;
package com.ssy.file.service.controller;
import com.ssy.common.response.Wrapper;
import com.ssy.file.srevice.service.FileUploadService;
import com.ssy.file.service.service.FileUploadService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
......
package com.ssy.file.srevice.service;
package com.ssy.file.service.service;
import com.ssy.common.response.Wrapper;
import org.springframework.web.multipart.MultipartFile;
......
package com.ssy.file.srevice.service.impl;
package com.ssy.file.service.service.impl;
import com.ssy.common.constant.CommonConstant;
import com.ssy.common.response.Wrapper;
import com.ssy.file.srevice.service.FileUploadService;
import com.ssy.file.srevice.utils.AliyunOSSUtil;
import com.ssy.file.srevice.utils.FastDFSClientUtil;
import com.ssy.file.service.service.FileUploadService;
import com.ssy.file.service.utils.AliyunOSSUtil;
import com.ssy.file.service.utils.FastDFSClientUtil;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
......
package com.ssy.file.srevice.utils;
package com.ssy.file.service.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.srevice.config.ConstantConfig;
import com.ssy.file.service.config.ConstantConfig;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
......
package com.ssy.file.srevice.utils;
package com.ssy.file.service.utils;
import com.github.tobato.fastdfs.domain.fdfs.StorePath;
......
......@@ -2,7 +2,7 @@ spring:
profiles:
active: dev
application:
name: file-srevice
name: file-service
main:
allow-bean-definition-overriding: true
server:
......
package com.ssy.file.srevice;
package com.ssy.file.service;
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;
@SpringBootTest
class FileSreviceApplicationTests {
class FileServiceApplicationTests {
@Test
void contextLoads() {
......
......@@ -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"))
......
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;
......
......@@ -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-srevice'
include 'file-service'
//findProject(':multi-member-service:merchant-member-service:merchant-member-service-api')?.name = 'merchant-member-service-api'
......
......@@ -60,7 +60,7 @@ public class LanguageController {
@ApiOperation(value = "查询语言设置全部")
@PostMapping("/language/all")
@GetMapping("/language/all")
public Wrapper<List<Language>> languageAll() {
return languageService.languageAll();
}
......
......@@ -71,7 +71,7 @@ public class ShopConfigController {
@ApiOperation(value = "查询所有商城信息")
@PostMapping("/shop/all")
@GetMapping("/shop/all")
public Wrapper<List<ShopConfig>> shopAll() {
return shopConfigService.shopAll();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment