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