广告平台(媒体使用)
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

md_login.go 739 B

1 개월 전
1 개월 전
1 개월 전
123456789101112131415161718192021
  1. package md
  2. type LoginReq struct {
  3. UserName string `json:"username" binding:"required" example:"登录账号"`
  4. PassWord string `json:"password" binding:"required" example:"登录密码"`
  5. Code string `json:"code" example:"验证码"`
  6. }
  7. type LoginResponse struct {
  8. Token string `json:"token"`
  9. }
  10. type LoginPhoneReq struct {
  11. UserName string `json:"username" binding:"required" example:"登录账号"`
  12. Captcha string `json:"captcha" binding:"required" example:"验证码"`
  13. }
  14. type RegisterReq struct {
  15. UserName string `json:"username" binding:"required" example:"登录账号"`
  16. Captcha string `json:"captcha" binding:"required" example:"验证码"`
  17. PassWord string `json:"password" binding:"required" example:"登录密码"`
  18. }