1
0
mirror of https://github.com/nitezs/sub2clash.git synced 2024-12-23 21:44:41 -05:00
sub2clash/validator/short_link.go
2024-08-11 23:55:47 +08:00

18 lines
454 B
Go

package validator
type ShortLinkGenValidator struct {
Url string `form:"url" binding:"required"`
Password string `form:"password"`
}
type GetUrlValidator struct {
Hash string `form:"hash" binding:"required"`
Password string `form:"password"`
}
type ShortLinkUpdateValidator struct {
Hash string `form:"hash" binding:"required"`
Url string `form:"url" binding:"required"`
Password string `form:"password" binding:"required"`
}