@RestController @RequestMapping(value="/api/v1") public class DwzRestController extends Object
| Constructor and Description |
|---|
DwzRestController(IDwzServerService dwzServerService) |
| Modifier and Type | Method and Description |
|---|---|
EasyjDwzResponse |
createShortUrl(EasyjDwzRequest param)
生成短链接
|
String |
getLongUrl(String shortUrl)
根据短链接,获取对应长链接
|
public DwzRestController(IDwzServerService dwzServerService)
@PostMapping(value="/create-short-url") public EasyjDwzResponse createShortUrl(@RequestBody EasyjDwzRequest param)
param - 长链接、过期时间、...等等的参数Copyright © 2021–2022 EasyJ????. All rights reserved.