auth.go 356 B

1234567891011
  1. package request
  2. type CreateAuthCodeReq struct {
  3. Source int `json:"source" form:"source" binding:"oneof=1 2" description:"来源: 1-CRM; 2-ETA"`
  4. AdminName string `json:"admin_name" form:"admin_name" binding:"required"`
  5. }
  6. type TokenLoginReq struct {
  7. AuthCode string `json:"auth_code" form:"auth_code"`
  8. Code string `json:"code" form:"code"`
  9. }