From 2c571c3f90177ca24fe1c351f16413f7f5f4d372 Mon Sep 17 00:00:00 2001 From: zzw <1464003642@qq.com> Date: Thu, 22 Oct 2026 10:13:55 +0800 Subject: [PATCH] feat: store build --- .gitea/workflows/ci.yml | 3 ++- services/analysis/.gitignore | 3 +++ .../analysis/internal/callback/process.go | 2 +- services/analysis/run.toml | 21 +++++++++++++++++++ services/store/internal/logic/createLogic.go | 4 ++-- services/ws/.gitignore | 3 +++ 6 files changed, 32 insertions(+), 4 deletions(-) create mode 100644 services/analysis/.gitignore create mode 100644 services/ws/.gitignore diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index f034865..2836b7c 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -26,7 +26,7 @@ jobs: - name: Detect changes id: filter run: | - SERVICES="bff product admin user ad chore order express sale wecom task equipment record payment factory message support percutaneous water" + SERVICES="bff product admin user ad chore order express sale wecom task equipment record payment factory message support percutaneous water store" pattern_for() { case "$1" in @@ -100,6 +100,7 @@ jobs: - support - percutaneous - water + - store env: BUILD_LIST: ${{ needs.changes.outputs.build_list }} NAME: lone/${{ matrix.name }} diff --git a/services/analysis/.gitignore b/services/analysis/.gitignore new file mode 100644 index 0000000..6f6f4a4 --- /dev/null +++ b/services/analysis/.gitignore @@ -0,0 +1,3 @@ +run.toml +tmp +etc/analysis.yaml \ No newline at end of file diff --git a/services/analysis/internal/callback/process.go b/services/analysis/internal/callback/process.go index ab15bc7..6ef8c23 100644 --- a/services/analysis/internal/callback/process.go +++ b/services/analysis/internal/callback/process.go @@ -56,7 +56,7 @@ func ProcessUpload(ctx context.Context, payload analysisoss.CallbackPayload) err } if utils.GetConfigInt("switch.facepp") == utils.NumberOne { - logx.WithContext(ctx).Infof("facepp switch on but not migrated yet, skip task_id=%s", payload.TaskId) + logx.WithContext(ctx).Infof("facepp skip task_id=%s", payload.TaskId) } if utils.GetConfigInt("switch.analysis") == utils.NumberOne { diff --git a/services/analysis/run.toml b/services/analysis/run.toml index 613160a..5c1741d 100644 --- a/services/analysis/run.toml +++ b/services/analysis/run.toml @@ -69,12 +69,33 @@ expireSeconds = 3600 callbackUrl = "https://services-test.ailuowan.com/api/v1/oss/callback" +[milvus] + milvus_host = 'milvus' + milvus_grpc_port = 19530 + milvus_http_port = 9091 + etcd_port = 2379 + minio_port = 9000 + [services] user = "user-service" chore = "chore-service" store = "store-service" equipment = "equipment-service" + skin_py_analysis_host = "http://172.19.74.222:8000" + skin_py_analysis_path = "/api/v1/analysis/submit" + + skin_py_face_host = "http://skin-py-insightface:8072" + skin_py_face_path = "/api/v1/face/extract" + +[facepp] + api_key = "OeM6mTOMz1syfybKB2YyGCG0g2yk8r5L" + api_secret = "1Ab4N5H4659n_d50-UP9LbJquRnT0cUx" + + train_image_path = "/data/facepp/train/images" + train_json_path = "/data/facepp/train/json" + train_label_path = "/data/facepp/train/labels" + [switch] wechat = 1 facepp = 1 diff --git a/services/store/internal/logic/createLogic.go b/services/store/internal/logic/createLogic.go index 6e2a7d8..43d9004 100644 --- a/services/store/internal/logic/createLogic.go +++ b/services/store/internal/logic/createLogic.go @@ -124,7 +124,7 @@ func (l *CreateLogic) Create(in *store.CreateRequest) (*store.Response, error) { func (l *CreateLogic) getSaleInfo(id int64) (int64, utils.Status) { cli, err := svc.GetRpcClient(l.svcCtx.SaleName) if err != nil { - logx.Errorf("get order err: %v", err) + logx.Errorf("get sale service err: %v", err) return utils.NumberZero, utils.ErrorInternalServer } @@ -132,7 +132,7 @@ func (l *CreateLogic) getSaleInfo(id int64) (int64, utils.Status) { w := sale.InfoReq{Id: id} info, err := client.InfoInternal(context.Background(), &w) if err != nil { - logx.Errorf("get order err: %v", err) + logx.Errorf("get sale info err: %v", err) return utils.NumberZero, utils.ErrorInternalServer } return info.GroupId, utils.Ok diff --git a/services/ws/.gitignore b/services/ws/.gitignore new file mode 100644 index 0000000..9ca87b1 --- /dev/null +++ b/services/ws/.gitignore @@ -0,0 +1,3 @@ +run.toml +tmp +etc/ws.yaml \ No newline at end of file