package com.cool.store.controller;


import com.cool.store.request.CustomerInfoRequest;
import com.cool.store.response.ResponseResult;
import com.cool.store.service.EcSyncService;
import com.cool.store.vo.InterviewScheduleInfoVO;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.*;

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


@RestController
@RequestMapping("/ecSync")
@Slf4j
public class EcSyncController {


    @Resource
    private EcSyncService ecSyncService;

    @PostMapping(path = "/ecToApplet")
    @ApiOperation("ec同步数据到小程序")
    public ResponseResult<Boolean> ecToApplet(@RequestBody List<CustomerInfoRequest> queryListData){
        return  ResponseResult.success(ecSyncService.ecToApplet(queryListData));
    }

}
