Merge pull request 'feat(修改): 修改接口相关内容,导出接口数据' (#4) from dev-v2 into master-v2

Reviewed-on: #4
This commit is contained in:
bunny 2024-03-31 00:29:37 +08:00
commit 89fed17157
4 changed files with 28 additions and 7 deletions

View File

@ -24,20 +24,41 @@ public class Knife4jConfig {
public GroupedOpenApi adminApi() {
log.info("admin请求接口");
return GroupedOpenApi.builder().group("admin请求接口").pathsToMatch("/admin/**").build();// 接口请求路径规则
return GroupedOpenApi.builder().group("admin请求接口").pathsToMatch("/admin/**").build();
}
@Bean
public GroupedOpenApi orderApi() {
log.info("订单管理接口-8510");
return GroupedOpenApi.builder().group("订单管理接口").pathsToMatch("/api/order/orderInfo/**").build();
}
@Bean
public GroupedOpenApi productApi() {
log.info("商品管理接口");
log.info("商品管理接口-8511");
return GroupedOpenApi.builder().group("商品管理接口").pathsToMatch("/api/product/**").build(); // 接口请求路径规则
return GroupedOpenApi.builder().group("商品管理接口").pathsToMatch("/api/product/**").build();
}
@Bean
public GroupedOpenApi userApi() {
log.info("用户接口");
log.info("用户接口-8512");
return GroupedOpenApi.builder().group("用户接口").pathsToMatch("/api/user/**").build();
}
@Bean
public GroupedOpenApi cartApi() {
log.info("购物车接口-8513");
return GroupedOpenApi.builder().group("购物车接口").pathsToMatch("/api/order/cart/**").build();
}
@Bean
public GroupedOpenApi payApi() {
log.info("支付接口-8514");
return GroupedOpenApi.builder().group("支付接口").pathsToMatch("/api/order/alipay/**").build();
}
}

View File

@ -8,7 +8,7 @@ import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
@SpringBootApplication
@EnableFeignClients(basePackages = {"com.atguigu.feign"})
@EnableFeignClients(basePackages = {"com.atguigu"})
@EnableUserTokenFeignInterceptor
@ComponentScan("com.atguigu")
@Slf4j

View File

@ -17,4 +17,4 @@ COPY target/*.jar /home/bunny/app.jar
ENTRYPOINT ["java","-jar","/home/bunny/app.jar"]
#暴露 8080 端口
EXPOSE 8080
EXPOSE 8514

View File

@ -9,7 +9,7 @@ import org.springframework.context.annotation.ComponentScan;
@SpringBootApplication
// @EnableConfigurationProperties(value = {AlipayProperties.class})
@ComponentScan("com.atguigu")
@EnableFeignClients(basePackages = {"com.atguigu.feign"})
@EnableFeignClients(basePackages = {"com.atguigu"})
@Slf4j
public class PayApplication {
public static void main(String[] args) {