diff --git a/ecom-dmb-frontend/apps/web-antd/src/api/index.ts b/ecom-dmb-frontend/apps/web-antd/src/api/index.ts index 4bfbfb31..4b0e0413 100644 --- a/ecom-dmb-frontend/apps/web-antd/src/api/index.ts +++ b/ecom-dmb-frontend/apps/web-antd/src/api/index.ts @@ -1,2 +1 @@ export * from './core'; -export * from './shop'; diff --git a/ecom-dmb-frontend/apps/web-antd/src/api/org/superAccount/apis.ts b/ecom-dmb-frontend/apps/web-antd/src/api/organization/account-super/apis.ts similarity index 100% rename from ecom-dmb-frontend/apps/web-antd/src/api/org/superAccount/apis.ts rename to ecom-dmb-frontend/apps/web-antd/src/api/organization/account-super/apis.ts diff --git a/ecom-dmb-frontend/apps/web-antd/src/api/org/superAccount/index.ts b/ecom-dmb-frontend/apps/web-antd/src/api/organization/account-super/index.ts similarity index 100% rename from ecom-dmb-frontend/apps/web-antd/src/api/org/superAccount/index.ts rename to ecom-dmb-frontend/apps/web-antd/src/api/organization/account-super/index.ts diff --git a/ecom-dmb-frontend/apps/web-antd/src/api/org/superAccount/types/index.ts b/ecom-dmb-frontend/apps/web-antd/src/api/organization/account-super/types/index.ts similarity index 100% rename from ecom-dmb-frontend/apps/web-antd/src/api/org/superAccount/types/index.ts rename to ecom-dmb-frontend/apps/web-antd/src/api/organization/account-super/types/index.ts diff --git a/ecom-dmb-frontend/apps/web-antd/src/api/org/superAccount/types/types.dto.ts b/ecom-dmb-frontend/apps/web-antd/src/api/organization/account-super/types/types.dto.ts similarity index 100% rename from ecom-dmb-frontend/apps/web-antd/src/api/org/superAccount/types/types.dto.ts rename to ecom-dmb-frontend/apps/web-antd/src/api/organization/account-super/types/types.dto.ts diff --git a/ecom-dmb-frontend/apps/web-antd/src/api/org/superAccount/types/types.vo.ts b/ecom-dmb-frontend/apps/web-antd/src/api/organization/account-super/types/types.vo.ts similarity index 100% rename from ecom-dmb-frontend/apps/web-antd/src/api/org/superAccount/types/types.vo.ts rename to ecom-dmb-frontend/apps/web-antd/src/api/organization/account-super/types/types.vo.ts diff --git a/ecom-dmb-frontend/apps/web-antd/src/api/org/account/apis.ts b/ecom-dmb-frontend/apps/web-antd/src/api/organization/account/apis.ts similarity index 100% rename from ecom-dmb-frontend/apps/web-antd/src/api/org/account/apis.ts rename to ecom-dmb-frontend/apps/web-antd/src/api/organization/account/apis.ts diff --git a/ecom-dmb-frontend/apps/web-antd/src/api/org/account/index.ts b/ecom-dmb-frontend/apps/web-antd/src/api/organization/account/index.ts similarity index 100% rename from ecom-dmb-frontend/apps/web-antd/src/api/org/account/index.ts rename to ecom-dmb-frontend/apps/web-antd/src/api/organization/account/index.ts diff --git a/ecom-dmb-frontend/apps/web-antd/src/api/org/account/types/index.ts b/ecom-dmb-frontend/apps/web-antd/src/api/organization/account/types/index.ts similarity index 100% rename from ecom-dmb-frontend/apps/web-antd/src/api/org/account/types/index.ts rename to ecom-dmb-frontend/apps/web-antd/src/api/organization/account/types/index.ts diff --git a/ecom-dmb-frontend/apps/web-antd/src/api/org/account/types/types.dto.ts b/ecom-dmb-frontend/apps/web-antd/src/api/organization/account/types/types.dto.ts similarity index 100% rename from ecom-dmb-frontend/apps/web-antd/src/api/org/account/types/types.dto.ts rename to ecom-dmb-frontend/apps/web-antd/src/api/organization/account/types/types.dto.ts diff --git a/ecom-dmb-frontend/apps/web-antd/src/api/org/account/types/types.vo.ts b/ecom-dmb-frontend/apps/web-antd/src/api/organization/account/types/types.vo.ts similarity index 100% rename from ecom-dmb-frontend/apps/web-antd/src/api/org/account/types/types.vo.ts rename to ecom-dmb-frontend/apps/web-antd/src/api/organization/account/types/types.vo.ts diff --git a/ecom-dmb-frontend/apps/web-antd/src/api/org/company/apis.ts b/ecom-dmb-frontend/apps/web-antd/src/api/organization/company/apis.ts similarity index 100% rename from ecom-dmb-frontend/apps/web-antd/src/api/org/company/apis.ts rename to ecom-dmb-frontend/apps/web-antd/src/api/organization/company/apis.ts diff --git a/ecom-dmb-frontend/apps/web-antd/src/api/org/company/index.ts b/ecom-dmb-frontend/apps/web-antd/src/api/organization/company/index.ts similarity index 100% rename from ecom-dmb-frontend/apps/web-antd/src/api/org/company/index.ts rename to ecom-dmb-frontend/apps/web-antd/src/api/organization/company/index.ts diff --git a/ecom-dmb-frontend/apps/web-antd/src/api/org/company/types/index.ts b/ecom-dmb-frontend/apps/web-antd/src/api/organization/company/types/index.ts similarity index 100% rename from ecom-dmb-frontend/apps/web-antd/src/api/org/company/types/index.ts rename to ecom-dmb-frontend/apps/web-antd/src/api/organization/company/types/index.ts diff --git a/ecom-dmb-frontend/apps/web-antd/src/api/org/company/types/types.dto.ts b/ecom-dmb-frontend/apps/web-antd/src/api/organization/company/types/types.dto.ts similarity index 100% rename from ecom-dmb-frontend/apps/web-antd/src/api/org/company/types/types.dto.ts rename to ecom-dmb-frontend/apps/web-antd/src/api/organization/company/types/types.dto.ts diff --git a/ecom-dmb-frontend/apps/web-antd/src/api/org/company/types/types.vo.ts b/ecom-dmb-frontend/apps/web-antd/src/api/organization/company/types/types.vo.ts similarity index 100% rename from ecom-dmb-frontend/apps/web-antd/src/api/org/company/types/types.vo.ts rename to ecom-dmb-frontend/apps/web-antd/src/api/organization/company/types/types.vo.ts diff --git a/ecom-dmb-frontend/apps/web-antd/src/api/org/department/apis.ts b/ecom-dmb-frontend/apps/web-antd/src/api/organization/department/apis.ts similarity index 100% rename from ecom-dmb-frontend/apps/web-antd/src/api/org/department/apis.ts rename to ecom-dmb-frontend/apps/web-antd/src/api/organization/department/apis.ts diff --git a/ecom-dmb-frontend/apps/web-antd/src/api/org/department/index.ts b/ecom-dmb-frontend/apps/web-antd/src/api/organization/department/index.ts similarity index 100% rename from ecom-dmb-frontend/apps/web-antd/src/api/org/department/index.ts rename to ecom-dmb-frontend/apps/web-antd/src/api/organization/department/index.ts diff --git a/ecom-dmb-frontend/apps/web-antd/src/api/org/department/types/index.ts b/ecom-dmb-frontend/apps/web-antd/src/api/organization/department/types/index.ts similarity index 100% rename from ecom-dmb-frontend/apps/web-antd/src/api/org/department/types/index.ts rename to ecom-dmb-frontend/apps/web-antd/src/api/organization/department/types/index.ts diff --git a/ecom-dmb-frontend/apps/web-antd/src/api/org/department/types/types.dto.ts b/ecom-dmb-frontend/apps/web-antd/src/api/organization/department/types/types.dto.ts similarity index 100% rename from ecom-dmb-frontend/apps/web-antd/src/api/org/department/types/types.dto.ts rename to ecom-dmb-frontend/apps/web-antd/src/api/organization/department/types/types.dto.ts diff --git a/ecom-dmb-frontend/apps/web-antd/src/api/org/department/types/types.vo.ts b/ecom-dmb-frontend/apps/web-antd/src/api/organization/department/types/types.vo.ts similarity index 100% rename from ecom-dmb-frontend/apps/web-antd/src/api/org/department/types/types.vo.ts rename to ecom-dmb-frontend/apps/web-antd/src/api/organization/department/types/types.vo.ts diff --git a/ecom-dmb-frontend/apps/web-antd/src/api/org/position/apis.ts b/ecom-dmb-frontend/apps/web-antd/src/api/organization/position/apis.ts similarity index 100% rename from ecom-dmb-frontend/apps/web-antd/src/api/org/position/apis.ts rename to ecom-dmb-frontend/apps/web-antd/src/api/organization/position/apis.ts diff --git a/ecom-dmb-frontend/apps/web-antd/src/api/org/position/index.ts b/ecom-dmb-frontend/apps/web-antd/src/api/organization/position/index.ts similarity index 100% rename from ecom-dmb-frontend/apps/web-antd/src/api/org/position/index.ts rename to ecom-dmb-frontend/apps/web-antd/src/api/organization/position/index.ts diff --git a/ecom-dmb-frontend/apps/web-antd/src/api/org/position/types/index.ts b/ecom-dmb-frontend/apps/web-antd/src/api/organization/position/types/index.ts similarity index 100% rename from ecom-dmb-frontend/apps/web-antd/src/api/org/position/types/index.ts rename to ecom-dmb-frontend/apps/web-antd/src/api/organization/position/types/index.ts diff --git a/ecom-dmb-frontend/apps/web-antd/src/api/org/position/types/types.dto.ts b/ecom-dmb-frontend/apps/web-antd/src/api/organization/position/types/types.dto.ts similarity index 100% rename from ecom-dmb-frontend/apps/web-antd/src/api/org/position/types/types.dto.ts rename to ecom-dmb-frontend/apps/web-antd/src/api/organization/position/types/types.dto.ts diff --git a/ecom-dmb-frontend/apps/web-antd/src/api/org/position/types/types.vo.ts b/ecom-dmb-frontend/apps/web-antd/src/api/organization/position/types/types.vo.ts similarity index 100% rename from ecom-dmb-frontend/apps/web-antd/src/api/org/position/types/types.vo.ts rename to ecom-dmb-frontend/apps/web-antd/src/api/organization/position/types/types.vo.ts diff --git a/ecom-dmb-frontend/apps/web-antd/src/api/shop/index.ts b/ecom-dmb-frontend/apps/web-antd/src/api/shop/index.ts deleted file mode 100644 index ee5cbfcc..00000000 --- a/ecom-dmb-frontend/apps/web-antd/src/api/shop/index.ts +++ /dev/null @@ -1,12 +0,0 @@ -/** - * 店铺管理模块API导出 - */ - -// 店铺相关API -export * from './shop.apis'; - -// 商品相关API -export * from './product.apis'; - -// 推广费相关API -export * from './promotion-fee.apis'; diff --git a/ecom-dmb-frontend/apps/web-antd/src/api/shop/product.apis.ts b/ecom-dmb-frontend/apps/web-antd/src/api/shop/product/apis.ts similarity index 100% rename from ecom-dmb-frontend/apps/web-antd/src/api/shop/product.apis.ts rename to ecom-dmb-frontend/apps/web-antd/src/api/shop/product/apis.ts diff --git a/ecom-dmb-frontend/apps/web-antd/src/api/shop/product/index.ts b/ecom-dmb-frontend/apps/web-antd/src/api/shop/product/index.ts new file mode 100644 index 00000000..3cefd991 --- /dev/null +++ b/ecom-dmb-frontend/apps/web-antd/src/api/shop/product/index.ts @@ -0,0 +1 @@ +export * from './apis'; diff --git a/ecom-dmb-frontend/apps/web-antd/src/api/shop/product/types/index.ts b/ecom-dmb-frontend/apps/web-antd/src/api/shop/product/types/index.ts new file mode 100644 index 00000000..dfd513cd --- /dev/null +++ b/ecom-dmb-frontend/apps/web-antd/src/api/shop/product/types/index.ts @@ -0,0 +1,2 @@ +export * from './types.dto'; +export * from './types.vo'; diff --git a/ecom-dmb-frontend/apps/web-antd/src/api/shop/types/dto.product.ts b/ecom-dmb-frontend/apps/web-antd/src/api/shop/product/types/types.dto.ts similarity index 100% rename from ecom-dmb-frontend/apps/web-antd/src/api/shop/types/dto.product.ts rename to ecom-dmb-frontend/apps/web-antd/src/api/shop/product/types/types.dto.ts diff --git a/ecom-dmb-frontend/apps/web-antd/src/api/shop/types/vo.product.ts b/ecom-dmb-frontend/apps/web-antd/src/api/shop/product/types/types.vo.ts similarity index 100% rename from ecom-dmb-frontend/apps/web-antd/src/api/shop/types/vo.product.ts rename to ecom-dmb-frontend/apps/web-antd/src/api/shop/product/types/types.vo.ts diff --git a/ecom-dmb-frontend/apps/web-antd/src/api/shop/promotion-fee.apis.ts b/ecom-dmb-frontend/apps/web-antd/src/api/shop/promotion-fee/apis.ts similarity index 100% rename from ecom-dmb-frontend/apps/web-antd/src/api/shop/promotion-fee.apis.ts rename to ecom-dmb-frontend/apps/web-antd/src/api/shop/promotion-fee/apis.ts diff --git a/ecom-dmb-frontend/apps/web-antd/src/api/shop/promotion-fee/index.ts b/ecom-dmb-frontend/apps/web-antd/src/api/shop/promotion-fee/index.ts new file mode 100644 index 00000000..3cefd991 --- /dev/null +++ b/ecom-dmb-frontend/apps/web-antd/src/api/shop/promotion-fee/index.ts @@ -0,0 +1 @@ +export * from './apis'; diff --git a/ecom-dmb-frontend/apps/web-antd/src/api/shop/promotion-fee/types/index.ts b/ecom-dmb-frontend/apps/web-antd/src/api/shop/promotion-fee/types/index.ts new file mode 100644 index 00000000..dfd513cd --- /dev/null +++ b/ecom-dmb-frontend/apps/web-antd/src/api/shop/promotion-fee/types/index.ts @@ -0,0 +1,2 @@ +export * from './types.dto'; +export * from './types.vo'; diff --git a/ecom-dmb-frontend/apps/web-antd/src/api/shop/types/dto.promotion-fee.ts b/ecom-dmb-frontend/apps/web-antd/src/api/shop/promotion-fee/types/types.dto.ts similarity index 100% rename from ecom-dmb-frontend/apps/web-antd/src/api/shop/types/dto.promotion-fee.ts rename to ecom-dmb-frontend/apps/web-antd/src/api/shop/promotion-fee/types/types.dto.ts diff --git a/ecom-dmb-frontend/apps/web-antd/src/api/shop/types/vo.promotion-fee.ts b/ecom-dmb-frontend/apps/web-antd/src/api/shop/promotion-fee/types/types.vo.ts similarity index 100% rename from ecom-dmb-frontend/apps/web-antd/src/api/shop/types/vo.promotion-fee.ts rename to ecom-dmb-frontend/apps/web-antd/src/api/shop/promotion-fee/types/types.vo.ts diff --git a/ecom-dmb-frontend/apps/web-antd/src/api/shop/shop.apis.ts b/ecom-dmb-frontend/apps/web-antd/src/api/shop/shop/apis.ts similarity index 100% rename from ecom-dmb-frontend/apps/web-antd/src/api/shop/shop.apis.ts rename to ecom-dmb-frontend/apps/web-antd/src/api/shop/shop/apis.ts diff --git a/ecom-dmb-frontend/apps/web-antd/src/api/shop/shop/index.ts b/ecom-dmb-frontend/apps/web-antd/src/api/shop/shop/index.ts new file mode 100644 index 00000000..3cefd991 --- /dev/null +++ b/ecom-dmb-frontend/apps/web-antd/src/api/shop/shop/index.ts @@ -0,0 +1 @@ +export * from './apis'; diff --git a/ecom-dmb-frontend/apps/web-antd/src/api/shop/shop/types/index.ts b/ecom-dmb-frontend/apps/web-antd/src/api/shop/shop/types/index.ts new file mode 100644 index 00000000..dfd513cd --- /dev/null +++ b/ecom-dmb-frontend/apps/web-antd/src/api/shop/shop/types/index.ts @@ -0,0 +1,2 @@ +export * from './types.dto'; +export * from './types.vo'; diff --git a/ecom-dmb-frontend/apps/web-antd/src/api/shop/types/dto.shop.ts b/ecom-dmb-frontend/apps/web-antd/src/api/shop/shop/types/types.dto.ts similarity index 100% rename from ecom-dmb-frontend/apps/web-antd/src/api/shop/types/dto.shop.ts rename to ecom-dmb-frontend/apps/web-antd/src/api/shop/shop/types/types.dto.ts diff --git a/ecom-dmb-frontend/apps/web-antd/src/api/shop/types/vo.shop.ts b/ecom-dmb-frontend/apps/web-antd/src/api/shop/shop/types/types.vo.ts similarity index 100% rename from ecom-dmb-frontend/apps/web-antd/src/api/shop/types/vo.shop.ts rename to ecom-dmb-frontend/apps/web-antd/src/api/shop/shop/types/types.vo.ts diff --git a/ecom-dmb-frontend/apps/web-antd/src/api/shop/types/index.ts b/ecom-dmb-frontend/apps/web-antd/src/api/shop/types/index.ts deleted file mode 100644 index 579f0043..00000000 --- a/ecom-dmb-frontend/apps/web-antd/src/api/shop/types/index.ts +++ /dev/null @@ -1,13 +0,0 @@ -/** - * 店铺管理模块类型定义导出 - */ - -// DTO类型导出 -export * from './dto.shop'; -export * from './dto.product'; -export * from './dto.promotion-fee'; - -// VO类型导出 -export * from './vo.shop'; -export * from './vo.product'; -export * from './vo.promotion-fee'; diff --git a/ecom-dmb-frontend/apps/web-antd/src/api/system/menu-permission/apis.ts b/ecom-dmb-frontend/apps/web-antd/src/api/system/menu-permission/apis.ts new file mode 100644 index 00000000..a9d49a19 --- /dev/null +++ b/ecom-dmb-frontend/apps/web-antd/src/api/system/menu-permission/apis.ts @@ -0,0 +1,21 @@ +import { requestClient } from '#/api/request'; + +import type { MenuPermissionDTO, MenuPermissionVO } from './types'; + +/** + * 菜单权限映射API + */ + +/** + * 添加菜单权限映射 + */ +export async function addMenuPermissionApi(data: MenuPermissionDTO.AddMenuPermissionDTO) { + return requestClient.post('/menu-permission/add', data); +} + +/** + * 删除菜单权限映射 + */ +export async function removeMenuPermissionApi(data: MenuPermissionDTO.RemoveMenuPermissionDTO) { + return requestClient.post('/menu-permission/remove', data); +} diff --git a/ecom-dmb-frontend/apps/web-antd/src/api/system/menu-permission/index.ts b/ecom-dmb-frontend/apps/web-antd/src/api/system/menu-permission/index.ts new file mode 100644 index 00000000..c1f324b0 --- /dev/null +++ b/ecom-dmb-frontend/apps/web-antd/src/api/system/menu-permission/index.ts @@ -0,0 +1,6 @@ +/** + * 菜单权限映射模块API导出 + */ + +export * from './apis'; +export * from './types'; diff --git a/ecom-dmb-frontend/apps/web-antd/src/api/system/menu-permission/types/index.ts b/ecom-dmb-frontend/apps/web-antd/src/api/system/menu-permission/types/index.ts new file mode 100644 index 00000000..38c22ca2 --- /dev/null +++ b/ecom-dmb-frontend/apps/web-antd/src/api/system/menu-permission/types/index.ts @@ -0,0 +1,6 @@ +/** + * 菜单权限映射模块类型定义导出 + */ + +export * from './types.dto'; +export * from './types.vo'; diff --git a/ecom-dmb-frontend/apps/web-antd/src/api/system/menu-permission/types/types.dto.ts b/ecom-dmb-frontend/apps/web-antd/src/api/system/menu-permission/types/types.dto.ts new file mode 100644 index 00000000..ffd43660 --- /dev/null +++ b/ecom-dmb-frontend/apps/web-antd/src/api/system/menu-permission/types/types.dto.ts @@ -0,0 +1,21 @@ +/** + * 菜单权限映射模块DTO类型定义 + */ + +export namespace MenuPermissionDTO { + /** 添加菜单权限映射参数 */ + export interface AddMenuPermissionDTO { + /** 菜单ID */ + menuId: number; + /** 权限ID */ + permissionId: number; + } + + /** 删除菜单权限映射参数 */ + export interface RemoveMenuPermissionDTO { + /** 菜单ID */ + menuId: number; + /** 权限ID */ + permissionId: number; + } +} diff --git a/ecom-dmb-frontend/apps/web-antd/src/api/system/menu-permission/types/types.vo.ts b/ecom-dmb-frontend/apps/web-antd/src/api/system/menu-permission/types/types.vo.ts new file mode 100644 index 00000000..0d4ebb10 --- /dev/null +++ b/ecom-dmb-frontend/apps/web-antd/src/api/system/menu-permission/types/types.vo.ts @@ -0,0 +1,29 @@ +/** + * 菜单权限映射模块VO类型定义 + */ + +export namespace MenuPermissionVO { + /** 菜单权限映射信息 */ + export interface MenuPermissionInfoVO { + /** 主键ID */ + id: number; + /** 菜单ID */ + menuId: number; + /** 权限ID */ + permissionId: number; + /** 菜单名称 */ + menuName: string; + /** 菜单标题 */ + menuTitle: string; + /** 权限码 */ + permissionCode: string; + /** 权限名称 */ + permissionName: string; + /** 权限类型 */ + permissionType: string; + /** 创建时间 */ + createTime: string; + /** 创建人ID */ + createBy: number; + } +} diff --git a/ecom-dmb-frontend/apps/web-antd/src/api/system/menu/index.ts b/ecom-dmb-frontend/apps/web-antd/src/api/system/menu/index.ts new file mode 100644 index 00000000..ddd8461a --- /dev/null +++ b/ecom-dmb-frontend/apps/web-antd/src/api/system/menu/index.ts @@ -0,0 +1,6 @@ +/** + * 菜单模块API导出 + */ + +export * from './menu'; +export * from './types'; diff --git a/ecom-dmb-frontend/apps/web-antd/src/api/system/menu/menu.ts b/ecom-dmb-frontend/apps/web-antd/src/api/system/menu/menu.ts index b84f1b5f..88e7d934 100644 --- a/ecom-dmb-frontend/apps/web-antd/src/api/system/menu/menu.ts +++ b/ecom-dmb-frontend/apps/web-antd/src/api/system/menu/menu.ts @@ -1,95 +1,44 @@ import { requestClient } from '#/api/request'; -export namespace MenuApi { - /** 菜单信息 */ - export interface MenuInfo { - id: number; - parentId?: number; - superMenu?: number; - name: string; - title?: string; - path?: string; - component?: string; - redirect?: string; - icon?: string; - order?: number; - type: string; - visible?: number; - status?: number; - keepAlive?: number; - createTime: string; - updateTime: string; - children?: MenuInfo[]; - } +import type { MenuDTO, MenuVO } from './types'; - /** 创建菜单参数 */ - export interface CreateMenuParams { - parentId?: number; - superMenu?: number; - name: string; - title?: string; - path?: string; - component?: string; - redirect?: string; - icon?: string; - order?: number; - type: string; - visible?: number; - status?: number; - keepAlive?: number; - } - - /** 更新菜单参数 */ - export interface UpdateMenuParams { - parentId?: number; - superMenu?: number; - name: string; - title?: string; - path?: string; - component?: string; - redirect?: string; - icon?: string; - order?: number; - type: string; - visible?: number; - status?: number; - keepAlive?: number; - } -} +/** + * 菜单API + */ /** * 获取菜单树 */ export async function getMenuTreeApi() { - return requestClient.get('/menu/tree'); + return requestClient.get('/menu/tree'); } /** * 获取所有菜单 */ export async function getAllMenusApi() { - return requestClient.get('/menu/list'); + return requestClient.get('/menu/list'); } /** * 获取菜单详情 */ export async function getMenuDetailApi(id: number) { - return requestClient.get(`/menu/detail/${id}`); + return requestClient.get(`/menu/detail/${id}`); } /** * 创建菜单 */ -export async function createMenuApi(data: MenuApi.CreateMenuParams) { - return requestClient.post('/menu/create', data); +export async function createMenuApi(data: MenuDTO.CreateMenuDTO) { + return requestClient.post('/menu/create', data); } /** * 更新菜单 */ -export async function updateMenuApi(id: number, data: MenuApi.UpdateMenuParams) { - return requestClient.put(`/menu/update/${id}`, data); +export async function updateMenuApi(id: number, data: MenuDTO.UpdateMenuDTO) { + return requestClient.put(`/menu/update/${id}`, data); } /** @@ -97,4 +46,4 @@ export async function updateMenuApi(id: number, data: MenuApi.UpdateMenuParams) */ export async function deleteMenuApi(id: number) { return requestClient.delete(`/menu/delete/${id}`); -} \ No newline at end of file +} diff --git a/ecom-dmb-frontend/apps/web-antd/src/api/system/menu/types/index.ts b/ecom-dmb-frontend/apps/web-antd/src/api/system/menu/types/index.ts new file mode 100644 index 00000000..c5d45287 --- /dev/null +++ b/ecom-dmb-frontend/apps/web-antd/src/api/system/menu/types/index.ts @@ -0,0 +1,6 @@ +/** + * 菜单模块类型定义导出 + */ + +export * from './types.dto'; +export * from './types.vo'; diff --git a/ecom-dmb-frontend/apps/web-antd/src/api/system/menu/types/types.dto.ts b/ecom-dmb-frontend/apps/web-antd/src/api/system/menu/types/types.dto.ts new file mode 100644 index 00000000..bd9ce0d2 --- /dev/null +++ b/ecom-dmb-frontend/apps/web-antd/src/api/system/menu/types/types.dto.ts @@ -0,0 +1,65 @@ +/** + * 菜单模块DTO类型定义 + */ + +export namespace MenuDTO { + /** 创建菜单参数 */ + export interface CreateMenuDTO { + /** 父级菜单ID */ + parentId?: number; + /** 超级菜单标识 */ + superMenu?: number; + /** 菜单名称 */ + name: string; + /** 菜单标题 */ + title?: string; + /** 路由路径 */ + path?: string; + /** 组件路径 */ + component?: string; + /** 重定向路径 */ + redirect?: string; + /** 菜单图标 */ + icon?: string; + /** 排序 */ + order?: number; + /** 菜单类型 */ + type: string; + /** 是否可见 */ + visible?: number; + /** 状态 */ + status?: number; + /** 是否缓存 */ + keepAlive?: number; + } + + /** 更新菜单参数 */ + export interface UpdateMenuDTO { + /** 父级菜单ID */ + parentId?: number; + /** 超级菜单标识 */ + superMenu?: number; + /** 菜单名称 */ + name: string; + /** 菜单标题 */ + title?: string; + /** 路由路径 */ + path?: string; + /** 组件路径 */ + component?: string; + /** 重定向路径 */ + redirect?: string; + /** 菜单图标 */ + icon?: string; + /** 排序 */ + order?: number; + /** 菜单类型 */ + type: string; + /** 是否可见 */ + visible?: number; + /** 状态 */ + status?: number; + /** 是否缓存 */ + keepAlive?: number; + } +} diff --git a/ecom-dmb-frontend/apps/web-antd/src/api/system/menu/types/types.vo.ts b/ecom-dmb-frontend/apps/web-antd/src/api/system/menu/types/types.vo.ts new file mode 100644 index 00000000..1305926f --- /dev/null +++ b/ecom-dmb-frontend/apps/web-antd/src/api/system/menu/types/types.vo.ts @@ -0,0 +1,43 @@ +/** + * 菜单模块VO类型定义 + */ + +export namespace MenuVO { + /** 菜单信息 */ + export interface MenuInfoVO { + /** 主键ID */ + id: number; + /** 父级菜单ID */ + parentId?: number; + /** 超级菜单标识 */ + superMenu?: number; + /** 菜单名称 */ + name: string; + /** 菜单标题 */ + title?: string; + /** 路由路径 */ + path?: string; + /** 组件路径 */ + component?: string; + /** 重定向路径 */ + redirect?: string; + /** 菜单图标 */ + icon?: string; + /** 排序 */ + order?: number; + /** 菜单类型 */ + type: string; + /** 是否可见 */ + visible?: number; + /** 状态 */ + status?: number; + /** 是否缓存 */ + keepAlive?: number; + /** 创建时间 */ + createTime: string; + /** 更新时间 */ + updateTime: string; + /** 子菜单列表 */ + children?: MenuInfoVO[]; + } +} diff --git a/ecom-dmb-frontend/apps/web-antd/src/views/ecommerce/data-import/services/EntityMatchingService.ts b/ecom-dmb-frontend/apps/web-antd/src/views/ecommerce/data-import/services/EntityMatchingService.ts index 1fa0079b..95313c23 100644 --- a/ecom-dmb-frontend/apps/web-antd/src/views/ecommerce/data-import/services/EntityMatchingService.ts +++ b/ecom-dmb-frontend/apps/web-antd/src/views/ecommerce/data-import/services/EntityMatchingService.ts @@ -3,13 +3,11 @@ * 用于匹配CSV数据中的实体(店铺、商品、规格、订单状态)到数据库中的ID */ -import { - getShopsByNamesApi, - getProductsByNamesApi, - getProductSpecsByProductAndSpecsApi -} from '#/api/shop'; +import { getShopsByNamesApi } from '#/api/shop/shop'; +import { getProductsByNamesApi, getProductSpecsByProductAndSpecsApi } from '#/api/shop/product'; import type { OrderDTO} from '#/api/ecommerce/types'; -import type { ShopVO, ProductVO } from '#/api/shop/types'; +import type { ShopVO } from '#/api/shop/shop/types'; +import type { ProductVO } from '#/api/shop/product/types'; export interface EntityMatchingResult { /** 匹配成功的订单数据 */ diff --git a/ecom-dmb-frontend/apps/web-antd/src/views/media/file-repository/components/FileEditModal.vue b/ecom-dmb-frontend/apps/web-antd/src/views/media/file/components/FileEditModal.vue similarity index 100% rename from ecom-dmb-frontend/apps/web-antd/src/views/media/file-repository/components/FileEditModal.vue rename to ecom-dmb-frontend/apps/web-antd/src/views/media/file/components/FileEditModal.vue diff --git a/ecom-dmb-frontend/apps/web-antd/src/views/media/file-repository/index.vue b/ecom-dmb-frontend/apps/web-antd/src/views/media/file/index.vue similarity index 98% rename from ecom-dmb-frontend/apps/web-antd/src/views/media/file-repository/index.vue rename to ecom-dmb-frontend/apps/web-antd/src/views/media/file/index.vue index 0f66f28f..13ee3dd6 100644 --- a/ecom-dmb-frontend/apps/web-antd/src/views/media/file-repository/index.vue +++ b/ecom-dmb-frontend/apps/web-antd/src/views/media/file/index.vue @@ -38,7 +38,6 @@ defineOptions({ name: 'FileRepository' }); const loading = ref(false); const fileList = ref([]); const total = ref(0); -const current = ref(1); const editModalVisible = ref(false); const currentFileData = ref(null); const uploadLoading = ref(false); @@ -190,16 +189,6 @@ function refreshTable() { } } -// 处理重置 -function handleReset() { - searchForm.value = { - filename: '', - fileFormat: undefined, - }; - current.value = 1; - refreshTable(); -} - const handleUpload = async (file: File) => { uploadLoading.value = true; try { diff --git a/ecom-dmb-frontend/apps/web-antd/src/views/media/image-repository/components/ImageCard.vue b/ecom-dmb-frontend/apps/web-antd/src/views/media/image/components/ImageCard.vue similarity index 100% rename from ecom-dmb-frontend/apps/web-antd/src/views/media/image-repository/components/ImageCard.vue rename to ecom-dmb-frontend/apps/web-antd/src/views/media/image/components/ImageCard.vue diff --git a/ecom-dmb-frontend/apps/web-antd/src/views/media/image-repository/components/ImageEditModal.vue b/ecom-dmb-frontend/apps/web-antd/src/views/media/image/components/ImageEditModal.vue similarity index 100% rename from ecom-dmb-frontend/apps/web-antd/src/views/media/image-repository/components/ImageEditModal.vue rename to ecom-dmb-frontend/apps/web-antd/src/views/media/image/components/ImageEditModal.vue diff --git a/ecom-dmb-frontend/apps/web-antd/src/views/media/image-repository/components/ImageGridView.vue b/ecom-dmb-frontend/apps/web-antd/src/views/media/image/components/ImageGridView.vue similarity index 100% rename from ecom-dmb-frontend/apps/web-antd/src/views/media/image-repository/components/ImageGridView.vue rename to ecom-dmb-frontend/apps/web-antd/src/views/media/image/components/ImageGridView.vue diff --git a/ecom-dmb-frontend/apps/web-antd/src/views/media/image-repository/index.vue b/ecom-dmb-frontend/apps/web-antd/src/views/media/image/index.vue similarity index 100% rename from ecom-dmb-frontend/apps/web-antd/src/views/media/image-repository/index.vue rename to ecom-dmb-frontend/apps/web-antd/src/views/media/image/index.vue diff --git a/ecom-dmb-frontend/apps/web-antd/src/views/organization/super-account-management/components/SuperAccountFormModal.vue b/ecom-dmb-frontend/apps/web-antd/src/views/organization/account-super/components/SuperAccountFormModal.vue similarity index 99% rename from ecom-dmb-frontend/apps/web-antd/src/views/organization/super-account-management/components/SuperAccountFormModal.vue rename to ecom-dmb-frontend/apps/web-antd/src/views/organization/account-super/components/SuperAccountFormModal.vue index 54a5afe2..4f1574b2 100644 --- a/ecom-dmb-frontend/apps/web-antd/src/views/organization/super-account-management/components/SuperAccountFormModal.vue +++ b/ecom-dmb-frontend/apps/web-antd/src/views/organization/account-super/components/SuperAccountFormModal.vue @@ -7,7 +7,7 @@ import { super_updateAccountApi, type SuperAccountVO, type SuperAccountDTO -} from '#/api/org/superAccount'; +} from '#/api/organization/account-super'; interface Emits { (e: 'success'): void; diff --git a/ecom-dmb-frontend/apps/web-antd/src/views/organization/super-account-management/index.vue b/ecom-dmb-frontend/apps/web-antd/src/views/organization/account-super/index.vue similarity index 99% rename from ecom-dmb-frontend/apps/web-antd/src/views/organization/super-account-management/index.vue rename to ecom-dmb-frontend/apps/web-antd/src/views/organization/account-super/index.vue index 0721b973..0cb312e4 100644 --- a/ecom-dmb-frontend/apps/web-antd/src/views/organization/super-account-management/index.vue +++ b/ecom-dmb-frontend/apps/web-antd/src/views/organization/account-super/index.vue @@ -12,7 +12,7 @@ import { super_getAccountPageApi, type SuperAccountVO, type SuperAccountDTO -} from '#/api/org/superAccount'; +} from '#/api/organization/account-super'; import type { PageQueryDTO } from '#/types/common'; import SuperAccountFormModal from './components/SuperAccountFormModal.vue'; diff --git a/ecom-dmb-frontend/apps/web-antd/src/views/organization/account-management/components/AccountFormModal.vue b/ecom-dmb-frontend/apps/web-antd/src/views/organization/account/components/AccountFormModal.vue similarity index 99% rename from ecom-dmb-frontend/apps/web-antd/src/views/organization/account-management/components/AccountFormModal.vue rename to ecom-dmb-frontend/apps/web-antd/src/views/organization/account/components/AccountFormModal.vue index df656be0..0cfeb80a 100644 --- a/ecom-dmb-frontend/apps/web-antd/src/views/organization/account-management/components/AccountFormModal.vue +++ b/ecom-dmb-frontend/apps/web-antd/src/views/organization/account/components/AccountFormModal.vue @@ -7,7 +7,7 @@ import { admin_updateAccountApi, type AccountVO, type AccountDTO -} from '#/api/org/account'; +} from '#/api/organization/account'; interface Emits { (e: 'success'): void; diff --git a/ecom-dmb-frontend/apps/web-antd/src/views/organization/account-management/index.vue b/ecom-dmb-frontend/apps/web-antd/src/views/organization/account/index.vue similarity index 99% rename from ecom-dmb-frontend/apps/web-antd/src/views/organization/account-management/index.vue rename to ecom-dmb-frontend/apps/web-antd/src/views/organization/account/index.vue index 9fed2610..ad7ffe86 100644 --- a/ecom-dmb-frontend/apps/web-antd/src/views/organization/account-management/index.vue +++ b/ecom-dmb-frontend/apps/web-antd/src/views/organization/account/index.vue @@ -12,7 +12,7 @@ import { admin_getAccountPageApi, type AccountVO, type AccountDTO -} from '#/api/org/account'; +} from '#/api/organization/account'; import type { PageQueryDTO } from '#/types/common'; import AccountFormModal from './components/AccountFormModal.vue'; diff --git a/ecom-dmb-frontend/apps/web-antd/src/views/organization/company-account-management/components/AccountFormModal.vue b/ecom-dmb-frontend/apps/web-antd/src/views/organization/company-account-management/components/AccountFormModal.vue deleted file mode 100644 index dfd969f4..00000000 --- a/ecom-dmb-frontend/apps/web-antd/src/views/organization/company-account-management/components/AccountFormModal.vue +++ /dev/null @@ -1,256 +0,0 @@ - - - diff --git a/ecom-dmb-frontend/apps/web-antd/src/views/organization/company-account-management/index.vue b/ecom-dmb-frontend/apps/web-antd/src/views/organization/company-account-management/index.vue deleted file mode 100644 index 08d9aa55..00000000 --- a/ecom-dmb-frontend/apps/web-antd/src/views/organization/company-account-management/index.vue +++ /dev/null @@ -1,339 +0,0 @@ - - - diff --git a/ecom-dmb-frontend/apps/web-antd/src/views/organization/company-management/components/CompanyFormModal.vue b/ecom-dmb-frontend/apps/web-antd/src/views/organization/company/components/CompanyFormModal.vue similarity index 99% rename from ecom-dmb-frontend/apps/web-antd/src/views/organization/company-management/components/CompanyFormModal.vue rename to ecom-dmb-frontend/apps/web-antd/src/views/organization/company/components/CompanyFormModal.vue index e8cb58dd..5d4033f1 100644 --- a/ecom-dmb-frontend/apps/web-antd/src/views/organization/company-management/components/CompanyFormModal.vue +++ b/ecom-dmb-frontend/apps/web-antd/src/views/organization/company/components/CompanyFormModal.vue @@ -108,7 +108,7 @@ import { updateCompanyApi, type CompanyVO, type CompanyDTO -} from '#/api/org/company'; +} from '#/api/organization/company'; interface Emits { (e: 'success'): void; diff --git a/ecom-dmb-frontend/apps/web-antd/src/views/organization/company-management/index.vue b/ecom-dmb-frontend/apps/web-antd/src/views/organization/company/index.vue similarity index 99% rename from ecom-dmb-frontend/apps/web-antd/src/views/organization/company-management/index.vue rename to ecom-dmb-frontend/apps/web-antd/src/views/organization/company/index.vue index cae05e76..787d0f5d 100644 --- a/ecom-dmb-frontend/apps/web-antd/src/views/organization/company-management/index.vue +++ b/ecom-dmb-frontend/apps/web-antd/src/views/organization/company/index.vue @@ -12,7 +12,7 @@ import { getCompanyPageApi, type CompanyVO, type CompanyDTO -} from '#/api/org/company'; +} from '#/api/organization/company'; import type { PageQueryDTO } from '#/types/common'; import CompanyFormModal from './components/CompanyFormModal.vue'; diff --git a/ecom-dmb-frontend/apps/web-antd/src/views/organization/department-management/components/DepartmentModal.vue b/ecom-dmb-frontend/apps/web-antd/src/views/organization/department/components/DepartmentModal.vue similarity index 99% rename from ecom-dmb-frontend/apps/web-antd/src/views/organization/department-management/components/DepartmentModal.vue rename to ecom-dmb-frontend/apps/web-antd/src/views/organization/department/components/DepartmentModal.vue index 4dd0a7f7..f61b135a 100644 --- a/ecom-dmb-frontend/apps/web-antd/src/views/organization/department-management/components/DepartmentModal.vue +++ b/ecom-dmb-frontend/apps/web-antd/src/views/organization/department/components/DepartmentModal.vue @@ -6,7 +6,7 @@ import { createDepartmentApi, updateDepartmentApi, type DepartmentVO -} from '#/api/org/department'; +} from '#/api/organization/department'; interface Props { departmentList: DepartmentVO.DepartmentInfoVO[]; diff --git a/ecom-dmb-frontend/apps/web-antd/src/views/organization/department-management/index.vue b/ecom-dmb-frontend/apps/web-antd/src/views/organization/department/index.vue similarity index 99% rename from ecom-dmb-frontend/apps/web-antd/src/views/organization/department-management/index.vue rename to ecom-dmb-frontend/apps/web-antd/src/views/organization/department/index.vue index 8709ff98..6be9b7fb 100644 --- a/ecom-dmb-frontend/apps/web-antd/src/views/organization/department-management/index.vue +++ b/ecom-dmb-frontend/apps/web-antd/src/views/organization/department/index.vue @@ -12,7 +12,7 @@ import { getDepartmentPageApi, type DepartmentVO, type DepartmentDTO -} from '#/api/org/department'; +} from '#/api/organization/department'; import type { PageQueryDTO } from '#/types/common'; import DepartmentModal from './components/DepartmentModal.vue'; diff --git a/ecom-dmb-frontend/apps/web-antd/src/views/organization/position-management/components/PositionModal.vue b/ecom-dmb-frontend/apps/web-antd/src/views/organization/position/components/PositionModal.vue similarity index 99% rename from ecom-dmb-frontend/apps/web-antd/src/views/organization/position-management/components/PositionModal.vue rename to ecom-dmb-frontend/apps/web-antd/src/views/organization/position/components/PositionModal.vue index 9fa41f2b..3d753ce6 100644 --- a/ecom-dmb-frontend/apps/web-antd/src/views/organization/position-management/components/PositionModal.vue +++ b/ecom-dmb-frontend/apps/web-antd/src/views/organization/position/components/PositionModal.vue @@ -6,7 +6,7 @@ import { createPositionApi, updatePositionApi, type PositionVO -} from '#/api/org/position'; +} from '#/api/organization/position'; interface Props { departmentOptions: Array<{ label: string; value: number }>; diff --git a/ecom-dmb-frontend/apps/web-antd/src/views/organization/position-management/index.vue b/ecom-dmb-frontend/apps/web-antd/src/views/organization/position/index.vue similarity index 99% rename from ecom-dmb-frontend/apps/web-antd/src/views/organization/position-management/index.vue rename to ecom-dmb-frontend/apps/web-antd/src/views/organization/position/index.vue index 486ffe16..f7c3813d 100644 --- a/ecom-dmb-frontend/apps/web-antd/src/views/organization/position-management/index.vue +++ b/ecom-dmb-frontend/apps/web-antd/src/views/organization/position/index.vue @@ -12,7 +12,7 @@ import { getPositionPageApi, type PositionVO, type PositionDTO -} from '#/api/org/position'; +} from '#/api/organization/position'; import type { PageQueryDTO } from '#/types/common'; import PositionModal from './components/PositionModal.vue'; diff --git a/ecom-dmb-frontend/apps/web-antd/src/views/shop/config-management/order-status-config/components/OrderStatusFormModal.vue b/ecom-dmb-frontend/apps/web-antd/src/views/shop/config/order-status-config/components/OrderStatusFormModal.vue similarity index 100% rename from ecom-dmb-frontend/apps/web-antd/src/views/shop/config-management/order-status-config/components/OrderStatusFormModal.vue rename to ecom-dmb-frontend/apps/web-antd/src/views/shop/config/order-status-config/components/OrderStatusFormModal.vue diff --git a/ecom-dmb-frontend/apps/web-antd/src/views/shop/config-management/order-status-config/index.vue b/ecom-dmb-frontend/apps/web-antd/src/views/shop/config/order-status-config/index.vue similarity index 100% rename from ecom-dmb-frontend/apps/web-antd/src/views/shop/config-management/order-status-config/index.vue rename to ecom-dmb-frontend/apps/web-antd/src/views/shop/config/order-status-config/index.vue diff --git a/ecom-dmb-frontend/apps/web-antd/src/views/shop/config-management/promotion-fee-type-config/components/PromotionFeeTypeFormModal.vue b/ecom-dmb-frontend/apps/web-antd/src/views/shop/config/promotion-fee-type-config/components/PromotionFeeTypeFormModal.vue similarity index 100% rename from ecom-dmb-frontend/apps/web-antd/src/views/shop/config-management/promotion-fee-type-config/components/PromotionFeeTypeFormModal.vue rename to ecom-dmb-frontend/apps/web-antd/src/views/shop/config/promotion-fee-type-config/components/PromotionFeeTypeFormModal.vue diff --git a/ecom-dmb-frontend/apps/web-antd/src/views/shop/config-management/promotion-fee-type-config/index.vue b/ecom-dmb-frontend/apps/web-antd/src/views/shop/config/promotion-fee-type-config/index.vue similarity index 100% rename from ecom-dmb-frontend/apps/web-antd/src/views/shop/config-management/promotion-fee-type-config/index.vue rename to ecom-dmb-frontend/apps/web-antd/src/views/shop/config/promotion-fee-type-config/index.vue diff --git a/ecom-dmb-frontend/apps/web-antd/src/views/shop/order-management/components/OrderFormModal.vue b/ecom-dmb-frontend/apps/web-antd/src/views/shop/order/components/OrderFormModal.vue similarity index 99% rename from ecom-dmb-frontend/apps/web-antd/src/views/shop/order-management/components/OrderFormModal.vue rename to ecom-dmb-frontend/apps/web-antd/src/views/shop/order/components/OrderFormModal.vue index e5c19525..98a8dfff 100644 --- a/ecom-dmb-frontend/apps/web-antd/src/views/shop/order-management/components/OrderFormModal.vue +++ b/ecom-dmb-frontend/apps/web-antd/src/views/shop/order/components/OrderFormModal.vue @@ -10,8 +10,8 @@ import { getActiveOrderStatusListApi, } from '#/api/ecommerce'; import type { OrderDTO, OrderVO, OrderStatusVO } from '#/api/ecommerce/types'; -import { getShopPageApi } from '#/api/shop'; -import type { ShopVO } from '#/api/shop/types'; +import { getShopPageApi } from '#/api/shop/shop'; +import type { ShopVO } from '#/api/shop/shop/types'; defineProps<{ visible?: boolean; diff --git a/ecom-dmb-frontend/apps/web-antd/src/views/shop/order-management/index.vue b/ecom-dmb-frontend/apps/web-antd/src/views/shop/order/index.vue similarity index 98% rename from ecom-dmb-frontend/apps/web-antd/src/views/shop/order-management/index.vue rename to ecom-dmb-frontend/apps/web-antd/src/views/shop/order/index.vue index 6d442fc3..93f09c0a 100644 --- a/ecom-dmb-frontend/apps/web-antd/src/views/shop/order-management/index.vue +++ b/ecom-dmb-frontend/apps/web-antd/src/views/shop/order/index.vue @@ -13,8 +13,8 @@ import { getActiveOrderStatusListApi } from '#/api/ecommerce'; import type { OrderVO, OrderDTO, OrderStatusVO } from '#/api/ecommerce/types'; -import { getShopPageApi } from '#/api/shop'; -import type { ShopVO } from '#/api/shop/types'; +import { getShopPageApi } from '#/api/shop/shop'; +import type { ShopVO } from '#/api/shop/shop/types'; import type { PageQueryDTO } from '#/types/common'; import OrderFormModal from './components/OrderFormModal.vue'; diff --git a/ecom-dmb-frontend/apps/web-antd/src/views/shop/product-management/components/ProductCard.vue b/ecom-dmb-frontend/apps/web-antd/src/views/shop/product/components/ProductCard.vue similarity index 98% rename from ecom-dmb-frontend/apps/web-antd/src/views/shop/product-management/components/ProductCard.vue rename to ecom-dmb-frontend/apps/web-antd/src/views/shop/product/components/ProductCard.vue index 3f3d38b2..a455855e 100644 --- a/ecom-dmb-frontend/apps/web-antd/src/views/shop/product-management/components/ProductCard.vue +++ b/ecom-dmb-frontend/apps/web-antd/src/views/shop/product/components/ProductCard.vue @@ -1,7 +1,7 @@