提交 91f349aa authored 作者: hzh's avatar hzh

增加部分接口

上级 8b9f9ffe
...@@ -299,6 +299,13 @@ ...@@ -299,6 +299,13 @@
<version>${revision}</version> <version>${revision}</version>
</dependency> </dependency>
<!-- 旅游卫士 -->
<dependency>
<groupId>org.dromara</groupId>
<artifactId>ruoyi-common-51weishi</artifactId>
<version>${revision}</version>
</dependency>
</dependencies> </dependencies>
</dependencyManagement> </dependencyManagement>
</project> </project>
...@@ -134,6 +134,11 @@ ...@@ -134,6 +134,11 @@
<artifactId>ruoyi-common-websocket</artifactId> <artifactId>ruoyi-common-websocket</artifactId>
</dependency> </dependency>
<dependency>
<groupId>org.dromara</groupId>
<artifactId>ruoyi-common-51weishi</artifactId>
</dependency>
</dependencies> </dependencies>
<build> <build>
......
package org.dromara.mall.controller.weishi.app;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.RequiredArgsConstructor;
import org.dromara.common.core.domain.R;
import org.dromara.common.weishi.model.res.ProductResponse;
import org.dromara.common.weishi.model.res.ProductsResponse;
import org.dromara.common.weishi.service.WeishiService;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import java.util.List;
/**
* @author hzh
* @date 2025-05-12
**/
@Tag(name = "用户 App - 51旅游卫士")
@RestController
@RequestMapping("/app/weishi")
@Validated
@RequiredArgsConstructor
public class WeishiController {
private final WeishiService weishiService;
/**
* 产品列表
*
* @return 产品列表
*/
@GetMapping("/productList")
public R<List<ProductsResponse>> productList() {
return R.ok(weishiService.productList());
}
/**
* 产品详情
*
* @return 产品详情
*/
@GetMapping("/productDetail")
public R<ProductResponse> productDetail(@RequestParam Integer productId) {
return R.ok(weishiService.productDetail(productId));
}
}
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论