2023-09-17 03:52:37 -04:00
|
|
|
package validator
|
|
|
|
|
|
|
|
type ShortLinkGenValidator struct {
|
2023-09-22 11:43:26 -04:00
|
|
|
Url string `form:"url" binding:"required"`
|
|
|
|
Password string `form:"password"`
|
2023-09-17 03:52:37 -04:00
|
|
|
}
|
|
|
|
|
2024-04-24 00:51:37 -04:00
|
|
|
type GetUrlValidator struct {
|
2024-03-13 01:30:45 -04:00
|
|
|
Hash string `form:"hash" binding:"required"` // Hash: 短链接
|
2023-09-22 11:43:26 -04:00
|
|
|
Password string `form:"password"`
|
2023-09-17 03:52:37 -04:00
|
|
|
}
|
2024-03-13 01:30:45 -04:00
|
|
|
|
|
|
|
type ShortLinkUpdateValidator struct {
|
|
|
|
Hash string `form:"hash" binding:"required"`
|
|
|
|
Url string `form:"url" binding:"required"`
|
|
|
|
Password string `form:"password" binding:"required"`
|
|
|
|
}
|