diff --git a/trading_assistant_api/services/country/Dockerfile b/trading_assistant_api/services/country/Dockerfile new file mode 100644 index 0000000..e69de29 diff --git a/trading_assistant_api/services/country/api/user_api.go b/trading_assistant_api/services/country/api/user_api.go new file mode 100644 index 0000000..e69de29 diff --git a/trading_assistant_api/services/country/conf/config.go b/trading_assistant_api/services/country/conf/config.go new file mode 100644 index 0000000..e69de29 diff --git a/trading_assistant_api/services/country/dao/user_dao.go b/trading_assistant_api/services/country/dao/user_dao.go new file mode 100644 index 0000000..e69de29 diff --git a/trading_assistant_api/deploy/postgres/init.sql b/trading_assistant_api/services/country/deploy/postgres/init.sql similarity index 100% rename from trading_assistant_api/deploy/postgres/init.sql rename to trading_assistant_api/services/country/deploy/postgres/init.sql diff --git a/trading_assistant_api/deploy/redis/redis.conf b/trading_assistant_api/services/country/deploy/redis/redis.conf similarity index 100% rename from trading_assistant_api/deploy/redis/redis.conf rename to trading_assistant_api/services/country/deploy/redis/redis.conf diff --git a/trading_assistant_api/services/country/docker-compose.yml b/trading_assistant_api/services/country/docker-compose.yml new file mode 100644 index 0000000..e69de29 diff --git a/trading_assistant_api/services/country/main.go b/trading_assistant_api/services/country/main.go new file mode 100644 index 0000000..e69de29 diff --git a/trading_assistant_api/services/country/model/user_model.go b/trading_assistant_api/services/country/model/user_model.go new file mode 100644 index 0000000..e69de29 diff --git a/trading_assistant_api/services/user/Dockerfile b/trading_assistant_api/services/user/Dockerfile new file mode 100644 index 0000000..e69de29 diff --git a/trading_assistant_api/services/user/api/user_api.go b/trading_assistant_api/services/user/api/user_api.go new file mode 100644 index 0000000..e69de29 diff --git a/trading_assistant_api/services/user/conf/config.go b/trading_assistant_api/services/user/conf/config.go new file mode 100644 index 0000000..e69de29 diff --git a/trading_assistant_api/services/user/dao/user_dao.go b/trading_assistant_api/services/user/dao/user_dao.go new file mode 100644 index 0000000..e69de29 diff --git a/trading_assistant_api/services/user/deploy/postgres/init.sql b/trading_assistant_api/services/user/deploy/postgres/init.sql new file mode 100644 index 0000000..602418a --- /dev/null +++ b/trading_assistant_api/services/user/deploy/postgres/init.sql @@ -0,0 +1,4 @@ +-- PostgresSQL全局初始化脚本 +-- 所有业务公共建库/建表语句写在这里,单独业务表建议在各自业务中处理 +CREATE DATABASE IF NOT EXISTS monorepo; +\c monorepo; diff --git a/trading_assistant_api/services/user/deploy/redis/redis.conf b/trading_assistant_api/services/user/deploy/redis/redis.conf new file mode 100644 index 0000000..5ecb4c1 --- /dev/null +++ b/trading_assistant_api/services/user/deploy/redis/redis.conf @@ -0,0 +1,8 @@ +# Redis基础配置 +bind 0.0.0.0 +protected-mode no +port 6379 +daemonize no +requirepass 123456 +appendonly yes +appendfsync everysec diff --git a/trading_assistant_api/services/user/docker-compose.yml b/trading_assistant_api/services/user/docker-compose.yml new file mode 100644 index 0000000..e69de29 diff --git a/trading_assistant_api/services/user/main.go b/trading_assistant_api/services/user/main.go new file mode 100644 index 0000000..e69de29 diff --git a/trading_assistant_api/services/user/model/user_model.go b/trading_assistant_api/services/user/model/user_model.go new file mode 100644 index 0000000..e69de29