1
0
mirror of https://github.com/nitezs/sub2clash.git synced 2024-12-24 12:54:41 -05:00
sub2clash/validator/short_link.go

18 lines
479 B
Go
Raw Normal View History

2023-09-17 03:52:37 -04:00
package validator
type ShortLinkGenValidator struct {
Url string `form:"url" binding:"required"`
Password string `form:"password"`
2023-09-17 03:52:37 -04:00
}
type ShortLinkGetValidator struct {
Hash string `form:"hash" binding:"required"` // Hash: 短链接
Password string `form:"password"`
2023-09-17 03:52:37 -04:00
}
type ShortLinkUpdateValidator struct {
Hash string `form:"hash" binding:"required"`
Url string `form:"url" binding:"required"`
Password string `form:"password" binding:"required"`
}