正在显示
1 个修改的文件
包含
3 行增加
和
3 行删除
@@ -5,7 +5,7 @@ import ( | @@ -5,7 +5,7 @@ import ( | ||
5 | "gitlab.fjmaimaimai.com/mmm-go/partner/pkg/application/partnerInfo/query" | 5 | "gitlab.fjmaimaimai.com/mmm-go/partner/pkg/application/partnerInfo/query" |
6 | "gitlab.fjmaimaimai.com/mmm-go/partner/pkg/application/partnerInfo/service" | 6 | "gitlab.fjmaimaimai.com/mmm-go/partner/pkg/application/partnerInfo/service" |
7 | "gitlab.fjmaimaimai.com/mmm-go/partner/pkg/domain" | 7 | "gitlab.fjmaimaimai.com/mmm-go/partner/pkg/domain" |
8 | - "gitlab.fjmaimaimai.com/mmm-go/partner/pkg/infrastructure/serviceGateway" | 8 | + "gitlab.fjmaimaimai.com/mmm-go/partner/pkg/infrastructure/svr" |
9 | "gitlab.fjmaimaimai.com/mmm-go/partner/pkg/infrastructure/utils" | 9 | "gitlab.fjmaimaimai.com/mmm-go/partner/pkg/infrastructure/utils" |
10 | "gitlab.fjmaimaimai.com/mmm-go/partner/pkg/protocol" | 10 | "gitlab.fjmaimaimai.com/mmm-go/partner/pkg/protocol" |
11 | "strings" | 11 | "strings" |
@@ -46,7 +46,7 @@ func Login(header *protocol.RequestHeader, request *protocol.LoginRequest) (rsp | @@ -46,7 +46,7 @@ func Login(header *protocol.RequestHeader, request *protocol.LoginRequest) (rsp | ||
46 | 46 | ||
47 | func SmsCode(request *protocol.SmsCodeRequest) (rsp *protocol.LoginResponse, err error) { | 47 | func SmsCode(request *protocol.SmsCodeRequest) (rsp *protocol.LoginResponse, err error) { |
48 | var data map[string]interface{} | 48 | var data map[string]interface{} |
49 | - sms := serviceGateway.NewHttplibMmmSmsApiServiceGateway() | 49 | + sms := svr.NewHttplibMmmSmsApiServiceGateway() |
50 | data, err = sms.SendSms(request.Phone) | 50 | data, err = sms.SendSms(request.Phone) |
51 | if err != nil { | 51 | if err != nil { |
52 | if msg, ok := data["msg"]; ok { | 52 | if msg, ok := data["msg"]; ok { |
@@ -98,7 +98,7 @@ func RefreshToken(request *protocol.RefreshTokenRequest) (rsp *protocol.RefreshT | @@ -98,7 +98,7 @@ func RefreshToken(request *protocol.RefreshTokenRequest) (rsp *protocol.RefreshT | ||
98 | 98 | ||
99 | //验证短信验证码 T | 99 | //验证短信验证码 T |
100 | func CheckSmsCode(phone, code string) (result bool, err error) { | 100 | func CheckSmsCode(phone, code string) (result bool, err error) { |
101 | - sms := serviceGateway.NewHttplibMmmSmsApiServiceGateway() | 101 | + sms := svr.NewHttplibMmmSmsApiServiceGateway() |
102 | var data map[string]interface{} | 102 | var data map[string]interface{} |
103 | data, err = sms.CheckSmsCode(phone, code) | 103 | data, err = sms.CheckSmsCode(phone, code) |
104 | if err != nil { | 104 | if err != nil { |
-
请 注册 或 登录 后发表评论