chore add core rust project files and diesel migrations

Track required workspace crates, scripts, and historical diesel migrations so the repository contains the complete runnable backend baseline.

Made-with: Cursor
This commit is contained in:
2026-04-23 17:20:01 +08:00
parent c843fecbce
commit 44c320d8fa
392 changed files with 11786 additions and 0 deletions
+47
View File
@@ -0,0 +1,47 @@
#UC_DB_URL=postgres://alchemy:ngK_D8WV!Wi_@bj-postgres-qe58e4r0.sql.tencentcdb.com:28154/htyuc_moicen
#WS_DB_URL=postgres://alchemy:ngK_D8WV!Wi_@bj-postgres-qe58e4r0.sql.tencentcdb.com:28154/htyws_moicen
#DATABASE_URL=postgres://alchemy:ngK_D8WV!Wi_@bj-postgres-qe58e4r0.sql.tencentcdb.com:28154/htyuc_moicen
UC_DB_URL=postgres://postgres:postgres@localhost:5432/htyuc_moicen
WS_DB_URL=postgres://postgres:postgres@localhost:5432/htyws_moicen
KC_DB_URL=postgres://postgres:postgres@localhost:5432/htykc_moicen
DATABASE_URL=postgres://postgres:postgres@localhost:5432/htykc_moicen
ADMIN_DOMAIN=admin.moicen.com
EXPIRATION_DAYS=1
JWT_KEY=0xCAFEBABE0xCAFEBABE0xCAFEBABE0xCAFEBABE0xCAFEBABE0xCAFEBABE
LOGGER_LEVEL=DEBUG
MUSIC_ROOM_MINI_DOMAIN=music-room.moicen.com
MUSIC_ROOM_MINI_URL=https://music-room.moicen.com
MUSIC_ROOM_WX_MINI_ID=wx3b02c886bb554012
MUSIC_ROOM_WX_MINI_SECRET=b78a2a3d6b66634993a919a4293d1675
POOL_SIZE=20
REDIS_HOST=localhost
REDIS_PORT=6379
SKIP_POST_LOGIN=false
SKIP_REGISTRATION=false
SKIP_WX_PUSH=false
TS_DOMAIN=ts.moicen.com
UC_PORT=3000
UC_URL=http://127.0.0.1:3000/api/v1/uc
UPYUN_OPERATOR=moicen
UPYUN_PASSWORD=NyJ51zRwFApY9Wo9EHJMrb8GI9YtvpVN
WS_URL=http://127.0.0.1:3000/api/v1/ws
WS_PORT=3001
KC_URL=http://127.0.0.1:3002/api/v1/kc
KC_PORT=3002
#WX_MP_DOMAIN=wx.alchemy-studio.cn
#WX_MP_ID=wxfd3381693a9a3e70
#WX_MP_SECRET=5a221a62baf1868a495345da1673732f
WX_MSG_REJECT_REGISTER="LcOF7w9k6gCunk2iY5myjxrDyo832dsU5_xJmEicZCs"
WX_MSG_STUDENT_REGISTER="KIHfyzqTU6IiCuDfrvGfz9112eKWv4FDOv43wyxcsJc"
WX_MSG_STUDENT_REGISTER_SUCCESS="uYl6_GGDKJaXY8VgIQlrpPZASOW8lIlHgDYmtE2Mgp8"
WX_MSG_TEACHER_REGISTER="KIHfyzqTU6IiCuDfrvGfz9112eKWv4FDOv43wyxcsJc"
WX_MSG_TEACHER_REGISTER_SUCCESS="jGmcJZB--IAlvKS3D0a5elvdrx_X6ImAMlvmjrg254A"
NGX_URL=https://admin.moicen.com/api/ngx
print_debug=true
+15
View File
@@ -0,0 +1,15 @@
# 任务库名对齐 Java -DDBNAME=htytask_moicenhtyproc 进程不连库
TS_DATABASE_URL=postgres://postgres:postgres@localhost:5432/htytask_moicen
TS_URL=http://127.0.0.1:3003
HTYUC_URL=http://127.0.0.1:3000
HTYWS_URL=http://127.0.0.1:3001
AI_URL=https://ai.moicen.com
TS_DOMAIN=ts.moicen.com
NGX_URL=https://admin.moicen.com/api/ngx
REDIS_HOST=localhost
REDIS_PORT=6379
LOGGER_LEVEL=DEBUG
PROC_PORT=3004
WAIT_SEC=5
+19
View File
@@ -0,0 +1,19 @@
# htyts — 对齐 task_server/scripts/moicen/run_ts.sh-DDBNAME=htytask_moicen
TS_DATABASE_URL=postgres://postgres:postgres@localhost:5432/htytask_moicen
DATABASE_URL=postgres://postgres:postgres@localhost:5432/htytask_moicen
JWT_KEY=0xCAFEBABE0xCAFEBABE0xCAFEBABE0xCAFEBABE0xCAFEBABE0xCAFEBABE
POOL_SIZE=20
REDIS_HOST=localhost
REDIS_PORT=6379
TS_DOMAIN=ts.moicen.com
HTYUC_URL=http://127.0.0.1:3000
HTYKC_URL=http://127.0.0.1:3002
TS_PORT=3003
TOKEN_VERIFY=true
AUTH_CHECKING=true
EXP_DAYS=1
ZOMBIE_MIN=30
LOGGER_LEVEL=DEBUG
+47
View File
@@ -0,0 +1,47 @@
#UC_DB_URL=postgres://alchemy:ngK_D8WV!Wi_@bj-postgres-qe58e4r0.sql.tencentcdb.com:28154/htyuc_moicen
#WS_DB_URL=postgres://alchemy:ngK_D8WV!Wi_@bj-postgres-qe58e4r0.sql.tencentcdb.com:28154/htyws_moicen
#DATABASE_URL=postgres://alchemy:ngK_D8WV!Wi_@bj-postgres-qe58e4r0.sql.tencentcdb.com:28154/htyuc_moicen
UC_DB_URL=postgres://postgres:postgres@localhost:5432/htyuc_moicen
WS_DB_URL=postgres://postgres:postgres@localhost:5432/htyws_moicen
KC_DB_URL=postgres://postgres:postgres@localhost:5432/htykc_moicen
DATABASE_URL=postgres://postgres:postgres@localhost:5432/htyuc_moicen
ADMIN_DOMAIN=admin.moicen.com
EXPIRATION_DAYS=1
JWT_KEY=0xCAFEBABE0xCAFEBABE0xCAFEBABE0xCAFEBABE0xCAFEBABE0xCAFEBABE
LOGGER_LEVEL=DEBUG
MUSIC_ROOM_MINI_DOMAIN=music-room.moicen.com
MUSIC_ROOM_MINI_URL=https://music-room.moicen.com
MUSIC_ROOM_WX_MINI_ID=wx3b02c886bb554012
MUSIC_ROOM_WX_MINI_SECRET=b78a2a3d6b66634993a919a4293d1675
POOL_SIZE=20
REDIS_HOST=localhost
REDIS_PORT=6379
SKIP_POST_LOGIN=false
SKIP_REGISTRATION=false
SKIP_WX_PUSH=false
TS_DOMAIN=ts.moicen.com
UC_PORT=3000
UC_URL=http://127.0.0.1:3000/api/v1/uc
UPYUN_OPERATOR=moicen
UPYUN_PASSWORD=NyJ51zRwFApY9Wo9EHJMrb8GI9YtvpVN
WS_URL=http://127.0.0.1:3000/api/v1/ws
WS_PORT=3001
KC_URL=http://127.0.0.1:3002/api/v1/kc
KC_PORT=3002
#WX_MP_DOMAIN=wx.alchemy-studio.cn
#WX_MP_ID=wxfd3381693a9a3e70
#WX_MP_SECRET=5a221a62baf1868a495345da1673732f
WX_MSG_REJECT_REGISTER="LcOF7w9k6gCunk2iY5myjxrDyo832dsU5_xJmEicZCs"
WX_MSG_STUDENT_REGISTER="KIHfyzqTU6IiCuDfrvGfz9112eKWv4FDOv43wyxcsJc"
WX_MSG_STUDENT_REGISTER_SUCCESS="uYl6_GGDKJaXY8VgIQlrpPZASOW8lIlHgDYmtE2Mgp8"
WX_MSG_TEACHER_REGISTER="KIHfyzqTU6IiCuDfrvGfz9112eKWv4FDOv43wyxcsJc"
WX_MSG_TEACHER_REGISTER_SUCCESS="jGmcJZB--IAlvKS3D0a5elvdrx_X6ImAMlvmjrg254A"
NGX_URL=https://admin.moicen.com/api/ngx
print_debug=true
+35
View File
@@ -0,0 +1,35 @@
#UC_DB_URL=postgres://alchemy:ngK_D8WV!Wi_@bj-postgres-qe58e4r0.sql.tencentcdb.com:28154/htyuc_moicen
#WS_DB_URL=postgres://alchemy:ngK_D8WV!Wi_@bj-postgres-qe58e4r0.sql.tencentcdb.com:28154/htyws_moicen
#DATABASE_URL=postgres://alchemy:ngK_D8WV!Wi_@bj-postgres-qe58e4r0.sql.tencentcdb.com:28154/htyws_moicen
UC_DB_URL=postgres://postgres:postgres@localhost:5432/htyuc_moicen
WS_DB_URL=postgres://postgres:postgres@localhost:5432/htyws_moicen
KC_DB_URL=postgres://postgres:postgres@localhost:5432/htykc_moicen
DATABASE_URL=postgres://postgres:postgres@localhost:5432/htyws_moicen
JWT_KEY=0xCAFEBABE0xCAFEBABE0xCAFEBABE0xCAFEBABE0xCAFEBABE0xCAFEBABE
LOGGER_LEVEL=DEBUG
POOL_SIZE=20
REDIS_HOST=localhost
REDIS_PORT=6379
SKIP_POST_LOGIN=false
SKIP_REGISTRATION=false
SKIP_WX_PUSH=false
UC_PORT=3000
UC_URL=http://127.0.0.1:3000/api/v1/uc
WS_PORT=3001
WS_URL=/api/v1/ws
KC_URL=http://127.0.0.1:3002/api/v1/kc
KC_PORT=3002
WX_MSG_PIYUE_DONE="mP2JdR2HMfz_7P-HYSJJADzjAb08qH7WzlR3CGnMKwI"
# 创建计划
WX_MSG_PUSH_MSG_STUDENT="pJH8umvYm8lftDpXNdBSkeKOHQXGtlFISh6wAEgHwPQ"
# 添加练习
WX_MSG_PUSH_MSG_TEACHER="1G4sPsWMYrdUEgqXi5mfMP1utpQ0xVSBpIx7ZBTF0MA"
# 评论
WX_MSG_COMMENT="MYrBrHZWE6IQPtOQl7mIzCoSv9fn8SIw9DT--xvkIMI"
NGX_URL=https://admin.moicen.com/api/ngx