gofiber-study/model/dto/auth.go
Shikong 40f98a050f 添加 refreshToken 令牌刷新
common.Time json 序列化 与 反序列化完善
2022-10-06 22:12:43 +08:00

16 lines
429 B
Go

package dto
// Login
// @Param account body string true "用户账号(account)"
// @Param password body string true "用户密码"
type Login struct {
Account string `json:"account" example:"root"`
Password string `json:"password" example:"12341234"`
}
// RefreshToken
// @Param refreshToken body string true "刷新令牌"
type RefreshToken struct {
RefreshToken string `json:"refreshToken" example:"0123456789ABCDEFG"`
}