package com.psdc.mapper; import com.psdc.entity.SecretKey; import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Param; /** * @author 小镇做题家 */ @Mapper public interface SecretKeyMapper { /** * 新增数据 * * @param secretKey 实例对象 * @return 影响行数 */ Integer insert(SecretKey secretKey); /** * 更新数据 * * @return 影响行数 */ Integer update(@Param(value = "newKey") String s1, @Param(value = "oldKey") String s2); SecretKey selOneByKey(@Param(value = "key") String s); }