import request from "@/https/request";

export default {

  /**
   * 获取学院违规统计
   */
  getCollegeList: async (data) => {
    return request("/vehicle/manager/visual/management/illegal/college/count", {method: 'GET', data});
  },
  /**
   * 车辆类型列表
   */
  carTypeList: async (data) => {
    return request("/vehicle/manager/vehicle/type/page", {method: 'GET', data});
  },
  /**
   * 违规类型列表
   * @param vehicleTypeId
   * @return {Promise<any>}
   */
  illegalTypeList:async (vehicleTypeId) => {
    return request('/vehicle/manager/score/rule/page',{method:'GET',params:{vehicleTypeId}})
  },
  /**
   * 车辆违规列表
   * @param startTime 开始时间
   * @param endTime 结束时间
   * @param no 学院编号
   * @param vehicleTypeId 车辆类型
   * @param ruleId 违规类型
   * @param keyword 关键词
   */
  illegalList: async ({vehicleTypeId, ruleId, keyword,startTime='',endTime='',no}) => {
    return request("/vehicle/manager/visual/management/illegal/page", {
      method: 'GET', params: {
        vehicleTypeId,
        ruleId,
        keyword,
        startTime,
        endTime,
        no,
      }
    });
  },
}
