package com.panzhihua.service_dangjian.api;
|
|
|
import com.panzhihua.common.model.vos.R;
|
import com.panzhihua.service_dangjian.service.NewStriveForService;
|
import com.panzhihua.service_dangjian.service.StreetBigScreenService;
|
import lombok.extern.slf4j.Slf4j;
|
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;
|
|
@Slf4j
|
@RestController
|
@RequestMapping("/StreetBigScreen")
|
public class StreetBigScreenApi
|
{
|
|
@Resource
|
private StreetBigScreenService streetBigScreenService;
|
|
@GetMapping("/getCommunityId")
|
public R getCommunityId(@RequestParam("streetId") String streetId)
|
{
|
return streetBigScreenService.getCommunityId(streetId);
|
}
|
|
|
@GetMapping("/getCoreData")
|
public R getCoreData(@RequestParam(value = "streetId", required = false) String streetId,
|
@RequestParam(value = "communityId", required = false)String communityId,
|
@RequestParam(value = "type", required = false)String type,
|
@RequestParam(value = "starTime", required = false)String starTime,
|
@RequestParam(value = "endTime", required = false)String endTime)
|
{
|
return streetBigScreenService.getCoreData(streetId,communityId,type,starTime,endTime);
|
}
|
|
@GetMapping("/getThreeNum")
|
public R getThreeNum(@RequestParam(value = "streetId", required = false) String streetId,
|
@RequestParam(value = "communityId", required = false)String communityId,
|
@RequestParam(value = "type", required = false)String type,
|
@RequestParam(value = "starTime", required = false)String starTime,
|
@RequestParam(value = "endTime", required = false)String endTime)
|
{
|
return streetBigScreenService.getThreeNum(streetId,communityId,type,starTime,endTime);
|
}
|
|
|
|
@GetMapping("/getDoubleRegistration")
|
public R getDoubleRegistration(@RequestParam(value = "streetId", required = false) String streetId,
|
@RequestParam(value = "communityId", required = false)String communityId,
|
@RequestParam(value = "type", required = false)String type,
|
@RequestParam(value = "starTime", required = false)String starTime,
|
@RequestParam(value = "endTime", required = false)String endTime)
|
{
|
return streetBigScreenService.getDoubleRegistration(streetId,communityId,type,starTime,endTime);
|
}
|
|
@GetMapping("/getPhotoMicroWish")
|
public R getPhotoMicroWish(@RequestParam(value = "streetId", required = false) String streetId,
|
@RequestParam(value = "communityId", required = false)String communityId,
|
@RequestParam(value = "type", required = false)String type,
|
@RequestParam(value = "starTime", required = false)String starTime,
|
@RequestParam(value = "endTime", required = false)String endTime)
|
{
|
return streetBigScreenService.getPhotoMicroWish(streetId,communityId,type,starTime,endTime);
|
}
|
|
|
@GetMapping("/getAllData")
|
public R getAllData(@RequestParam(value = "streetId", required = false) String streetId,
|
@RequestParam(value = "communityId", required = false)String communityId,
|
@RequestParam(value = "type", required = false)String type,
|
@RequestParam(value = "starTime", required = false)String starTime,
|
@RequestParam(value = "endTime", required = false)String endTime)
|
{
|
return streetBigScreenService.getAllData(streetId,communityId,type,starTime,endTime);
|
}
|
|
}
|