PersonalMain-Golang/api/request/authApi.go

24 lines
573 B
Go
Raw Normal View History

2023-12-24 15:17:21 +08:00
package request
import (
"github.com/gogf/gf/v2/frame/g"
)
type RegisterReq struct {
g.Meta `path:"/register" tags:"注册" method:"post" summary:"注册账号"`
2023-12-24 15:17:21 +08:00
}
type LoginReq struct {
g.Meta `path:"/login" tags:"登录" method:"get" summary:"登录账号"`
2023-12-24 15:17:21 +08:00
}
2023-12-26 16:04:24 +08:00
type CheckReq struct {
g.Meta `path:"/check" tags:"检查登录" method:"get" summary:"检查登录"`
}
2023-12-26 16:29:04 +08:00
type LogoutReq struct {
g.Meta `path:"/logout" tags:"登出" method:"delete" summary:"登出账号"`
}
type RegisterRes struct{}
type LoginRes struct{}
2023-12-26 16:04:24 +08:00
type CheckRes struct{}
2023-12-26 16:29:04 +08:00
type LogoutRes struct{}