gofiber-study/model/vo/captcha.go
Shikong 72fb03ddbf 验证码简单实现
验证码添加 expire 超时时间
swag 添加 验证码测试
2022-10-25 11:40:24 +08:00

11 lines
269 B
Go

package vo
type Captcha struct {
// 验证码 id
Id string `json:"id" example:"abcdefg123456"`
// 验证码图片 base64
Base64 string `json:"base64" example:"data:image/png;base64,iVBO..."`
// 过期时间 unix
Expire int64 `json:"expire" example:"10000000"`
}