Merge pull request 'feat(修改): 修改接口相关内容,导出接口数据' (#4) from dev-v2 into master-v2
Reviewed-on: #4
This commit is contained in:
commit
89fed17157
|
@ -24,20 +24,41 @@ public class Knife4jConfig {
|
||||||
public GroupedOpenApi adminApi() {
|
public GroupedOpenApi adminApi() {
|
||||||
log.info("admin请求接口");
|
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
|
@Bean
|
||||||
public GroupedOpenApi productApi() {
|
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
|
@Bean
|
||||||
public GroupedOpenApi userApi() {
|
public GroupedOpenApi userApi() {
|
||||||
log.info("用户接口");
|
log.info("用户接口-8512");
|
||||||
|
|
||||||
return GroupedOpenApi.builder().group("用户接口").pathsToMatch("/api/user/**").build();
|
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();
|
||||||
|
}
|
||||||
}
|
}
|
|
@ -8,7 +8,7 @@ import org.springframework.cloud.openfeign.EnableFeignClients;
|
||||||
import org.springframework.context.annotation.ComponentScan;
|
import org.springframework.context.annotation.ComponentScan;
|
||||||
|
|
||||||
@SpringBootApplication
|
@SpringBootApplication
|
||||||
@EnableFeignClients(basePackages = {"com.atguigu.feign"})
|
@EnableFeignClients(basePackages = {"com.atguigu"})
|
||||||
@EnableUserTokenFeignInterceptor
|
@EnableUserTokenFeignInterceptor
|
||||||
@ComponentScan("com.atguigu")
|
@ComponentScan("com.atguigu")
|
||||||
@Slf4j
|
@Slf4j
|
||||||
|
|
|
@ -17,4 +17,4 @@ COPY target/*.jar /home/bunny/app.jar
|
||||||
ENTRYPOINT ["java","-jar","/home/bunny/app.jar"]
|
ENTRYPOINT ["java","-jar","/home/bunny/app.jar"]
|
||||||
|
|
||||||
#暴露 8080 端口
|
#暴露 8080 端口
|
||||||
EXPOSE 8080
|
EXPOSE 8514
|
|
@ -9,7 +9,7 @@ import org.springframework.context.annotation.ComponentScan;
|
||||||
@SpringBootApplication
|
@SpringBootApplication
|
||||||
// @EnableConfigurationProperties(value = {AlipayProperties.class})
|
// @EnableConfigurationProperties(value = {AlipayProperties.class})
|
||||||
@ComponentScan("com.atguigu")
|
@ComponentScan("com.atguigu")
|
||||||
@EnableFeignClients(basePackages = {"com.atguigu.feign"})
|
@EnableFeignClients(basePackages = {"com.atguigu"})
|
||||||
@Slf4j
|
@Slf4j
|
||||||
public class PayApplication {
|
public class PayApplication {
|
||||||
public static void main(String[] args) {
|
public static void main(String[] args) {
|
||||||
|
|
Loading…
Reference in New Issue