auth.go 332 B

12345678910
  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" binding:"required"`
  8. }