1
0
mirror of https://github.com/nitezs/sub2clash.git synced 2024-12-23 20:34:41 -05:00
sub2clash/validator/short_link.go
nite07 14c3b97ed2 feat: 修改短链
update: dockerfile,workflow
2024-03-13 13:30:45 +08:00

18 lines
479 B
Go

package validator
type ShortLinkGenValidator struct {
Url string `form:"url" binding:"required"`
Password string `form:"password"`
}
type ShortLinkGetValidator struct {
Hash string `form:"hash" binding:"required"` // Hash: 短链接
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"`
}