package com.upyuns.platform.rs.universal.mapper;

import com.upyuns.platform.rs.universal.entity.IdInformation;
import org.apache.ibatis.annotations.Insert;
import org.springframework.stereotype.Repository;
import tk.mybatis.mapper.common.Mapper;

@Repository
public interface IdInformationMapper extends Mapper<IdInformation> {

    @Insert(value = "insert into id_information (user_login_id,name,id_number,certificate_type,front_url,back_url,expiration_date) " +
                                       "values (#{userLoginId},#{name},#{idNumber},#{certificateType},#{frontUrl},#{backUrl},#{expirationDate})")
     void addIdInformation(IdInformation idInformation);

    IdInformation selectByUserId(Integer userLoginId);
}
