sso_service.go 279 B

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