feat: 更新构建和推送工作流,添加 Node.js 和 Go 环境设置,优化 Docker 镜像构建流程

fix: 修复 order-api.yaml 中的格式问题
refactor: 在多个逻辑文件中重新排序导入语句,确保一致性
This commit is contained in:
wwweww
2026-02-28 19:12:42 +08:00
parent 19cc7a778c
commit 4c823c2188
9 changed files with 88 additions and 79 deletions
-1
View File
@@ -16,4 +16,3 @@ PlayerRpcConf:
ShopRpcConf:
Target: k8s://juwan/shop-rpc-svc:8080
+1 -1
View File
@@ -4,10 +4,10 @@
package svc
import (
"juwan-backend/app/order/api/internal/config"
"juwan-backend/app/order/rpc/orderservice"
"juwan-backend/app/player/rpc/playerservice"
"juwan-backend/app/shop/rpc/shopservice"
"juwan-backend/app/order/api/internal/config"
"github.com/zeromicro/go-zero/zrpc"
)
@@ -5,11 +5,12 @@ import (
"errors"
"time"
"github.com/shopspring/decimal"
"juwan-backend/app/order/rpc/internal/svc"
"juwan-backend/app/order/rpc/pb"
"juwan-backend/app/snowflake/rpc/snowflake"
"github.com/shopspring/decimal"
"github.com/zeromicro/go-zero/core/logx"
)
+2 -1
View File
@@ -5,9 +5,10 @@ import (
"errors"
"time"
"github.com/shopspring/decimal"
"juwan-backend/app/order/rpc/internal/models"
"juwan-backend/app/order/rpc/pb"
"github.com/shopspring/decimal"
)
func parseDecimal(v string) (decimal.Decimal, error) {
@@ -3,8 +3,8 @@ package logic
import (
"context"
"juwan-backend/app/order/rpc/internal/svc"
"juwan-backend/app/order/rpc/internal/models/orderstatelogs"
"juwan-backend/app/order/rpc/internal/svc"
"juwan-backend/app/order/rpc/pb"
"github.com/zeromicro/go-zero/core/logx"
@@ -4,10 +4,11 @@ import (
"context"
"errors"
"github.com/shopspring/decimal"
"juwan-backend/app/order/rpc/internal/svc"
"juwan-backend/app/order/rpc/pb"
"github.com/shopspring/decimal"
"github.com/zeromicro/go-zero/core/logx"
)
@@ -22,7 +22,7 @@ func (Orders) Annotations() []schema.Annotation {
entsql.Annotation{
Table: "orders",
Checks: map[string]string{
"chk_order_status": "status IN ('pending_payment', 'pending_accept', 'in_progress', 'pending_close', 'pending_review', 'disputed', 'completed', 'cancelled')",
"chk_order_status": "status IN ('pending_payment', 'pending_accept', 'in_progress', 'pending_close', 'pending_review', 'disputed', 'completed', 'cancelled')",
"chk_price_positive": "total_price > 0",
},
},
+4 -3
View File
@@ -5,15 +5,16 @@ import (
"strings"
"time"
"ariga.io/entcache"
"entgo.io/ent/dialect/sql"
"github.com/zeromicro/go-zero/core/logx"
"juwan-backend/app/order/rpc/internal/config"
"juwan-backend/app/order/rpc/internal/models"
"juwan-backend/app/snowflake/rpc/snowflake"
"juwan-backend/common/redisx"
"juwan-backend/common/snowflakex"
"juwan-backend/pkg/adapter"
"ariga.io/entcache"
"entgo.io/ent/dialect/sql"
"github.com/zeromicro/go-zero/core/logx"
)
type ServiceContext struct {