package com.huimv.video.controller;

import com.huimv.video.domain.MobileUser;
import com.huimv.video.domain.SjHkSd;
import com.huimv.video.result.Result;
import com.huimv.video.service.AllDataService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import javax.servlet.http.HttpServletResponse;
import java.util.Date;

/**
 * @Project : huimv.shiwan
 * @Package : com.huimv.video.controller
 * @Description : TODO
 * @Author : yuxuexuan
 * @Create : 2021/3/31 0031 14:00
 **/
@RestController
@CrossOrigin
@RequestMapping("/allDataController")
public class AllDataController {
    @Autowired
    private AllDataService allDataService;


    @RequestMapping("/findByZSID")
    public Result update(Integer ZSID,String lqid){
        return allDataService.findByZSID(ZSID,lqid);
    }

    @RequestMapping("/findAll")
    public String findAll(String startTime, String endTime, HttpServletResponse response){
        return allDataService.findAll(startTime,endTime,response);
    }

}
