sso_service.go 290 B

123456789101112131415161718
  1. package services
  2. import (
  3. "eta/eta_mini_crm_ht/rpc/sso"
  4. )
  5. const (
  6. crmSource = "weapp"
  7. )
  8. func SSOLogin(code string) (resp sso.UserResp, err error) {
  9. req := &sso.LoginRequest{
  10. Code: code,
  11. Source: crmSource,
  12. }
  13. ssoService := sso.GetSSOService()
  14. return ssoService.SSOLogin(req)
  15. }