diff --git a/pkg/common/msg.go b/pkg/common/msg.go index 013ee4f..01b49f0 100644 --- a/pkg/common/msg.go +++ b/pkg/common/msg.go @@ -7,3 +7,32 @@ const ( ErrorImgDecode = "图片解析错误" ERROR_ROTATE_IMG = "旋转图片出错" ) + +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", +} diff --git a/pkg/service/base.go b/pkg/service/base.go index 27f2b56..e6c3a08 100644 --- a/pkg/service/base.go +++ b/pkg/service/base.go @@ -1,7 +1,7 @@ package service import ( - "fonchain-fiee/pkg/service/bundle/common" + "fonchain-fiee/pkg/common" "github.com/gin-gonic/gin" "net/http" ) diff --git a/pkg/service/bundle/common/msg.go b/pkg/service/bundle/common/msg.go index c5a064e..941bdc5 100644 --- a/pkg/service/bundle/common/msg.go +++ b/pkg/service/bundle/common/msg.go @@ -29,34 +29,31 @@ const ( ErrorUploadFile = "上传文件失败" ) -// 套餐信息与订单信息 -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", - } -) +/*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", +}*/