package com.cool.store.controller.webc;

import com.cool.store.response.ResponseResult;
import com.cool.store.service.NewStoreOpeningService;
import com.cool.store.vo.NewStoreOpeningVO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Author byd
 * @Date 2023/6/15 9:49
 * @Version 1.0
 */
@RestController
@RequestMapping("/mini/newStoreOpening")
@Api(tags = "mini新店开业")
public class MiniNewStoreOpeningController {


    @Resource
    NewStoreOpeningService newStoreOpeningService;


    @GetMapping(path = "/storeTodoList")
    @ApiOperation("新店开业待办列表")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "shopId", value = "店铺id", required = true)
    })
    public ResponseResult<List<NewStoreOpeningVO>> storeTodoList(@RequestParam("shopId") Long shopId) {
        return ResponseResult.success(newStoreOpeningService.storeTodoList(shopId));
    }

}
