login.go 393 B

1234567891011121314
  1. package common
  2. import "github.com/gogf/gf/v2/frame/g"
  3. type LoginReq struct {
  4. g.Meta `path:"/login" tags:"Login" method:"get" summary:"Demo"`
  5. Email string `v:"required" json:"email" dc:"email"`
  6. Password string `v:"required" json:"password" dc:"password"`
  7. }
  8. type LoginRes struct {
  9. Message string `json:"message" dc:"消息"`
  10. Data interface{} `json:"data" dc:"结果"`
  11. }