1、收码

This commit is contained in:
2025-07-24 23:34:07 +08:00
parent 398b8af489
commit 854d7bee0c
24 changed files with 2479 additions and 10 deletions

View File

@ -11,6 +11,17 @@ var StatusCodeZh = map[int]string{
PasswordEmpty: "密码不能为空",
ConfirmPasswordEmpty: "确认密码不能为空",
VerifyCodeError: "验证码错误",
BalanceNotEnough: "余额不足",
MaxPriceExceeded: "超过最大接受单价",
NoNumbers: "号码不足",
RentalsNotFinished: "需要先完成部分租赁才能继续租赁",
SmsCancel: "短信验证码_手机号过期",
SmsNoActivation: "短信验证码_手机号不存在",
SmsWaitCode: "短信验证码_等待验证码",
SmsLongNumWaitCode: "短信验证码_长效号码已唤醒",
SmsNotExisted: "号码不存在",
SmsNotExpired: "号码未过期无法删除",
}
var StatusCodeEn = map[int]string{
@ -24,6 +35,17 @@ var StatusCodeEn = map[int]string{
PasswordEmpty: "password can not be empty",
ConfirmPasswordEmpty: "confirm password can not be empty",
VerifyCodeError: "verify code error",
BalanceNotEnough: "balance not enough",
MaxPriceExceeded: "max price exceeded",
NoNumbers: "no numbers",
RentalsNotFinished: "need to finish some rentals before renting more",
SmsCancel: "sms code expired",
SmsNoActivation: "sms code not exist",
SmsWaitCode: "sms code wait for input",
SmsLongNumWaitCode: "sms code long num wake up",
SmsNotExisted: "number not exist",
SmsNotExpired: "number not expired, can not delete",
}
func GetMsg(code int, lang string) string {
@ -59,4 +81,26 @@ const (
ConfirmPasswordEmpty = 10008
//验证码错误
VerifyCodeError = 10009
//余额不足
BalanceNotEnough = 10010
//超过最大接受单价
MaxPriceExceeded = 10011
//号码不足
NoNumbers = 10012
// Need to finish some rentals before renting more
RentalsNotFinished = 10013
//短信验证码_手机号过期
SmsCancel = 20014
//短信验证码_手机号不存在
SmsNoActivation = 20015
//短信验证码_等待验证码
SmsWaitCode = 20016
//短信验证码_长效号码已唤醒
SmsLongNumWaitCode = 20017
//号码不存在
SmsNotExisted = 20018
//号码未过期无法删除
SmsNotExpired = 20019
)