Commit Graph

72 Commits

Author SHA1 Message Date
BXY
bc77fe942c feat: enhance product status handling and error messages for sold-out state 2026-10-20 11:58:33 +08:00
BXY
087d42fb6e feat: add presale configuration and delivery limits to product model and migrations 2026-10-19 12:05:22 +08:00
BXY
feb1364be6 feat: implement multi-level catalog category tree with nested children support 2026-10-16 18:11:17 +08:00
BXY
4e010a6476 feat: add category_properties field to products and implement group creation with child groups 2026-10-10 18:27:19 +08:00
BXY
c2d0aa604f feat: allow non-unique SKU business codes and optional SPU codes; update related database constraints 2026-10-10 13:01:19 +08:00
BXY
d4ef3b5a57 feat: add GetProductTotalSoldQuantity method to track total sold quantity for products 2026-10-09 19:29:22 +08:00
BXY
339558075e feat: add platform category ID and parent category ID columns to product_category table 2026-10-09 09:25:38 +08:00
BXY
e70510682a feat: add platform category identifiers and validation in product category handling 2026-10-09 09:22:12 +08:00
BXY
e5d0075f37 feat: enhance product category listing with hierarchical structure and optimized queries 2026-10-08 19:15:52 +08:00
BXY
cb81c23830 feat: add product category handling in product repository and server logic 2026-10-08 19:05:09 +08:00
BXY
155ab11d9f fix: update productCategoryColumns to include table alias for clarity 2026-10-08 18:21:12 +08:00
BXY
ee3c935f70 feat: implement postgresInt32Array type for scanning PostgreSQL INTEGER[] values 2026-10-08 17:17:22 +08:00
BXY
9567b967b2 feat: add index for active product categories by parent and name 2026-10-08 15:06:22 +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
robinj0726
cdc47d888f feat: implement product group update and delete functionalities 2026-10-02 01:23:36 +08:00
robinj0726
f28df52a12 feat: implement freight template management and scheduled sales promotion 2026-10-02 00:59:46 +08:00
robinj0726
947a1dea7c feat: add catalog category list filter and batch product writes
Support AND category/group filtering and store-scoped batch status, delete, absolute price, and replace-group with a 100-item cap.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-01 23:47:53 +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
bb82460117 feat: implement ListProductSKUs to return current SKU stock projections for a product 2026-09-23 20:23:15 +08:00
BXY
9c31d0e869 feat: add category and group name uniqueness checks with corresponding error handling 2026-09-23 18:15:26 +08:00
BXY
6e7449646c feat: update ListCategoryProducts to return product IDs and adjust related methods 2026-09-23 17:41:39 +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
BXY
8643103846 feat: add CampaignID to CategoryRecord and update related methods for category handling 2026-09-23 15:15:48 +08:00
BXY
4f8a99010a feat: update ListCategoryProducts to support target node type for category and group 2026-09-23 14:18:26 +08:00
BXY
0b848372f3 feat: add ProductCount to CategoryRecord and update group node serialization 2026-09-23 13:50:35 +08:00
BXY
d1b8aa2996 feat: add AddProductsToCategory method and update AddProductsToGroup for category and group bindings 2026-09-23 13:35:14 +08:00
BXY
cd94e0d0d2 feat: add support for product group bindings in product repository and server 2026-09-23 13:00:33 +08:00
robinj0726
45b177d2b4 feat(store): implement TransferProductStore method for moving products between stores 2026-09-14 19:53:03 +08:00
robinj0726
604dfeb06c feat: implement store scope validation and enforce it in product repository
- Added StoreScope struct with TenantID and StoreID fields.
- Introduced ErrStoreScopeRequired to handle missing store scope.
- Implemented Valid method to check if both TenantID and StoreID are present.
- Created requireWriteScope function to validate store scope before write operations.
- Updated product repository methods to require store scope for various operations.
- Added tests for StoreScope validation and requirement enforcement.
2026-09-13 00:12:44 +08:00
robinj0726
a8a3464484 feat(store): implement StoreScope for multi-tenant support and update product methods to require store context 2026-09-12 19:02:07 +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
robinj0726
e2df9fd2e7 feat(product): add GetProductBySKU method and corresponding server handler with validation 2026-09-05 00:05:50 +08:00
BXY
50ef666baf feat(product): 新增前台商品关键字搜索能力 2026-09-02 17:30:02 +08:00
robinj0726
cd60a19cdf fix: adapt product status unspecified enum 2026-09-01 11:33:41 +08:00
robinj0726
f48a3bce2e feat(product): remove CategoryTreeDiagnostics and related logging for empty category tree responses 2026-08-31 18:02:57 +08:00
robinj0726
71ca5b809f feat(product): add diagnostics for empty category tree responses and logging 2026-08-31 15:10:18 +08:00
BXY
891bae4742 feat(product): 支持商品多叶子分类与分类树删除 2026-08-14 17:08:14 +08:00
BXY
e7fdf6cc19 feat(product): 分类商品列表返回库存汇总 2026-08-13 17:44:14 +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
0186633d73 feat(product): 实现购物车商品批量查询接口 2026-08-11 14:58:51 +08:00
robinj0726
6856553440 feat(product): add CountProducts method to retrieve aggregate product counts by lifecycle status 2026-08-06 12:40:36 +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
cccbce7bc5 feat(product): 支持批量移除分类或分组中的商品 2026-07-20 15:13:59 +08:00