Commit Graph

17 Commits

Author SHA1 Message Date
BXY
c258915f5b feat: introduce product category management
- Added SQL scripts to recreate product category and catalog tables, including necessary indexes and comments.
- Implemented repository for product category management, including CRUD operations and binding/unbinding products to categories.
- Developed gRPC server methods for creating, retrieving, listing, updating, and deleting product categories.
- Added error handling for various scenarios, including version conflicts and category constraints.
- Implemented helper functions for converting between internal representations and gRPC messages.
2026-09-24 18:28:18 +08:00
BXY
504c88fa40 feat: add supply price to SKU records and update related database schema 2026-09-24 15:27:21 +08:00
BXY
7ab1dbb85c feat: add suppliers and brands management to product catalog
- Introduced new tables for suppliers and brands in the product schema with necessary fields and constraints.
- Implemented CRUD operations for suppliers and brands in the catalog master server.
- Added validation for supplier and brand references in product creation and update processes.
- Updated SQL scripts to recreate product tables with new suppliers and brands structure.
- Enhanced permissions for the new tables in the database.
2026-09-23 16:34:15 +08:00
robinj0726
cf068fe610 feat(product): implement inventory adjustment functionality with confirm and release actions 2026-09-05 15:22:16 +08:00
robinj0726
bfdbe0361d refactor(product): rename available_quantity to stock_quantity across the codebase 2026-09-05 13:49:11 +08:00
BXY
9e9c66fc42 feat: 统一商品、客户、活动页、商品分类页的状态与类型为数据库数值 2026-08-12 18:42:01 +08:00
BXY
d75d6e2112 feat(category): add batch category tree update with optimistic locking 2026-08-12 09:35:46 +08:00
BXY
bec6d5a69a feat(product): support product lifecycle updates and archived SKU replacement 2026-08-06 11:09:46 +08:00
BXY
077ac90438 feat(product): add paginated admin product listing 2026-08-05 17:04:59 +08:00
BXY0414
68d39e75f8 feat(product): migrate category images to image_ids array 2026-07-16 11:38:50 +08:00
robinj0726
bbe9ee0be2 Merge remote-tracking branch 'origin/dev1' into phase1
# Conflicts:
#	internal/repository/product_repository.go
#	scripts/sql/recreate-product-tables.sql
2026-07-13 18:57:06 +08:00
robinj0726
6a4f7ad5fe Merge remote-tracking branch 'origin/dev1' into phase1
# Conflicts:
#	internal/repository/product_repository.go
2026-07-13 17:21:28 +08:00
BXY0414
a7d3929855 feat(product): implement category/group APIs and inventory snowflake IDs 2026-07-13 15:01:08 +08:00
BXY0414
1c89c4a11f feat(product): switch product IDs to application snowflake generation 2026-07-10 16:31:07 +08:00
BXY0414
42419db604 调整创建商品字段、SKU规格整理和入库逻辑 2026-07-10 13:03:08 +08:00
robinj0726
da065d097f feat: add spu_no and sku_no fields to product_item_inventory table for enhanced inventory tracking 2026-07-10 12:29:46 +08:00
robinj0726
114c9578bb feat: add SQL script for recreating product domain tables with necessary constraints and triggers 2026-07-07 18:28:31 +08:00