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"}