Commit Graph

96 Commits

Author SHA1 Message Date
BXY
6c4170f1e1 feat: implement freight charge update functionality for products 2026-10-27 11:09:45 +08:00
BXY
c48f722137 feat: add brands handling to supplier records and update proto conversion 2026-10-26 18:59:50 +08:00
BXY
099d6eeab0 feat: implement product category path handling and enhance product category retrieval 2026-10-26 14:22:21 +08:00
BXY
0a58b5e332 feat: enhance product creation error handling and validation for brand and supplier references 2026-10-26 11:45:21 +08:00
BXY
47539d663d feat: enhance product metadata handling with category, group, and brand summaries 2026-10-26 11:14:47 +08:00
BXY
7ce922d440 feat: update batch delete logic to use product ID placeholders 2026-10-26 10:02:14 +08:00
robinj0726
6074355b39 feat: add priority column to product_category and update related indexes 2026-10-24 21:29:30 +08:00
BXY
791e09b35b feat: update product status terminology from OFF_SALE to SOLD_OUT across documentation and codebase 2026-10-22 11:06:05 +08:00
BXY
d35d54be80 feat: add BatchGetStorefrontProductSKUs method for fetching sellable SKU prices 2026-10-21 09:25:10 +08:00
BXY
a86d9a7513 feat: add product status filtering to product list and request handling 2026-10-20 14:52:13 +08:00
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
robinj0726
c8e9db4300 feat: remove deprecated regions from freight region data 2026-10-12 11:55:33 +08:00
robinj0726
dfabd4a382 feat: add new regions and economic development zones to the freight region data 2026-10-12 11:46:51 +08:00
robinj0726
eeb3efa996 feat: add region indexing and rules validation for freight templates
- Implemented RegionIndex to manage region codes and their relationships from embedded region.json.
- Added ValidateRulesJSON function to validate freight rules against specified criteria, including region code existence and overlap checks.
- Created unit tests for rules validation covering various scenarios including valid rules, overlap detection, and error handling for invalid inputs.
- Updated freight_template_server to integrate rules validation during freight template creation and updates, ensuring compliance with the new rules structure.
2026-10-10 18:54:45 +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
e2e14ae337 feat: remove S3 public endpoint configuration and related logic from the project 2026-10-09 16:46:27 +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
e86d4084f9 feat: add S3 public endpoint configuration and complete detail HTML image URLs 2026-10-08 10:51:14 +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
a67703d55c feat: implement CopyProductToStore functionality and add corresponding tests 2026-09-28 17:06:44 +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