Commit Graph

23 Commits

Author SHA1 Message Date
BXY
86bdac8b72 feat: enhance product_category table with global taxonomy structure and additional fields 2026-10-09 09:36:28 +08:00
BXY
e70510682a feat: add platform category identifiers and validation in product category handling 2026-10-09 09:22:12 +08:00
BXY
6f6887f0d2 Refactor product category schema and server logic
- Updated the product_category table schema to remove tenant_id and store_id, and added new fields: priority, rule_id, category_type, channel_list, has_children, has_prop_required, extra, cert_status_code, cert_status_pass, and cert_status_msg.
- Modified SQL scripts to drop and recreate product_category and product_category_bindings tables with the new schema.
- Refactored the ProductServer methods to remove store scope requirements and adjust to the new product category structure.
- Updated error handling and validation in Create, Update, and Delete product category methods.
- Added new patch handling for product categories to accommodate the updated schema.
- Introduced a new SQL script to rebuild the standard product category tree, ensuring a clean migration to the new structure.
2026-10-08 14:56:54 +08:00
BXY
2776c4d55c feat: add product category validation and update product list filter to use ProductCategoryID 2026-10-07 19:40:07 +08:00
BXY
91f307ce19 feat: add storefront category visibility check and related error handling 2026-09-29 18:30:19 +08:00
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
0d533f0196 feat: add product list filtering capabilities and corresponding validation 2026-09-24 14:31:59 +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