|  | @@ -14,7 +14,7 @@ import org.springframework.web.bind.annotation.*;
 | 
	
		
			
				|  |  |  import javax.annotation.Resource;
 | 
	
		
			
				|  |  |  import java.util.List;
 | 
	
		
			
				|  |  |  import java.util.Map;
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | +import com.yami.shop.common.util.R;
 | 
	
		
			
				|  |  |  /**
 | 
	
		
			
				|  |  |   * @author wy
 | 
	
		
			
				|  |  |   */
 | 
	
	
		
			
				|  | @@ -28,7 +28,7 @@ public class QnhController {
 | 
	
		
			
				|  |  |      @ApiOperation("查询所有门店")
 | 
	
		
			
				|  |  |      @PostMapping("/getStores")
 | 
	
		
			
				|  |  |      public R<List<StoreListVo>> getStores(@RequestBody StoreDto dto) {
 | 
	
		
			
				|  |  | -        return qnhService.getStores(dto);
 | 
	
		
			
				|  |  | +        return R.SUCCESS(qnhService.getStores(dto));
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      @ApiOperation("查询门店详情")
 | 
	
	
		
			
				|  | @@ -36,36 +36,36 @@ public class QnhController {
 | 
	
		
			
				|  |  |      public R<StoreDetailVo> queryStore(@RequestParam("regionCode") String regionCode,
 | 
	
		
			
				|  |  |                                                            @RequestParam(value = "pageNo", defaultValue = "1") Integer pageNo,
 | 
	
		
			
				|  |  |                                                            @RequestParam(value = "pageSize", defaultValue = "20") Integer pageSize) {
 | 
	
		
			
				|  |  | -        return qnhService.queryStore(regionCode, pageNo, pageSize);
 | 
	
		
			
				|  |  | +        return R.SUCCESS(qnhService.queryStore(regionCode, pageNo, pageSize));
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      @ApiOperation("查询门店商品列表")
 | 
	
		
			
				|  |  |      @PostMapping("/itemQuery")
 | 
	
		
			
				|  |  |      public R<GoodsItemPageVo> itemQuery(@RequestBody ItemQueryDto dto) {
 | 
	
		
			
				|  |  | -        return qnhService.itemQuery(dto);
 | 
	
		
			
				|  |  | +        return R.SUCCESS(qnhService.itemQuery(dto));
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      @ApiOperation("下单")
 | 
	
		
			
				|  |  |      @PostMapping("/addOrder")
 | 
	
		
			
				|  |  |      public R<String> addOrder(@RequestBody OrderDto dto) {
 | 
	
		
			
				|  |  | -        return qnhService.addOrder(dto);
 | 
	
		
			
				|  |  | +        return R.SUCCESS(qnhService.addOrder(dto));
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      @ApiOperation("syncShop")
 | 
	
		
			
				|  |  |      @GetMapping("/syncShop")
 | 
	
		
			
				|  |  |      public R<Void> syncShop() {
 | 
	
		
			
				|  |  | -        return qnhService.syncShop(null);
 | 
	
		
			
				|  |  | +        return R.SUCCESS(qnhService.syncShop(null));
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      @ApiOperation("syncGoods")
 | 
	
		
			
				|  |  |      @GetMapping("/syncGoods")
 | 
	
		
			
				|  |  |      public R<Void> syncGoods() {
 | 
	
		
			
				|  |  | -        return qnhService.syncGoods(null);
 | 
	
		
			
				|  |  | +        return R.SUCCESS(qnhService.syncGoods(null));
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      @ApiOperation("获取门店")
 | 
	
		
			
				|  |  |      @GetMapping("/getDetailShop")
 | 
	
		
			
				|  |  |      public R<Map<String,String>> getDetailShop(@RequestParam(value = "name", required = false) String name) {
 | 
	
		
			
				|  |  | -        return qnhService.getDetailShop(name);
 | 
	
		
			
				|  |  | +        return R.SUCCESS(qnhService.getDetailShop(name));
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |  }
 |