店铺营业状态接口
This commit is contained in:
@@ -47,8 +47,8 @@ public class WebMvcConfiguration extends WebMvcConfigurationSupport {
|
||||
* @return
|
||||
*/
|
||||
@Bean
|
||||
public Docket docket() {
|
||||
log.info("准备生成接口文档...");
|
||||
public Docket docketAdmin() {
|
||||
log.info("准备生成Admin接口文档...");
|
||||
ApiInfo apiInfo = new ApiInfoBuilder()
|
||||
.title("苍穹外卖项目接口文档")
|
||||
.version("2.0")
|
||||
@@ -56,16 +56,36 @@ public class WebMvcConfiguration extends WebMvcConfigurationSupport {
|
||||
.build();
|
||||
//指定版本
|
||||
Docket docket = new Docket(DocumentationType.SWAGGER_2)
|
||||
.groupName("管理端接口")
|
||||
//上文设置的信息
|
||||
.apiInfo(apiInfo)
|
||||
.select()
|
||||
//指定生成接口需要扫描的包
|
||||
.apis(RequestHandlerSelectors.basePackage("com.sky.controller"))
|
||||
.apis(RequestHandlerSelectors.basePackage("com.sky.controller.admin"))
|
||||
.paths(PathSelectors.any())
|
||||
.build();
|
||||
return docket;
|
||||
}
|
||||
@Bean
|
||||
public Docket docketUser() {
|
||||
log.info("准备生成User接口文档...");
|
||||
ApiInfo apiInfo = new ApiInfoBuilder()
|
||||
.title("苍穹外卖项目接口文档")
|
||||
.version("2.0")
|
||||
.description("苍穹外卖项目接口文档")
|
||||
.build();
|
||||
//指定版本
|
||||
Docket docket = new Docket(DocumentationType.SWAGGER_2)
|
||||
.groupName("用户端接口")
|
||||
//上文设置的信息
|
||||
.apiInfo(apiInfo)
|
||||
.select()
|
||||
//指定生成接口需要扫描的包
|
||||
.apis(RequestHandlerSelectors.basePackage("com.sky.controller.user"))
|
||||
.paths(PathSelectors.any())
|
||||
.build();
|
||||
return docket;
|
||||
}
|
||||
|
||||
/**
|
||||
* 设置静态资源映射
|
||||
* @param registry
|
||||
|
||||
@@ -175,7 +175,6 @@ public class DishServiceImpl implements DishService {
|
||||
*/
|
||||
@Override
|
||||
@Transactional
|
||||
//TODO 菜品关联套餐状态
|
||||
public void startOrStop(Integer status, Long id) {
|
||||
//更新菜品状态
|
||||
Dish dish = Dish.builder()
|
||||
|
||||
Reference in New Issue
Block a user