商品详情
This commit is contained in:
@@ -0,0 +1,40 @@
|
||||
package com.tashow.cloud.product.api;
|
||||
|
||||
import com.tashow.cloud.common.pojo.PageResult;
|
||||
import com.tashow.cloud.product.service.ProdService;
|
||||
import com.tashow.cloud.product.service.ShopDetailService;
|
||||
import com.tashow.cloud.productapi.api.product.ProdApi;
|
||||
import com.tashow.cloud.productapi.api.product.ShopDetailApi;
|
||||
import com.tashow.cloud.productapi.api.product.dto.ProdDO;
|
||||
import com.tashow.cloud.productapi.api.product.dto.ShopDetailDO;
|
||||
import com.tashow.cloud.productapi.api.product.vo.prod.ProdListVO;
|
||||
import com.tashow.cloud.productapi.api.product.vo.prod.ProdPageReqVO;
|
||||
import com.tashow.cloud.productapi.api.product.vo.prod.ProdServiceVO;
|
||||
import jakarta.annotation.Resource;
|
||||
import jakarta.validation.Valid;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
@RestController // 提供 RESTful API 接口,给 Feign 调用
|
||||
@Validated
|
||||
public class ProdImpl implements ProdApi {
|
||||
|
||||
@Resource
|
||||
private ProdService prodService;
|
||||
|
||||
@Override
|
||||
public ProdDO getProdInfo(Long id) {
|
||||
return prodService.getProd(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public ProdServiceVO getProdService(Long id) {
|
||||
return prodService.getProdService(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public PageResult<ProdListVO> getProdPage(ProdPageReqVO pageReqVO) {
|
||||
return prodService.getProdPage(pageReqVO);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user