package com.nmgs.service;

import com.alibaba.fastjson.JSONArray;

import java.util.List;

/**
 * 用户与车牌信息关系
 */
public interface UserVehicleService {
    /**
     * 根据用户id 获取已经绑定的车牌
     * @param userId  用户id
     * @param certification 认证状态
     * @return
     */
    public List getUserVehicleByUserId(String userId,String certification);

    /**
     * 批量添加用户车牌
     * @param jsonArray
     * @return
     */
    public int addUserVehicle(JSONArray jsonArray);

    /**
     * 车牌取消绑定
     * @param userId
     * @param aCarNo
     * @return
     */
    public int cancelUserVehicle(String userId,String aCarNo);

    /**
     * 修改用户车牌信息
     * @param userId
     * @param aCarNo
     * @param checkName
     * @param checkUserNumber
     * @param licensepic
     * @param permitpic
     * @param vehiclePic
     * @param certification
     * @param referrerCode
     * @return
     */
    public int updateUserVehicle(String userId,String aCarNo,String checkName,String checkUserNumber,String licensepic,
                                 String permitpic,String  vehiclePic,String certification,String referrerCode);

    /**
     * 根据用户和车牌号获取数据
     * @param userId
     * @param aCarNo
     * @return
     */
    public List getUserVehicle(String userId, String aCarNo);
}
