package com.template.controller;


import com.template.annotation.DESRespondSecret;
import com.template.api.SmartCarAccessControllerAPI;
import com.template.model.pojo.SmartCarAccess;
import com.template.model.result.CommonResult;
import com.template.model.result.PageUtils;
import com.template.model.vo.SmartAccessVo;
import com.template.model.vo.SmartCarAccessVo;
import com.template.services.SmartCarAccessService;
import org.springframework.beans.factory.annotation.Autowired;


import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 前端控制器
 * </p>
 *
 * @author ceshi
 * @since 2024-02-23
 */
@RestController
//返回参数加密注解
@DESRespondSecret
public class SmartCarAccessController implements SmartCarAccessControllerAPI {

    @Autowired
    SmartCarAccessService smartCarAccessService;

    @Override
    @DESRespondSecret(validated = true)
    public CommonResult getPage(Integer currentPage, Integer pageCount, String keyWord, String type, String startTime, String endTime) {
        PageUtils<SmartCarAccessVo> pageUtils=smartCarAccessService.getPage(currentPage,pageCount,keyWord,type,startTime,endTime);
        return CommonResult.ok(pageUtils);

    }

}

