feat: 增加短链生成

This commit is contained in:
2023-09-17 15:52:37 +08:00
parent 38dbea4a2a
commit 6b08b2cb86
14 changed files with 206 additions and 34 deletions

9
validator/short_link.go Normal file
View File

@ -0,0 +1,9 @@
package validator
type ShortLinkGenValidator struct {
Url string `form:"url" binding:"required"`
}
type ShortLinkGetValidator struct {
Hash string `form:"hash" binding:"required"`
}