首页>代码>使用springboot+mybatis+bootstrap写的短网址生成项目>/shorturl/src/main/java/com/wjup/shorturl/mapper/UrlMapper.java
package com.wjup.shorturl.mapper;
import com.wjup.shorturl.entity.UrlEntity;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
/**
* Create by wjup on 2019/9/29 11:33
*/
@Repository
public interface UrlMapper {
int createShortUrl(UrlEntity urlEntity);
UrlEntity findByShortUrlId(String shortUrlId);
void updateShortUrl(@Param("shortUrlId") String shorlUrlId, @Param("lastView") String lastView);
UrlEntity findByPwd(@Param("viewPwd") String viewPwd, @Param("shortUrlId") String shortUrlId);
}

最近下载
最近浏览