refactor: 重构产品相关Mapper

- 空值处理与类型控制:为相关关系型字段的数据处理添加空值处理与类型控制
- 调整目录结构:将文件目录按照实际查询划分为Product和ProductList两个文件
This commit is contained in:
2025-12-04 17:38:43 +08:00
parent f081a3b33a
commit 1245df497b
14 changed files with 801 additions and 414 deletions

View File

@ -1,7 +1,5 @@
import {
toProductView,
toProductListView,
} from '~~/server/mappers/productMapper';
import { toProductView } from '~~/server/mappers/productMapper';
import { toProductListView } from '~~/server/mappers/productListMapper';
export const productService = {
async getProductList(locale: string) {