mirror of
https://github.com/nitezs/sub2clash.git
synced 2024-12-23 22:04:41 -05:00
18 lines
479 B
Go
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"`
|
|
}
|