From 3ea990ebdcaf7ad987ac50f7b4c9875afafbc88d Mon Sep 17 00:00:00 2001 From: zhouyonggao <1971162852@qq.com> Date: Thu, 27 Nov 2025 17:02:05 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20=E6=9B=B4=E6=96=B0README=E6=96=87?= =?UTF-8?q?=E6=A1=A3=E5=B9=B6=E6=B7=BB=E5=8A=A0=E6=9C=8D=E5=8A=A1=E5=90=AF?= =?UTF-8?q?=E5=8A=A8=E8=AF=B4=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 添加详细的后端服务启动步骤、前端访问方式和技术栈说明 更新项目结构描述和日志文件内容 --- README.md | 44 +++++++++++++++++++++++++++++++++- server/log/server-20251127.log | 7 ++++++ 2 files changed, 50 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index f92d5ba..b163de3 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,45 @@ # MarketingSystemDataTool -营销系统、易码通数据工具 \ No newline at end of file +营销系统、易码通数据工具 + +## 服务启动方式 + +### 后端服务 + +1. **编译服务**(如未编译): + ```bash + cd server + go build -o server ./cmd/server/main.go + ``` + +2. **启动服务**: + ```bash + cd server + ./server + ``` + +3. **服务配置**: + - 配置文件:`server/config.yaml` + - 默认端口:8077 + - 可通过环境变量覆盖配置 + +### 前端访问 + +服务启动后,通过浏览器访问: +``` +http://localhost:8077 +``` + +## 技术栈 + +- 后端:Go 1.21 +- 前端:Vue 3 + Element Plus(通过 CDN 引入) +- 数据库:MySQL +- 导出格式:CSV、Excel + +## 项目结构 + +- `server/`:Go 服务端代码 +- `web/`:前端页面与静态资源 +- `config/`:非敏感配置 +- `scripts/`:开发与运维脚本 \ No newline at end of file diff --git a/server/log/server-20251127.log b/server/log/server-20251127.log index dc8d834..ff19f3c 100644 --- a/server/log/server-20251127.log +++ b/server/log/server-20251127.log @@ -1,3 +1,10 @@ connecting YMT MySQL: 47.97.27.195:3306 db merketing user root connecting Marketing MySQL: 192.168.6.92:3306 db market user root Error 1045 (28000): Access denied for user 'root'@'117.175.169.61' (using password: YES) +connecting YMT MySQL: 47.97.27.195:3306 db merketing user root +connecting Marketing MySQL: 192.168.6.92:3306 db market user root +YMT DSN: root:lansexiongdi6,@tcp(47.97.27.195:3306)/merketing?parseTime=True&loc=Local&charset=utf8mb4 +Marketing DSN: root:lansexiongdi@tcp(192.168.6.92:3306)/market?parseTime=True&loc=Local&charset=utf8mb4 +server listening on :8077 +{"bytes":2075,"duration_ms":53,"kind":"access","level":"INFO","method":"","path":"","query":"","remote":"","status":200,"trace_id":"","ts":"2025-11-27T17:01:19+08:00"} +{"bytes":2075,"duration_ms":46,"kind":"access","level":"INFO","method":"","path":"","query":"","remote":"","status":200,"trace_id":"","ts":"2025-11-27T17:01:28+08:00"}