Rogee 683965ae39 feat: Refactor order snapshot handling and introduce structured snapshot types
- Added new structured snapshot types for orders and order items to improve data integrity and clarity.
- Updated the Order and OrderItem models to use the new JSONType for snapshots.
- Refactored tests to accommodate the new snapshot structure, ensuring compatibility with legacy data.
- Enhanced the OrdersSnapshot struct to support multiple snapshot types and maintain backward compatibility.
- Introduced new fields for order items and orders to capture detailed snapshot information for auditing and historical display.
2025-12-22 21:11:33 +08:00
2025-12-15 17:55:32 +08:00
2025-12-17 16:11:30 +08:00
2025-12-16 22:40:31 +08:00
2025-12-15 17:55:32 +08:00
2025-12-15 17:55:32 +08:00
2025-12-17 09:32:05 +08:00
2025-12-15 17:55:32 +08:00

QuyUn v2多租户版本

实现约定以 specs/ 为准:

  • 路由前缀:/t/:tenant_code/...API/t/:tenant_code/v1Admin/t/:tenant_code/adminUser/t/:tenant_code/
  • 数据库:见 specs/DB.sql(后端迁移:backend/database/migrations/00001_init_multi_tenant.sql

开发(后端)

backend/

  • 启动依赖:docker compose up -d postgres redis
  • 运行迁移:env GOCACHE=$PWD/.gocache GOTMPDIR=$PWD/.gotmp go run . migrate up
  • 启动服务:env GOCACHE=$PWD/.gocache GOTMPDIR=$PWD/.gotmp go run . serve

注意:当前 API 仅做了路由骨架(大部分返回 501用于前后端联调与路由/租户前缀验证。

开发(前端)

  • Adminfrontend/admin/
  • Userfrontend/user/
  • Super Adminfrontend/superadmin/(访问:/super/API/super/v1
    • 角色类型管理:/super/v1/roles
    • 租户统计:/super/v1/statistics/super/v1/tenants

两端均会从 location.pathname 推导 tenant_code,并设置:

  • Admin router base/t/<tenant_code>/admin/
  • User router base/t/<tenant_code>/
  • API base/t/<tenant_code>/v1
Description
No description provided
Readme 7.4 MiB
Languages
Vue 41.3%
Go 34.8%
JavaScript 21.9%
SCSS 0.9%
PLpgSQL 0.3%
Other 0.7%