feat: add gitlab provider (#273)

Signed-off-by: sh1luo <690898835@qq.com>
This commit is contained in:
sh1luo
2021-08-19 21:03:57 +08:00
committed by Yang Luo
parent e1182bb635
commit 75e917a070
8 changed files with 279 additions and 2 deletions

View File

@ -23,7 +23,7 @@ import (
func SendCodeToPhone(provider *Provider, phone, code string) string {
client := go_sms_sender.NewSmsClient(provider.Type, provider.ClientId, provider.ClientSecret, provider.SignName, provider.RegionId, provider.TemplateCode, provider.AppId)
if client == nil {
return fmt.Sprintf("Unsupported provide type: %s", provider.Type)
return fmt.Sprintf("Unsupported provider type: %s", provider.Type)
}
param := make(map[string]string)