package com.panzhihua.service_community.api;
|
|
import com.panzhihua.common.model.dtos.shop.PageComShopStoreDTO;
|
import com.panzhihua.common.model.vos.R;
|
import com.panzhihua.service_community.service.ComShopStoreService;
|
import lombok.extern.slf4j.Slf4j;
|
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 javax.annotation.Resource;
|
|
@Slf4j
|
@RestController
|
@RequestMapping("/shop")
|
public class ShopApi {
|
|
@Resource
|
private ComShopStoreService comShopStoreService;
|
|
/**
|
* 店铺列表-分页查询
|
* @param pageComShopStoreDTO 查询参数
|
* @return ComShopStoreVO
|
*/
|
@PostMapping("pageShopStore")
|
public R pageShopStore(@RequestBody PageComShopStoreDTO pageComShopStoreDTO){
|
return comShopStoreService.pageStoreList(pageComShopStoreDTO);
|
}
|
|
}
|