package com.cool.store.controller.webc;

import com.cool.store.request.plan.NotifyDeliveryRequest;
import com.cool.store.request.plan.UpdateDeliveryItemRequest;
import com.cool.store.response.ResponseResult;
import com.cool.store.service.plan.ShopDeliveryPlanService;
import com.cool.store.vo.plan.DeliveryDetailVO;
import com.cool.store.vo.plan.DeliveryInfoVO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * @Auther zx_szh
 * @Date 2026/4/2 10:38
 * @Version 1.0
 */
@RequestMapping("/mini/shopDeliveryPlan")
@RestController
@Api("门店发货阶段-小程序")
public class MiniShopDeliveryPlanController {

    @Resource
    private ShopDeliveryPlanService shopDeliveryPlanService;


    @GetMapping("/queryDeliveryInfo")
    @ApiOperation("查询发货信息")
    public ResponseResult<DeliveryInfoVO> queryDeliveryInfo(@RequestParam("shopId") Long shopId) {
        return ResponseResult.success(shopDeliveryPlanService.queryDeliveryInfo(shopId));
    }

    @GetMapping("/queryDeliveryDetail")
    @ApiOperation("根据门店查询发货详细信息")
    public ResponseResult<DeliveryDetailVO> queryDeliveryDetail(@RequestParam("shopId") Long shopId) {
        return ResponseResult.success(shopDeliveryPlanService.queryDeliveryDetail(shopId));
    }
}
