7 changed files with 28 additions and 2 deletions
@ -1,7 +1,12 @@ |
|||||||
package top.naccl.dwz.service; |
package top.naccl.dwz.service; |
||||||
|
|
||||||
|
import org.springframework.scheduling.annotation.Async; |
||||||
|
|
||||||
public interface UrlService { |
public interface UrlService { |
||||||
String getLongUrlByShortUrl(String shortURL); |
String getLongUrlByShortUrl(String shortURL); |
||||||
|
|
||||||
String saveUrlMap(String shortURL, String longURL, String originalURL); |
String saveUrlMap(String shortURL, String longURL, String originalURL); |
||||||
|
|
||||||
|
@Async |
||||||
|
void updateUrlViews(String shortURL); |
||||||
} |
} |
||||||
|
Loading…
Reference in new issue