feat 初始化

This commit is contained in:
2026-10-29 10:12:22 +08:00
parent 332d812347
commit 09c1df8a22
81 changed files with 2211 additions and 7821 deletions

37
template/sms/lianlu.go Normal file
View File

@@ -0,0 +1,37 @@
package sms
//
//import "git.hlsq.asia/alex/proto/topic"
//
//type CountryCode string
//
//const (
// CountryCodeChina CountryCode = "+86" // 中国
// CountryCodeHongKong CountryCode = "+852" // 中国香港
// CountryCodeMacau CountryCode = "+853" // 中国澳门
// CountryCodeTaiwan CountryCode = "+886" // 中国台湾
// CountryCodeJapan CountryCode = "+81" // 日本
// CountryCodeSouthKorea CountryCode = "+82" // 韩国
//)
//
//const (
// TemplateCodeVerificationCodeChinese topic.SmsTemplateCode = "70630138" // 验证码(中文)
// TemplateCodeVerificationCodeEnglish topic.SmsTemplateCode = "54236" // 验证码(英文)
// TemplateCodeVerificationCodeJapanese topic.SmsTemplateCode = "54270" // 验证码(日文)
// TemplateCodeVerificationCodeKorean topic.SmsTemplateCode = "54271" // 验证码(韩文)
// TemplateCodeVerificationCodeChineseTraditional topic.SmsTemplateCode = "54272" // 验证码(繁体中文)
//)
//
//func GetTemplateCodeVerificationCodeByCountryCode(countryCode CountryCode) topic.SmsTemplateCode {
// switch countryCode {
// case CountryCodeChina:
// return TemplateCodeVerificationCodeChinese
// case CountryCodeHongKong, CountryCodeMacau, CountryCodeTaiwan:
// return TemplateCodeVerificationCodeChineseTraditional
// case CountryCodeJapan:
// return TemplateCodeVerificationCodeJapanese
// case CountryCodeSouthKorea:
// return TemplateCodeVerificationCodeKorean
// }
// return TemplateCodeVerificationCodeEnglish
//}