2025-02-21 13:09:29 +00:00
|
|
|
package common
|
|
|
|
|
|
|
|
// 套餐
|
|
|
|
const (
|
2025-02-22 07:31:21 +00:00
|
|
|
MissBundleUUID = "缺少套餐UUID"
|
|
|
|
MissOrderSignature = "缺少客户签名信息"
|
|
|
|
ErrorInsertSignature = "插入签名失败"
|
2025-02-21 13:09:29 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
// 订单
|
|
|
|
const (
|
|
|
|
MissOrderNo = "缺少订单号"
|
|
|
|
MissOrderUUID = "缺少订单信息"
|
|
|
|
|
2025-03-25 08:30:58 +00:00
|
|
|
NotMatchOrderInfo = "非当前用户订单信息不可操作"
|
|
|
|
InvalidOrderAmount = "订单金额错误"
|
2025-02-21 13:09:29 +00:00
|
|
|
|
|
|
|
HadPay = "订单已支付"
|
2025-02-22 12:37:56 +00:00
|
|
|
|
|
|
|
HadOrder = "您已购买过套餐,无法再次购买"
|
2025-02-21 13:09:29 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
// stripe
|
|
|
|
const (
|
|
|
|
ErrorQueryStripeInfo = "查询支付信息失败"
|
|
|
|
)
|
2025-02-22 07:31:21 +00:00
|
|
|
|
|
|
|
const (
|
|
|
|
ErrorDownloadFile = "下载文件失败"
|
|
|
|
ErrorUploadFile = "上传文件失败"
|
|
|
|
)
|
2025-02-23 14:09:58 +00:00
|
|
|
|
2025-02-23 14:17:59 +00:00
|
|
|
/*var EnMessages = map[string]string{
|
|
|
|
"创建套餐信息失败": "Failed to create bundle information",
|
|
|
|
"创建套餐信息成功": "Successfully created bundle information",
|
|
|
|
"更新套餐信息失败": "Failed to update bundle information",
|
|
|
|
"更新套餐信息成功": "Successfully updated bundle information",
|
|
|
|
"删除套餐信息失败": "Failed to delete bundle information",
|
|
|
|
"删除套餐信息成功": "Successfully deleted bundle information",
|
|
|
|
"获取套餐列表失败": "Failed to get bundle list",
|
|
|
|
"获取套餐信息失败": "Failed to get bundle information",
|
|
|
|
"创建订单信息失败": "Failed to create order information",
|
|
|
|
"创建订单信息成功": "Successfully created order information",
|
|
|
|
"更新订单信息失败": "Failed to update order information",
|
|
|
|
"更新订单信息成功": "Successfully updated order information",
|
|
|
|
"获取订单信息失败": "Failed to get order information",
|
|
|
|
"获取订单列表失败": "Failed to get order list",
|
|
|
|
"缺少套餐UUID": "Missing bundle UUID",
|
|
|
|
"缺少客户签名信息": "Missing customer signature",
|
|
|
|
"插入签名失败": "Failed to insert signature",
|
|
|
|
"缺少订单号": "Missing order number",
|
|
|
|
"缺少订单信息": "Missing order information",
|
|
|
|
"非当前用户订单信息不可操作": "Cannot operate on order information of other users",
|
|
|
|
"订单已支付": "Order has been paid",
|
|
|
|
"您已购买过套餐,无法再次购买": "You have already purchased this bundle and cannot purchase again",
|
|
|
|
"查询支付信息失败": "Failed to query payment information",
|
|
|
|
"下载文件失败": "Failed to download file",
|
|
|
|
"上传文件失败": "Failed to upload file",
|
|
|
|
"时间格式错误": "Invalid time format",
|
|
|
|
}*/
|