package com.caimei.www.controller; import org.springframework.stereotype.Controller; import org.springframework.ui.Model; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RequestParam; /** * Description * * @author : Charles * @date : 2020/7/15 */ @Controller public class SupplierController extends BaseController { private static final String SUPPLIER_SEARCH_PATH = "supplier/search"; private static final String SUPPLIER_HOME_PATH = "supplier/home"; /** * 供应商搜索结果页 */ @GetMapping("/supplier/search.html") public String search() { return SUPPLIER_SEARCH_PATH; } /** * 供应商详情页 */ @GetMapping("/supplier/home.html") public String home(final Model model, @RequestParam("sid") Integer shopId) { /*ProductDetail detail = productService.getProductDetailById(productId); model.addAttribute("product", detail);*/ return SUPPLIER_HOME_PATH; } }