package com.zhiqiyun.open.mapper;

import com.zhiqiyun.open.enmus.PasswordType;
import com.zhiqiyun.open.models.UserPassword;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @author Administrator
 * @date 2017-6-7
 */
@Mapper
public interface UserPasswordMapper {
    /**
     * 更新用户密码
     *
     * @param userPassword
     */
    void insertOrUpdatePassword(UserPassword userPassword);

    /**
     * 查询用户密码
     *
     * @param uid
     * @param passwordType
     * @return
     */
    UserPassword findPassword(@Param("uid") Long uid, @Param("passwordType") PasswordType passwordType);
}
