package org.dromara.app; import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.wzj.soopin.content.domain.bo.ArticleBO; import com.wzj.soopin.content.domain.vo.ArticleVO; import com.wzj.soopin.goods.service.ProductService; import com.wzj.soopin.member.service.IMemberService; import io.swagger.v3.oas.annotations.tags.Tag; import lombok.RequiredArgsConstructor; import org.dromara.common.core.domain.R; import org.dromara.system.service.ISysTenantService; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; import java.util.List; @RestController @RequestMapping("/app/common/search") @Tag(name = "公共检索") @RequiredArgsConstructor public class AppSearchController { private final ProductService productService; private final ISysTenantService sysTenantService; private final IMemberService memberService; @Tag(name = "检索") @PostMapping("/search") public R> search(@RequestBody ArticleBO bo,@RequestBody Page page) { // ProductBo productBo=new ProductBo(); // productBo.setNameLike(bo.getTitle()); // Page productPage = productService.page(page, bo.toWrapper()); // List articleList = productService.getList( bo.toWrapper()); // return R.ok(articleList); return null; } }