user.go 516 B

1234567891011121314151617
  1. package system
  2. import (
  3. "github.com/gogf/gf/v2/frame/g"
  4. )
  5. type UserLoginReq struct {
  6. g.Meta `path:"/hello" tags:"Hello" method:"get" summary:"You first hello api"`
  7. Username string `p:"username" v:"required#用户名不能为空"`
  8. Password string `p:"password" v:"required#密码不能为空"`
  9. VerifyCode string `p:"verifyCode" v:"required#验证码不能为空"`
  10. VerifyKey string `p:"verifyKey"`
  11. }
  12. type UserLoginRes struct {
  13. g.Meta `mime:"text/html" example:"string"`
  14. Data g.Map `json:"data"`
  15. }