import config from './prefix';

const { api, version } = config;

const url = {
  getSignatureByAidOrPersonId: {
    value: `${api}person/${version}/person/getSignatureByAidOrPersonId`,
    label: '生成aid或personId访问人员档案的签名接口',
    requestId: 'getSignatureByAidOrPersonId',
  },
  getPersonById: {
    value: `${api}person/${version}/person/getPersonById`,
    label: '获取人员基本信息',
    requestId: 'getPersonById',
  },
  queryPersons: {
    value: `${api}disa/${version}/face/persons/<id>`,
    label: '根据抓拍图片ID查询图片详情',
    actionName: 'queryPersons',
  },
  queryPersonTags: {
    value: `${api}person/${version}/person/queryPersonTags`,
    label: '获取人员标签',
    requestId: 'queryPersonTags',
  },
  queryRecentAppearance: {
    value: `${api}person/${version}/person/queryRecentAppearance`,
    label: '获取人员最近出现时间/最近出现地点',
    requestId: 'queryRecentAppearance',
  },
  getSignatureUrlByPlateIds: {
    value: `${api}vehicle/archive/${version}/getSignatureUrlByPlateIds`,
    label: '根据车辆id查询车辆签名',
    requestId: 'getSignatureUrlByPlateIds',
  },
  queryVehicleBaseInfo: {
    value: `${api}vehicle/archive/${version}/viewByPlateId`,
    label: '根据⻋牌号ID查询⻋辆基本信息查询 （车辆详情）',
    requestId: 'queryVehicleBaseInfo',
  },
  queryLastAppearInfo: {
    value: `${api}vehicle/archive/${version}/queryLastAppearInfo`,
    label: '查询最后出现的时间、地点、场所、照⽚（车辆详情）',
    requestId: 'queryLastAppearInfo',
  },
  queryFirstAppearInfo: {
    value: `${api}vehicle/archive/${version}/queryFirstAppearInfo`,
    label: '根据⻋牌号查询⾸次出现时间、地点、场所、照⽚（车辆详情）',
    requestId: 'queryFirstAppearInfo',
  },
  getVehicleById: {
    value: `${api}vehicle/${version}/getVehicleById/<id>`,
    label: '查询车辆详情',
    requestId: 'getVehicleById',
  },
  persons: {
    value: `${api}disa/${version}/face/persons/<id>`,
    label: '根据抓拍图片ID查询图片详情',
    requestId: 'persons',
  },
  getAidsTogetherByAid: {
    value: `${api}person/${version}/person/getAidsTogetherByAid`,
    label: '查询常同出现的人',
    requestId: 'getAidsTogetherByAid',
  },
  getPersonFrequentedPlaces: {
    value: `${api}person/${version}/person/getPersonFrequentedPlaces`,
    label: '获取单个人员常去地及在常去地出现的次数',
    requestId: 'getPersonFrequentedPlaces',
  },
  getLivePlaceByAid: {
    value: `${api}person/${version}/person/getLivePlaceByAid`,
    label: '查询人员疑似居住地',
    requestId: 'getLivePlaceByAid',
  },
  queryAidAndCidRelation: {
    value: `${api}person/resource/${version}/person/queryAidAndCidRelation`,
    label: '查询aid与设备的关系',
    requestId: 'queryAidAndCidRelation',
  },
  queryAidAndXidRelation: {
    value: `${api}person/${version}/person/queryAidAndXidRelation`,
    label: '查询aid和人/车/场所/设备关系',
    requestId: 'queryAidAndXidRelation',
  },
  getAidsByCidAndAids: {
    value: `${api}person/${version}/person/getAidsByCidAndAids`,
    label: '查询在设备下和AID是同出现的人',
    requestId: 'getAidsByCidAndAids',
  },
  getAidsByFrequentPid: {
    value: `${api}person/${version}/person/getAidsByFrequentPid`,
    label: '查询在场所下是常出入的人',
    requestId: 'getAidsByFrequentPid',
  },
  queryVehicleAndXidRelation: {
    value: `${api}vehicle/archive/${version}/queryVehicleAndXidRelation`,
    label: '查询⻋辆关注',
    requestId: 'queryVehicleAndXidRelation',
  },
  getDetailTogether: {
    value: `${api}person/${version}/statistics/getDetailTogether`,
    label: '获取两个人员的详细常同出现信息',
    requestId: 'getDetailTogether',
  },
  getPersonCount: {
    value: `${api}person/${version}/person/getPersonCount`,
    label: '获取用户权限下的人员档案中的人员数',
    requestId: 'getPersonCount',
  },
  queryVehicleAndXidDetail: {
    value: `${api}place/${version}/queryVehicleAndXidDetail`,
    label: '查询⻋辆关注',
    requestId: 'queryVehicleAndXidDetail',
  },
  queryAidSamePassengerDetail: {
    value: `${api}person/${version}/vehicle/queryAidSamePassengerDetail`,
    label: ' 查询人/人同乘关系明细',
    requestId: 'queryAidSamePassengerDetail',
  },
  queryAidDriverDetail: {
    value: `${api}person/${version}/vehicle/queryAidDriverDetail`,
    label: '车驾乘关系明细',
    requestId: 'queryAidDriverDetail',
  },
  queryAidAndNonVehicleRelation: {
    value: `${api}person/${version}/person/queryAidAndNonVehicleRelation`,
    label: '人与非机动车关系',
    requestId: 'queryAidAndNonVehicleRelation',
  },
  queryPersonAndVehicleOwnerRelation: {
    value: `${api}person/${version}/vehicle/queryPersonAndVehicleOwnerRelation`,
    label: '人车实口关系',
    requestId: 'queryPersonAndVehicleOwnerRelation',
  },
  queryAidDetail: {
    value: `${api}disa/${version}/aid/queryAidDetail`,
    label: '根据AID列表查询资源列表',
    requestId: 'queryAidDetail',
  },
};

export default url;
