1
0
mirror of https://github.com/nitezs/sub2clash.git synced 2024-12-23 14:44:42 -05:00
sub2clash/validator/short_link.go

18 lines
454 B
Go
Raw Permalink 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 GetUrlValidator struct {
2024-08-11 11:55:47 -04:00
Hash string `form:"hash" binding:"required"`
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"`
}