From 7a247bfc1288b6ad88024350d3e12a99b2fe8a75 Mon Sep 17 00:00:00 2001
From: chakcy <947105045@qq.com>
Date: Sun, 10 May 2026 12:38:54 +0800
Subject: [PATCH] =?UTF-8?q?modify:=20erp=E6=A8=A1=E6=9D=BF?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
config.toml | 25 +-
src/chongming-web/index.html | 8 +-
src/chongming-web/src/App.vue | 171 +-
src/chongming-web/src/api/generated/index.ts | 4 +-
.../src/api/generated/sdk.gen.ts | 1326 +++++----
.../src/api/generated/types.gen.ts | 2553 ++++++++++++++---
src/chongming-web/src/main.ts | 63 +
src/chongming-web/src/router/index.ts | 98 +-
src/chongming-web/src/stores/auth.ts | 30 +-
src/chongming-web/src/stores/todo.ts | 55 +-
src/chongming-web/src/views/LoginView.vue | 547 +++-
src/chongming-web/src/views/RegisterView.vue | 383 ++-
src/chongming-web/src/views/TodoView.vue | 536 ++--
.../src/views/erp/CodeRuleConfigView.vue | 565 ++++
.../src/views/erp/CustomerView.vue | 155 +
.../src/views/erp/DashboardView.vue | 521 ++++
src/chongming-web/src/views/erp/ErpLayout.vue | 595 ++++
.../src/views/erp/InventoryView.vue | 129 +
.../src/views/erp/ProductView.vue | 608 ++++
.../src/views/erp/PurchaseInboundView.vue | 527 ++++
.../src/views/erp/PurchaseOrderView.vue | 817 ++++++
.../src/views/erp/SalesOrderView.vue | 166 ++
.../src/views/erp/SalesOutboundView.vue | 165 ++
.../src/views/erp/SupplierView.vue | 157 +
.../src/views/erp/WarehouseView.vue | 165 ++
.../src/views/system/PermissionView.vue | 520 ++++
.../src/views/system/RoleView.vue | 652 +++++
.../src/views/system/UserView.vue | 678 +++++
src/chongming-web/vite.config.ts | 10 +
src/chongming/app/api/__init__.py | 15 +-
src/chongming/app/api/deps.py | 13 +-
src/chongming/app/api/routers/erp/__init__.py | 31 +
.../app/api/routers/erp/customer_router.py | 70 +
.../app/api/routers/erp/inventory_router.py | 108 +
.../app/api/routers/erp/product_router.py | 70 +
.../routers/erp/purchase_inbound_router.py | 71 +
.../app/api/routers/erp/purchase_router.py | 79 +
.../api/routers/erp/sales_outbound_router.py | 74 +
.../app/api/routers/erp/sales_router.py | 78 +
.../app/api/routers/erp/supplier_router.py | 70 +
.../app/api/routers/erp/warehouse_router.py | 70 +
.../app/api/routers/system/__init__.py | 17 +
.../{auth.py => system/auth_router.py} | 174 +-
.../api/routers/system/code_rule_router.py | 136 +
.../permission_router.py} | 64 +-
.../{role.py => system/role_router.py} | 41 +-
.../{upload.py => system/upload_router.py} | 7 +-
src/chongming/app/api/routers/todo.py | 126 -
.../app/constant/permission/__init__.py | 50 +-
.../app/constant/permission/erp/__init__.py | 66 +
.../app/constant/permission/erp/customer.py | 13 +
.../app/constant/permission/erp/inventory.py | 11 +
.../app/constant/permission/erp/product.py | 13 +
.../app/constant/permission/erp/purchase.py | 15 +
.../permission/erp/purchase_inbound.py | 15 +
.../app/constant/permission/erp/sales.py | 15 +
.../constant/permission/erp/sales_outbound.py | 15 +
.../app/constant/permission/erp/supplier.py | 13 +
.../app/constant/permission/erp/warehouse.py | 13 +
.../constant/permission/system/__init__.py | 99 +
.../permission/{ => system}/permission_mgt.py | 0
.../permission/{ => system}/personnel.py | 0
.../constant/permission/{ => system}/role.py | 0
.../permission/{ => system}/system_config.py | 0
src/chongming/app/constant/permission/todo.py | 14 -
src/chongming/app/core/order_no_generator.py | 210 ++
src/chongming/app/model/__init__.py | 69 +-
src/chongming/app/model/erp/__init__.py | 37 +
src/chongming/app/model/erp/code_rule.py | 64 +
src/chongming/app/model/erp/customer.py | 66 +
src/chongming/app/model/erp/inventory.py | 87 +
.../app/model/erp/order_no_sequence.py | 32 +
src/chongming/app/model/erp/product.py | 89 +
src/chongming/app/model/erp/purchase.py | 89 +
.../app/model/erp/purchase_inbound.py | 85 +
src/chongming/app/model/erp/sales.py | 89 +
src/chongming/app/model/erp/sales_outbound.py | 85 +
src/chongming/app/model/erp/supplier.py | 66 +
src/chongming/app/model/erp/warehouse.py | 58 +
src/chongming/app/model/system/__init__.py | 0
.../app/model/{ => system}/http_error.py | 0
.../app/model/{ => system}/permission.py | 0
.../model/{ => system}/relationship_table.py | 0
src/chongming/app/model/{ => system}/role.py | 0
src/chongming/app/model/{ => system}/user.py | 44 +
src/chongming/app/model/todo.py | 75 -
src/chongming/app/service/erp/__init__.py | 21 +
.../app/service/erp/code_rule_service.py | 113 +
.../app/service/erp/customer_service.py | 64 +
.../app/service/erp/inventory_service.py | 135 +
.../app/service/erp/product_service.py | 65 +
.../service/erp/purchase_inbound_service.py | 192 ++
.../app/service/erp/purchase_service.py | 165 ++
.../app/service/erp/sales_outbound_service.py | 201 ++
.../app/service/erp/sales_service.py | 163 ++
.../app/service/erp/supplier_service.py | 64 +
.../app/service/erp/warehouse_service.py | 62 +
src/chongming/app/service/system/__init__.py | 0
.../app/service/{ => system}/auth.py | 4 +-
.../app/service/{ => system}/permission.py | 62 +-
.../app/service/{ => system}/role.py | 4 +-
.../app/service/{ => system}/uploads.py | 3 +-
src/chongming/app/service/system/user.py | 176 ++
src/chongming/app/service/todo.py | 121 -
src/chongming/app/service/user.py | 68 -
src/chongming/app/task/dev_init_db.py | 76 +-
src/chongming/scripts/build.py | 147 +-
src/chongming/scripts/code_content.py | 1 +
src/plugins/jwt/jwt_cache.py | 39 +-
uv.lock | 416 +--
110 files changed, 15536 insertions(+), 1966 deletions(-)
create mode 100644 src/chongming-web/src/views/erp/CodeRuleConfigView.vue
create mode 100644 src/chongming-web/src/views/erp/CustomerView.vue
create mode 100644 src/chongming-web/src/views/erp/DashboardView.vue
create mode 100644 src/chongming-web/src/views/erp/ErpLayout.vue
create mode 100644 src/chongming-web/src/views/erp/InventoryView.vue
create mode 100644 src/chongming-web/src/views/erp/ProductView.vue
create mode 100644 src/chongming-web/src/views/erp/PurchaseInboundView.vue
create mode 100644 src/chongming-web/src/views/erp/PurchaseOrderView.vue
create mode 100644 src/chongming-web/src/views/erp/SalesOrderView.vue
create mode 100644 src/chongming-web/src/views/erp/SalesOutboundView.vue
create mode 100644 src/chongming-web/src/views/erp/SupplierView.vue
create mode 100644 src/chongming-web/src/views/erp/WarehouseView.vue
create mode 100644 src/chongming-web/src/views/system/PermissionView.vue
create mode 100644 src/chongming-web/src/views/system/RoleView.vue
create mode 100644 src/chongming-web/src/views/system/UserView.vue
create mode 100644 src/chongming/app/api/routers/erp/__init__.py
create mode 100644 src/chongming/app/api/routers/erp/customer_router.py
create mode 100644 src/chongming/app/api/routers/erp/inventory_router.py
create mode 100644 src/chongming/app/api/routers/erp/product_router.py
create mode 100644 src/chongming/app/api/routers/erp/purchase_inbound_router.py
create mode 100644 src/chongming/app/api/routers/erp/purchase_router.py
create mode 100644 src/chongming/app/api/routers/erp/sales_outbound_router.py
create mode 100644 src/chongming/app/api/routers/erp/sales_router.py
create mode 100644 src/chongming/app/api/routers/erp/supplier_router.py
create mode 100644 src/chongming/app/api/routers/erp/warehouse_router.py
create mode 100644 src/chongming/app/api/routers/system/__init__.py
rename src/chongming/app/api/routers/{auth.py => system/auth_router.py} (62%)
create mode 100644 src/chongming/app/api/routers/system/code_rule_router.py
rename src/chongming/app/api/routers/{permission.py => system/permission_router.py} (85%)
rename src/chongming/app/api/routers/{role.py => system/role_router.py} (89%)
rename src/chongming/app/api/routers/{upload.py => system/upload_router.py} (94%)
delete mode 100644 src/chongming/app/api/routers/todo.py
create mode 100644 src/chongming/app/constant/permission/erp/__init__.py
create mode 100644 src/chongming/app/constant/permission/erp/customer.py
create mode 100644 src/chongming/app/constant/permission/erp/inventory.py
create mode 100644 src/chongming/app/constant/permission/erp/product.py
create mode 100644 src/chongming/app/constant/permission/erp/purchase.py
create mode 100644 src/chongming/app/constant/permission/erp/purchase_inbound.py
create mode 100644 src/chongming/app/constant/permission/erp/sales.py
create mode 100644 src/chongming/app/constant/permission/erp/sales_outbound.py
create mode 100644 src/chongming/app/constant/permission/erp/supplier.py
create mode 100644 src/chongming/app/constant/permission/erp/warehouse.py
create mode 100644 src/chongming/app/constant/permission/system/__init__.py
rename src/chongming/app/constant/permission/{ => system}/permission_mgt.py (100%)
rename src/chongming/app/constant/permission/{ => system}/personnel.py (100%)
rename src/chongming/app/constant/permission/{ => system}/role.py (100%)
rename src/chongming/app/constant/permission/{ => system}/system_config.py (100%)
delete mode 100644 src/chongming/app/constant/permission/todo.py
create mode 100644 src/chongming/app/core/order_no_generator.py
create mode 100644 src/chongming/app/model/erp/__init__.py
create mode 100644 src/chongming/app/model/erp/code_rule.py
create mode 100644 src/chongming/app/model/erp/customer.py
create mode 100644 src/chongming/app/model/erp/inventory.py
create mode 100644 src/chongming/app/model/erp/order_no_sequence.py
create mode 100644 src/chongming/app/model/erp/product.py
create mode 100644 src/chongming/app/model/erp/purchase.py
create mode 100644 src/chongming/app/model/erp/purchase_inbound.py
create mode 100644 src/chongming/app/model/erp/sales.py
create mode 100644 src/chongming/app/model/erp/sales_outbound.py
create mode 100644 src/chongming/app/model/erp/supplier.py
create mode 100644 src/chongming/app/model/erp/warehouse.py
create mode 100644 src/chongming/app/model/system/__init__.py
rename src/chongming/app/model/{ => system}/http_error.py (100%)
rename src/chongming/app/model/{ => system}/permission.py (100%)
rename src/chongming/app/model/{ => system}/relationship_table.py (100%)
rename src/chongming/app/model/{ => system}/role.py (100%)
rename src/chongming/app/model/{ => system}/user.py (74%)
delete mode 100644 src/chongming/app/model/todo.py
create mode 100644 src/chongming/app/service/erp/__init__.py
create mode 100644 src/chongming/app/service/erp/code_rule_service.py
create mode 100644 src/chongming/app/service/erp/customer_service.py
create mode 100644 src/chongming/app/service/erp/inventory_service.py
create mode 100644 src/chongming/app/service/erp/product_service.py
create mode 100644 src/chongming/app/service/erp/purchase_inbound_service.py
create mode 100644 src/chongming/app/service/erp/purchase_service.py
create mode 100644 src/chongming/app/service/erp/sales_outbound_service.py
create mode 100644 src/chongming/app/service/erp/sales_service.py
create mode 100644 src/chongming/app/service/erp/supplier_service.py
create mode 100644 src/chongming/app/service/erp/warehouse_service.py
create mode 100644 src/chongming/app/service/system/__init__.py
rename src/chongming/app/service/{ => system}/auth.py (99%)
rename src/chongming/app/service/{ => system}/permission.py (88%)
rename src/chongming/app/service/{ => system}/role.py (98%)
rename src/chongming/app/service/{ => system}/uploads.py (98%)
create mode 100644 src/chongming/app/service/system/user.py
delete mode 100644 src/chongming/app/service/todo.py
delete mode 100644 src/chongming/app/service/user.py
diff --git a/config.toml b/config.toml
index f618b4a..013eea5 100644
--- a/config.toml
+++ b/config.toml
@@ -27,22 +27,41 @@ pool_timeout = 30
job_store_path = "scheduler_jobs.db"
[cache]
-cache_store_path = "./"
+cache_store_path = "./cache_data"
[security]
-access_token_expire_minutes = 30
+access_token_expire_minutes = 1440
algorithm = "HS256"
max_sessions_per_user = 5
refresh_token_expire_days = 7
secret_key = "your-secret-key-change-in-production"
+# ============================================
+# 订单号自动生成规则配置
+# 每种订单类型可以独立配置生成规则
+# 格式: {prefix}{date}{seq} 例如 PO202405080001
+# prefix: 订单前缀
+# date_format: 日期格式(Python strftime 格式)
+# seq_width: 序号位数(自动补零)
+# separator: 各部分之间的分隔符(可选)
+# ============================================
+[order_no]
+# 采购订单: PO202405080001
+purchase_order = { prefix = "PO", date_format = "%Y%m%d", seq_width = 4, separator = "" }
+# 销售订单: SO202405080001
+sales_order = { prefix = "SO", date_format = "%Y%m%d", seq_width = 4, separator = "" }
+# 采购入库单: PI202405080001
+purchase_inbound = { prefix = "PI", date_format = "%Y%m%d", seq_width = 4, separator = "" }
+# 销售出库单: DO202405080001
+sales_outbound = { prefix = "DO", date_format = "%Y%m%d", seq_width = 4, separator = "" }
+
[development]
debug = true
env = "development"
[development.server]
access_log = false
-host = "127.0.0.1"
+host = "0.0.0.0"
port = 8000
reload = true
diff --git a/src/chongming-web/index.html b/src/chongming-web/index.html
index 9e5fc8f..e40720c 100644
--- a/src/chongming-web/index.html
+++ b/src/chongming-web/index.html
@@ -1,10 +1,14 @@
-
+
- Vite App
+ 崇明·ERP - 进销存管理系统
+
+
+
+
diff --git a/src/chongming-web/src/App.vue b/src/chongming-web/src/App.vue
index 5e07a41..564713c 100644
--- a/src/chongming-web/src/App.vue
+++ b/src/chongming-web/src/App.vue
@@ -4,13 +4,176 @@ import { RouterView } from 'vue-router'
-
+
+
+
+
+
\ No newline at end of file
+
+html, body, #app {
+ height: 100%;
+ font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
+ 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue',
+ Arial, sans-serif;
+ font-size: 14px;
+ color: #303133;
+ background: #f5f7fa;
+ -webkit-font-smoothing: antialiased;
+ -moz-osx-font-smoothing: grayscale;
+}
+
+/* ========== 全局过渡动画 ========== */
+.page-fade-enter-active,
+.page-fade-leave-active {
+ transition: opacity 0.25s ease, transform 0.25s ease;
+}
+.page-fade-enter-from {
+ opacity: 0;
+ transform: translateY(12px);
+}
+.page-fade-leave-to {
+ opacity: 0;
+ transform: translateY(-8px);
+}
+
+/* ========== 自定义滚动条 ========== */
+::-webkit-scrollbar {
+ width: 6px;
+ height: 6px;
+}
+::-webkit-scrollbar-track {
+ background: transparent;
+}
+::-webkit-scrollbar-thumb {
+ background: #c0c4cc;
+ border-radius: 3px;
+ transition: background 0.2s;
+}
+::-webkit-scrollbar-thumb:hover {
+ background: #909399;
+}
+
+/* ========== Element Plus 全局覆盖 ========== */
+.el-card {
+ border-radius: 12px !important;
+ border: 1px solid #ebeef5 !important;
+ transition: box-shadow 0.3s ease;
+}
+.el-card:hover {
+ box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
+}
+
+.el-dialog {
+ border-radius: 16px !important;
+}
+.el-dialog__header {
+ padding: 24px 28px 0 !important;
+}
+.el-dialog__body {
+ padding: 20px 28px !important;
+}
+.el-dialog__footer {
+ padding: 0 28px 24px !important;
+}
+
+.el-button {
+ border-radius: 8px !important;
+ transition: all 0.25s ease !important;
+}
+.el-button--primary {
+ --el-button-bg-color: #6366f1;
+ --el-button-border-color: #6366f1;
+ --el-button-hover-bg-color: #4f46e5;
+ --el-button-hover-border-color: #4f46e5;
+ --el-button-active-bg-color: #4338ca;
+ --el-button-active-border-color: #4338ca;
+}
+
+.el-table {
+ border-radius: 8px;
+ overflow: hidden;
+}
+.el-table th.el-table__cell {
+ background-color: #f8f9fc !important;
+ color: #606266;
+ font-weight: 600;
+ font-size: 13px;
+}
+.el-table--striped .el-table__body tr.el-table__row--striped td {
+ background-color: #fafbfd;
+}
+
+.el-tag {
+ border-radius: 6px !important;
+ font-weight: 500;
+}
+
+.el-pagination {
+ --el-pagination-button-bg-color: transparent;
+}
+
+.el-input__wrapper,
+.el-input-number__wrapper {
+ border-radius: 8px !important;
+ box-shadow: 0 0 0 1px #dcdfe6 inset !important;
+ transition: box-shadow 0.2s ease !important;
+}
+.el-input__wrapper:hover,
+.el-input-number__wrapper:hover {
+ box-shadow: 0 0 0 1px #c0c4cc inset !important;
+}
+.el-input__wrapper.is-focus,
+.el-input-number__wrapper.is-focus {
+ box-shadow: 0 0 0 1px #6366f1 inset !important;
+}
+
+.el-switch.is-checked .el-switch__core {
+ border-color: #6366f1 !important;
+ background-color: #6366f1 !important;
+}
+
+.el-empty {
+ padding: 40px 0;
+}
+
+/* ========== 工具类 ========== */
+.text-gradient {
+ background: linear-gradient(135deg, #6366f1, #8b5cf6);
+ -webkit-background-clip: text;
+ -webkit-text-fill-color: transparent;
+ background-clip: text;
+}
+
+.card-hover {
+ cursor: pointer;
+ transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
+}
+.card-hover:hover {
+ transform: translateY(-4px);
+ box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08) !important;
+}
+
+.flex-center {
+ display: flex;
+ align-items: center;
+ justify-content: center;
+}
+
+.glass-effect {
+ background: rgba(255, 255, 255, 0.6);
+ backdrop-filter: blur(20px);
+ -webkit-backdrop-filter: blur(20px);
+ border: 1px solid rgba(255, 255, 255, 0.8);
+}
+
diff --git a/src/chongming-web/src/api/generated/index.ts b/src/chongming-web/src/api/generated/index.ts
index 13ce1c8..d6fed03 100644
--- a/src/chongming-web/src/api/generated/index.ts
+++ b/src/chongming-web/src/api/generated/index.ts
@@ -1,4 +1,4 @@
// This file is auto-generated by @hey-api/openapi-ts
-export { assignPermissionToRoleApiV1PermissionsPermissionIdAssignToRoleRoleIdPost, assignPermissionToRoleApiV1RolesRoleIdAssignPermissionPermissionIdPost, assignPermissionToUserApiV1PermissionsPermissionIdAssignToUserUserIdPost, assignRoleToUserApiV1RolesRoleIdAssignToUserUserIdPost, createPermissionApiV1PermissionsPost, createRoleApiV1RolesPost, createTodoApiV1TodosPost, deletePermissionApiV1PermissionsPermissionIdDelete, deleteRoleApiV1RolesRoleIdDelete, deleteTodoApiV1TodosTodoIdDelete, getCurrentUserInfoApiV1AuthMeGet, getPermissionApiV1PermissionsPermissionIdGet, getRoleApiV1RolesRoleIdGet, getRolePermissionsApiV1RolesRoleIdPermissionsGet, getSessionsApiV1AuthSessionsGet, listPermissionsApiV1PermissionsGet, listRolesApiV1RolesGet, loginApiV1AuthLoginPost, logoutAllApiV1AuthLogoutAllPost, logoutApiV1AuthLogoutPost, type Options, readTodoApiV1TodosTodoIdGet, readTodosApiV1TodosGet, refreshTokenApiV1AuthRefreshPost, registerApiV1AuthRegisterPost, rootGet, unbindPermissionFromRoleApiV1PermissionsPermissionIdUnbindFromRoleRoleIdPost, unbindPermissionFromRoleApiV1RolesRoleIdUnbindPermissionPermissionIdPost, unbindPermissionFromUserApiV1PermissionsPermissionIdUnbindFromUserUserIdPost, unbindRoleFromUserApiV1RolesRoleIdUnbindFromUserUserIdPost, updatePermissionApiV1PermissionsPermissionIdPut, updateRoleApiV1RolesRoleIdPut, updateTodoApiV1TodosTodoIdPatch, uploadImageApiV1UploadImagePost } from './sdk.gen';
-export type { AssignPermissionToRoleApiV1PermissionsPermissionIdAssignToRoleRoleIdPostData, AssignPermissionToRoleApiV1PermissionsPermissionIdAssignToRoleRoleIdPostError, AssignPermissionToRoleApiV1PermissionsPermissionIdAssignToRoleRoleIdPostErrors, AssignPermissionToRoleApiV1PermissionsPermissionIdAssignToRoleRoleIdPostResponses, AssignPermissionToRoleApiV1RolesRoleIdAssignPermissionPermissionIdPostData, AssignPermissionToRoleApiV1RolesRoleIdAssignPermissionPermissionIdPostError, AssignPermissionToRoleApiV1RolesRoleIdAssignPermissionPermissionIdPostErrors, AssignPermissionToRoleApiV1RolesRoleIdAssignPermissionPermissionIdPostResponses, AssignPermissionToUserApiV1PermissionsPermissionIdAssignToUserUserIdPostData, AssignPermissionToUserApiV1PermissionsPermissionIdAssignToUserUserIdPostError, AssignPermissionToUserApiV1PermissionsPermissionIdAssignToUserUserIdPostErrors, AssignPermissionToUserApiV1PermissionsPermissionIdAssignToUserUserIdPostResponses, AssignRoleToUserApiV1RolesRoleIdAssignToUserUserIdPostData, AssignRoleToUserApiV1RolesRoleIdAssignToUserUserIdPostError, AssignRoleToUserApiV1RolesRoleIdAssignToUserUserIdPostErrors, AssignRoleToUserApiV1RolesRoleIdAssignToUserUserIdPostResponses, BodyUploadImageApiV1UploadImagePost, ClientOptions, CreatePermissionApiV1PermissionsPostData, CreatePermissionApiV1PermissionsPostError, CreatePermissionApiV1PermissionsPostErrors, CreatePermissionApiV1PermissionsPostResponse, CreatePermissionApiV1PermissionsPostResponses, CreateRoleApiV1RolesPostData, CreateRoleApiV1RolesPostError, CreateRoleApiV1RolesPostErrors, CreateRoleApiV1RolesPostResponse, CreateRoleApiV1RolesPostResponses, CreateTodoApiV1TodosPostData, CreateTodoApiV1TodosPostError, CreateTodoApiV1TodosPostErrors, CreateTodoApiV1TodosPostResponse, CreateTodoApiV1TodosPostResponses, DeletePermissionApiV1PermissionsPermissionIdDeleteData, DeletePermissionApiV1PermissionsPermissionIdDeleteError, DeletePermissionApiV1PermissionsPermissionIdDeleteErrors, DeletePermissionApiV1PermissionsPermissionIdDeleteResponses, DeleteRoleApiV1RolesRoleIdDeleteData, DeleteRoleApiV1RolesRoleIdDeleteError, DeleteRoleApiV1RolesRoleIdDeleteErrors, DeleteRoleApiV1RolesRoleIdDeleteResponses, DeleteTodoApiV1TodosTodoIdDeleteData, DeleteTodoApiV1TodosTodoIdDeleteError, DeleteTodoApiV1TodosTodoIdDeleteErrors, DeleteTodoApiV1TodosTodoIdDeleteResponses, Detail, GetCurrentUserInfoApiV1AuthMeGetData, GetCurrentUserInfoApiV1AuthMeGetError, GetCurrentUserInfoApiV1AuthMeGetErrors, GetCurrentUserInfoApiV1AuthMeGetResponse, GetCurrentUserInfoApiV1AuthMeGetResponses, GetPermissionApiV1PermissionsPermissionIdGetData, GetPermissionApiV1PermissionsPermissionIdGetError, GetPermissionApiV1PermissionsPermissionIdGetErrors, GetPermissionApiV1PermissionsPermissionIdGetResponse, GetPermissionApiV1PermissionsPermissionIdGetResponses, GetRoleApiV1RolesRoleIdGetData, GetRoleApiV1RolesRoleIdGetError, GetRoleApiV1RolesRoleIdGetErrors, GetRoleApiV1RolesRoleIdGetResponse, GetRoleApiV1RolesRoleIdGetResponses, GetRolePermissionsApiV1RolesRoleIdPermissionsGetData, GetRolePermissionsApiV1RolesRoleIdPermissionsGetError, GetRolePermissionsApiV1RolesRoleIdPermissionsGetErrors, GetRolePermissionsApiV1RolesRoleIdPermissionsGetResponse, GetRolePermissionsApiV1RolesRoleIdPermissionsGetResponses, GetSessionsApiV1AuthSessionsGetData, GetSessionsApiV1AuthSessionsGetResponses, HttpError, HttpValidationError, ListPermissionsApiV1PermissionsGetData, ListPermissionsApiV1PermissionsGetError, ListPermissionsApiV1PermissionsGetErrors, ListPermissionsApiV1PermissionsGetResponse, ListPermissionsApiV1PermissionsGetResponses, ListRolesApiV1RolesGetData, ListRolesApiV1RolesGetError, ListRolesApiV1RolesGetErrors, ListRolesApiV1RolesGetResponse, ListRolesApiV1RolesGetResponses, LoginApiV1AuthLoginPostData, LoginApiV1AuthLoginPostError, LoginApiV1AuthLoginPostErrors, LoginApiV1AuthLoginPostResponse, LoginApiV1AuthLoginPostResponses, LogoutAllApiV1AuthLogoutAllPostData, LogoutAllApiV1AuthLogoutAllPostResponse, LogoutAllApiV1AuthLogoutAllPostResponses, LogoutApiV1AuthLogoutPostData, LogoutApiV1AuthLogoutPostResponse, LogoutApiV1AuthLogoutPostResponses, Permission, PermissionCreate, PermissionUpdate, ReadTodoApiV1TodosTodoIdGetData, ReadTodoApiV1TodosTodoIdGetError, ReadTodoApiV1TodosTodoIdGetErrors, ReadTodoApiV1TodosTodoIdGetResponse, ReadTodoApiV1TodosTodoIdGetResponses, ReadTodosApiV1TodosGetData, ReadTodosApiV1TodosGetError, ReadTodosApiV1TodosGetErrors, ReadTodosApiV1TodosGetResponse, ReadTodosApiV1TodosGetResponses, RefreshTokenApiV1AuthRefreshPostData, RefreshTokenApiV1AuthRefreshPostError, RefreshTokenApiV1AuthRefreshPostErrors, RefreshTokenApiV1AuthRefreshPostResponse, RefreshTokenApiV1AuthRefreshPostResponses, RefreshTokenResponse, RegisterApiV1AuthRegisterPostData, RegisterApiV1AuthRegisterPostError, RegisterApiV1AuthRegisterPostErrors, RegisterApiV1AuthRegisterPostResponse, RegisterApiV1AuthRegisterPostResponses, Role, RoleUpdate, RootGetData, RootGetResponses, TodoCreate, TodoRead, TodoUpdate, TokenResponse, UnbindPermissionFromRoleApiV1PermissionsPermissionIdUnbindFromRoleRoleIdPostData, UnbindPermissionFromRoleApiV1PermissionsPermissionIdUnbindFromRoleRoleIdPostError, UnbindPermissionFromRoleApiV1PermissionsPermissionIdUnbindFromRoleRoleIdPostErrors, UnbindPermissionFromRoleApiV1PermissionsPermissionIdUnbindFromRoleRoleIdPostResponses, UnbindPermissionFromRoleApiV1RolesRoleIdUnbindPermissionPermissionIdPostData, UnbindPermissionFromRoleApiV1RolesRoleIdUnbindPermissionPermissionIdPostError, UnbindPermissionFromRoleApiV1RolesRoleIdUnbindPermissionPermissionIdPostErrors, UnbindPermissionFromRoleApiV1RolesRoleIdUnbindPermissionPermissionIdPostResponses, UnbindPermissionFromUserApiV1PermissionsPermissionIdUnbindFromUserUserIdPostData, UnbindPermissionFromUserApiV1PermissionsPermissionIdUnbindFromUserUserIdPostError, UnbindPermissionFromUserApiV1PermissionsPermissionIdUnbindFromUserUserIdPostErrors, UnbindPermissionFromUserApiV1PermissionsPermissionIdUnbindFromUserUserIdPostResponses, UnbindRoleFromUserApiV1RolesRoleIdUnbindFromUserUserIdPostData, UnbindRoleFromUserApiV1RolesRoleIdUnbindFromUserUserIdPostError, UnbindRoleFromUserApiV1RolesRoleIdUnbindFromUserUserIdPostErrors, UnbindRoleFromUserApiV1RolesRoleIdUnbindFromUserUserIdPostResponses, UpdatePermissionApiV1PermissionsPermissionIdPutData, UpdatePermissionApiV1PermissionsPermissionIdPutError, UpdatePermissionApiV1PermissionsPermissionIdPutErrors, UpdatePermissionApiV1PermissionsPermissionIdPutResponse, UpdatePermissionApiV1PermissionsPermissionIdPutResponses, UpdateRoleApiV1RolesRoleIdPutData, UpdateRoleApiV1RolesRoleIdPutError, UpdateRoleApiV1RolesRoleIdPutErrors, UpdateRoleApiV1RolesRoleIdPutResponse, UpdateRoleApiV1RolesRoleIdPutResponses, UpdateTodoApiV1TodosTodoIdPatchData, UpdateTodoApiV1TodosTodoIdPatchError, UpdateTodoApiV1TodosTodoIdPatchErrors, UpdateTodoApiV1TodosTodoIdPatchResponse, UpdateTodoApiV1TodosTodoIdPatchResponses, UploadImageApiV1UploadImagePostData, UploadImageApiV1UploadImagePostError, UploadImageApiV1UploadImagePostErrors, UploadImageApiV1UploadImagePostResponse, UploadImageApiV1UploadImagePostResponses, UploadResponse, UserCreate, UserLogin, Userlogout, UserRead, ValidationError } from './types.gen';
+export { adjustInventoryApiV1ErpInventoryAdjustPost, approvePurchaseInboundApiV1ErpPurchaseInboundsInboundIdApprovePost, approveSalesOutboundApiV1ErpSalesOutboundsOutboundIdApprovePost, assignPermissionToRoleApiV1SystemPermissionPermissionIdAssignToRoleRoleIdPost, assignPermissionToUserApiV1SystemPermissionPermissionIdAssignToUserUserIdPost, assignRoleToUserApiV1SystemRoleRoleIdAssignToUserUserIdPost, createCustomerApiV1ErpCustomersPost, createPermissionApiV1SystemPermissionPost, createProductApiV1ErpProductsPost, createPurchaseInboundApiV1ErpPurchaseInboundsPost, createPurchaseOrderApiV1ErpPurchaseOrdersPost, createRoleApiV1SystemRolePost, createSalesOrderApiV1ErpSalesOrdersPost, createSalesOutboundApiV1ErpSalesOutboundsPost, createSupplierApiV1ErpSuppliersPost, createWarehouseApiV1ErpWarehousesPost, deleteCustomerApiV1ErpCustomersCustomerIdDelete, deletePermissionApiV1SystemPermissionPermissionIdDelete, deleteProductApiV1ErpProductsProductIdDelete, deletePurchaseInboundApiV1ErpPurchaseInboundsInboundIdDelete, deletePurchaseOrderApiV1ErpPurchaseOrdersOrderIdDelete, deleteRoleApiV1SystemRoleRoleIdDelete, deleteSalesOrderApiV1ErpSalesOrdersOrderIdDelete, deleteSalesOutboundApiV1ErpSalesOutboundsOutboundIdDelete, deleteSupplierApiV1ErpSuppliersSupplierIdDelete, deleteWarehouseApiV1ErpWarehousesWarehouseIdDelete, getCurrentUserInfoApiV1SystemAuthMeGet, getPermissionApiV1SystemPermissionPermissionIdGet, getRoleApiV1SystemRoleRoleIdGet, getRolePermissionsApiV1SystemRoleRoleIdPermissionsGet, getSessionsApiV1SystemAuthSessionsGet, listPermissionsApiV1SystemPermissionGet, listRolesApiV1SystemRoleGet, loginApiV1SystemAuthLoginPost, logoutAllApiV1SystemAuthLogoutAllPost, logoutApiV1SystemAuthLogoutPost, type Options, readCustomerApiV1ErpCustomersCustomerIdGet, readCustomersApiV1ErpCustomersGet, readInventoryApiV1ErpInventoryGet, readInventoryByProductApiV1ErpInventoryProductProductIdGet, readMovementsApiV1ErpInventoryMovementsGet, readProductApiV1ErpProductsProductIdGet, readProductsApiV1ErpProductsGet, readPurchaseInboundApiV1ErpPurchaseInboundsInboundIdGet, readPurchaseInboundsApiV1ErpPurchaseInboundsGet, readPurchaseOrderApiV1ErpPurchaseOrdersOrderIdGet, readPurchaseOrdersApiV1ErpPurchaseOrdersGet, readSalesOrderApiV1ErpSalesOrdersOrderIdGet, readSalesOrdersApiV1ErpSalesOrdersGet, readSalesOutboundApiV1ErpSalesOutboundsOutboundIdGet, readSalesOutboundsApiV1ErpSalesOutboundsGet, readSupplierApiV1ErpSuppliersSupplierIdGet, readSuppliersApiV1ErpSuppliersGet, readWarehouseApiV1ErpWarehousesWarehouseIdGet, readWarehousesApiV1ErpWarehousesGet, refreshTokenApiV1SystemAuthRefreshPost, registerApiV1SystemAuthRegisterPost, rootGet, unbindPermissionFromRoleApiV1SystemPermissionPermissionIdUnbindFromRoleRoleIdPost, unbindPermissionFromUserApiV1SystemPermissionPermissionIdUnbindFromUserUserIdPost, unbindRoleFromUserApiV1SystemRoleRoleIdUnbindFromUserUserIdPost, updateCustomerApiV1ErpCustomersCustomerIdPatch, updatePermissionApiV1SystemPermissionPermissionIdPut, updateProductApiV1ErpProductsProductIdPatch, updatePurchaseOrderStatusApiV1ErpPurchaseOrdersOrderIdStatusPatch, updateRoleApiV1SystemRoleRoleIdPut, updateSalesOrderStatusApiV1ErpSalesOrdersOrderIdStatusPatch, updateSupplierApiV1ErpSuppliersSupplierIdPatch, updateWarehouseApiV1ErpWarehousesWarehouseIdPatch, uploadImageApiV1SystemUploadImagePost } from './sdk.gen';
+export type { AdjustInventoryApiV1ErpInventoryAdjustPostData, AdjustInventoryApiV1ErpInventoryAdjustPostError, AdjustInventoryApiV1ErpInventoryAdjustPostErrors, AdjustInventoryApiV1ErpInventoryAdjustPostResponses, ApprovePurchaseInboundApiV1ErpPurchaseInboundsInboundIdApprovePostData, ApprovePurchaseInboundApiV1ErpPurchaseInboundsInboundIdApprovePostError, ApprovePurchaseInboundApiV1ErpPurchaseInboundsInboundIdApprovePostErrors, ApprovePurchaseInboundApiV1ErpPurchaseInboundsInboundIdApprovePostResponses, ApproveSalesOutboundApiV1ErpSalesOutboundsOutboundIdApprovePostData, ApproveSalesOutboundApiV1ErpSalesOutboundsOutboundIdApprovePostError, ApproveSalesOutboundApiV1ErpSalesOutboundsOutboundIdApprovePostErrors, ApproveSalesOutboundApiV1ErpSalesOutboundsOutboundIdApprovePostResponses, AssignPermissionToRoleApiV1SystemPermissionPermissionIdAssignToRoleRoleIdPostData, AssignPermissionToRoleApiV1SystemPermissionPermissionIdAssignToRoleRoleIdPostError, AssignPermissionToRoleApiV1SystemPermissionPermissionIdAssignToRoleRoleIdPostErrors, AssignPermissionToRoleApiV1SystemPermissionPermissionIdAssignToRoleRoleIdPostResponses, AssignPermissionToUserApiV1SystemPermissionPermissionIdAssignToUserUserIdPostData, AssignPermissionToUserApiV1SystemPermissionPermissionIdAssignToUserUserIdPostError, AssignPermissionToUserApiV1SystemPermissionPermissionIdAssignToUserUserIdPostErrors, AssignPermissionToUserApiV1SystemPermissionPermissionIdAssignToUserUserIdPostResponses, AssignRoleToUserApiV1SystemRoleRoleIdAssignToUserUserIdPostData, AssignRoleToUserApiV1SystemRoleRoleIdAssignToUserUserIdPostError, AssignRoleToUserApiV1SystemRoleRoleIdAssignToUserUserIdPostErrors, AssignRoleToUserApiV1SystemRoleRoleIdAssignToUserUserIdPostResponses, BodyUploadImageApiV1SystemUploadImagePost, ClientOptions, CreateCustomerApiV1ErpCustomersPostData, CreateCustomerApiV1ErpCustomersPostError, CreateCustomerApiV1ErpCustomersPostErrors, CreateCustomerApiV1ErpCustomersPostResponse, CreateCustomerApiV1ErpCustomersPostResponses, CreatePermissionApiV1SystemPermissionPostData, CreatePermissionApiV1SystemPermissionPostError, CreatePermissionApiV1SystemPermissionPostErrors, CreatePermissionApiV1SystemPermissionPostResponse, CreatePermissionApiV1SystemPermissionPostResponses, CreateProductApiV1ErpProductsPostData, CreateProductApiV1ErpProductsPostError, CreateProductApiV1ErpProductsPostErrors, CreateProductApiV1ErpProductsPostResponse, CreateProductApiV1ErpProductsPostResponses, CreatePurchaseInboundApiV1ErpPurchaseInboundsPostData, CreatePurchaseInboundApiV1ErpPurchaseInboundsPostError, CreatePurchaseInboundApiV1ErpPurchaseInboundsPostErrors, CreatePurchaseInboundApiV1ErpPurchaseInboundsPostResponses, CreatePurchaseOrderApiV1ErpPurchaseOrdersPostData, CreatePurchaseOrderApiV1ErpPurchaseOrdersPostError, CreatePurchaseOrderApiV1ErpPurchaseOrdersPostErrors, CreatePurchaseOrderApiV1ErpPurchaseOrdersPostResponses, CreateRoleApiV1SystemRolePostData, CreateRoleApiV1SystemRolePostError, CreateRoleApiV1SystemRolePostErrors, CreateRoleApiV1SystemRolePostResponse, CreateRoleApiV1SystemRolePostResponses, CreateSalesOrderApiV1ErpSalesOrdersPostData, CreateSalesOrderApiV1ErpSalesOrdersPostError, CreateSalesOrderApiV1ErpSalesOrdersPostErrors, CreateSalesOrderApiV1ErpSalesOrdersPostResponses, CreateSalesOutboundApiV1ErpSalesOutboundsPostData, CreateSalesOutboundApiV1ErpSalesOutboundsPostError, CreateSalesOutboundApiV1ErpSalesOutboundsPostErrors, CreateSalesOutboundApiV1ErpSalesOutboundsPostResponses, CreateSupplierApiV1ErpSuppliersPostData, CreateSupplierApiV1ErpSuppliersPostError, CreateSupplierApiV1ErpSuppliersPostErrors, CreateSupplierApiV1ErpSuppliersPostResponse, CreateSupplierApiV1ErpSuppliersPostResponses, CreateWarehouseApiV1ErpWarehousesPostData, CreateWarehouseApiV1ErpWarehousesPostError, CreateWarehouseApiV1ErpWarehousesPostErrors, CreateWarehouseApiV1ErpWarehousesPostResponse, CreateWarehouseApiV1ErpWarehousesPostResponses, CustomerCreate, CustomerRead, CustomerUpdate, DeleteCustomerApiV1ErpCustomersCustomerIdDeleteData, DeleteCustomerApiV1ErpCustomersCustomerIdDeleteError, DeleteCustomerApiV1ErpCustomersCustomerIdDeleteErrors, DeleteCustomerApiV1ErpCustomersCustomerIdDeleteResponses, DeletePermissionApiV1SystemPermissionPermissionIdDeleteData, DeletePermissionApiV1SystemPermissionPermissionIdDeleteError, DeletePermissionApiV1SystemPermissionPermissionIdDeleteErrors, DeletePermissionApiV1SystemPermissionPermissionIdDeleteResponses, DeleteProductApiV1ErpProductsProductIdDeleteData, DeleteProductApiV1ErpProductsProductIdDeleteError, DeleteProductApiV1ErpProductsProductIdDeleteErrors, DeleteProductApiV1ErpProductsProductIdDeleteResponses, DeletePurchaseInboundApiV1ErpPurchaseInboundsInboundIdDeleteData, DeletePurchaseInboundApiV1ErpPurchaseInboundsInboundIdDeleteError, DeletePurchaseInboundApiV1ErpPurchaseInboundsInboundIdDeleteErrors, DeletePurchaseInboundApiV1ErpPurchaseInboundsInboundIdDeleteResponses, DeletePurchaseOrderApiV1ErpPurchaseOrdersOrderIdDeleteData, DeletePurchaseOrderApiV1ErpPurchaseOrdersOrderIdDeleteError, DeletePurchaseOrderApiV1ErpPurchaseOrdersOrderIdDeleteErrors, DeletePurchaseOrderApiV1ErpPurchaseOrdersOrderIdDeleteResponses, DeleteRoleApiV1SystemRoleRoleIdDeleteData, DeleteRoleApiV1SystemRoleRoleIdDeleteError, DeleteRoleApiV1SystemRoleRoleIdDeleteErrors, DeleteRoleApiV1SystemRoleRoleIdDeleteResponses, DeleteSalesOrderApiV1ErpSalesOrdersOrderIdDeleteData, DeleteSalesOrderApiV1ErpSalesOrdersOrderIdDeleteError, DeleteSalesOrderApiV1ErpSalesOrdersOrderIdDeleteErrors, DeleteSalesOrderApiV1ErpSalesOrdersOrderIdDeleteResponses, DeleteSalesOutboundApiV1ErpSalesOutboundsOutboundIdDeleteData, DeleteSalesOutboundApiV1ErpSalesOutboundsOutboundIdDeleteError, DeleteSalesOutboundApiV1ErpSalesOutboundsOutboundIdDeleteErrors, DeleteSalesOutboundApiV1ErpSalesOutboundsOutboundIdDeleteResponses, DeleteSupplierApiV1ErpSuppliersSupplierIdDeleteData, DeleteSupplierApiV1ErpSuppliersSupplierIdDeleteError, DeleteSupplierApiV1ErpSuppliersSupplierIdDeleteErrors, DeleteSupplierApiV1ErpSuppliersSupplierIdDeleteResponses, DeleteWarehouseApiV1ErpWarehousesWarehouseIdDeleteData, DeleteWarehouseApiV1ErpWarehousesWarehouseIdDeleteError, DeleteWarehouseApiV1ErpWarehousesWarehouseIdDeleteErrors, DeleteWarehouseApiV1ErpWarehousesWarehouseIdDeleteResponses, Detail, GetCurrentUserInfoApiV1SystemAuthMeGetData, GetCurrentUserInfoApiV1SystemAuthMeGetError, GetCurrentUserInfoApiV1SystemAuthMeGetErrors, GetCurrentUserInfoApiV1SystemAuthMeGetResponse, GetCurrentUserInfoApiV1SystemAuthMeGetResponses, GetPermissionApiV1SystemPermissionPermissionIdGetData, GetPermissionApiV1SystemPermissionPermissionIdGetError, GetPermissionApiV1SystemPermissionPermissionIdGetErrors, GetPermissionApiV1SystemPermissionPermissionIdGetResponse, GetPermissionApiV1SystemPermissionPermissionIdGetResponses, GetRoleApiV1SystemRoleRoleIdGetData, GetRoleApiV1SystemRoleRoleIdGetError, GetRoleApiV1SystemRoleRoleIdGetErrors, GetRoleApiV1SystemRoleRoleIdGetResponse, GetRoleApiV1SystemRoleRoleIdGetResponses, GetRolePermissionsApiV1SystemRoleRoleIdPermissionsGetData, GetRolePermissionsApiV1SystemRoleRoleIdPermissionsGetError, GetRolePermissionsApiV1SystemRoleRoleIdPermissionsGetErrors, GetRolePermissionsApiV1SystemRoleRoleIdPermissionsGetResponse, GetRolePermissionsApiV1SystemRoleRoleIdPermissionsGetResponses, GetSessionsApiV1SystemAuthSessionsGetData, GetSessionsApiV1SystemAuthSessionsGetResponses, HttpError, HttpValidationError, InventoryAdjustRequest, InventoryMovementRead, InventoryRead, ListPermissionsApiV1SystemPermissionGetData, ListPermissionsApiV1SystemPermissionGetError, ListPermissionsApiV1SystemPermissionGetErrors, ListPermissionsApiV1SystemPermissionGetResponse, ListPermissionsApiV1SystemPermissionGetResponses, ListRolesApiV1SystemRoleGetData, ListRolesApiV1SystemRoleGetError, ListRolesApiV1SystemRoleGetErrors, ListRolesApiV1SystemRoleGetResponse, ListRolesApiV1SystemRoleGetResponses, LoginApiV1SystemAuthLoginPostData, LoginApiV1SystemAuthLoginPostError, LoginApiV1SystemAuthLoginPostErrors, LoginApiV1SystemAuthLoginPostResponse, LoginApiV1SystemAuthLoginPostResponses, LogoutAllApiV1SystemAuthLogoutAllPostData, LogoutAllApiV1SystemAuthLogoutAllPostResponse, LogoutAllApiV1SystemAuthLogoutAllPostResponses, LogoutApiV1SystemAuthLogoutPostData, LogoutApiV1SystemAuthLogoutPostResponse, LogoutApiV1SystemAuthLogoutPostResponses, Permission, PermissionCreate, PermissionUpdate, ProductCreate, ProductRead, ProductUpdate, PurchaseInboundCreate, PurchaseInboundItemCreate, PurchaseOrderCreate, PurchaseOrderItemCreate, PurchaseOrderUpdate, ReadCustomerApiV1ErpCustomersCustomerIdGetData, ReadCustomerApiV1ErpCustomersCustomerIdGetError, ReadCustomerApiV1ErpCustomersCustomerIdGetErrors, ReadCustomerApiV1ErpCustomersCustomerIdGetResponse, ReadCustomerApiV1ErpCustomersCustomerIdGetResponses, ReadCustomersApiV1ErpCustomersGetData, ReadCustomersApiV1ErpCustomersGetError, ReadCustomersApiV1ErpCustomersGetErrors, ReadCustomersApiV1ErpCustomersGetResponse, ReadCustomersApiV1ErpCustomersGetResponses, ReadInventoryApiV1ErpInventoryGetData, ReadInventoryApiV1ErpInventoryGetError, ReadInventoryApiV1ErpInventoryGetErrors, ReadInventoryApiV1ErpInventoryGetResponse, ReadInventoryApiV1ErpInventoryGetResponses, ReadInventoryByProductApiV1ErpInventoryProductProductIdGetData, ReadInventoryByProductApiV1ErpInventoryProductProductIdGetError, ReadInventoryByProductApiV1ErpInventoryProductProductIdGetErrors, ReadInventoryByProductApiV1ErpInventoryProductProductIdGetResponses, ReadMovementsApiV1ErpInventoryMovementsGetData, ReadMovementsApiV1ErpInventoryMovementsGetError, ReadMovementsApiV1ErpInventoryMovementsGetErrors, ReadMovementsApiV1ErpInventoryMovementsGetResponse, ReadMovementsApiV1ErpInventoryMovementsGetResponses, ReadProductApiV1ErpProductsProductIdGetData, ReadProductApiV1ErpProductsProductIdGetError, ReadProductApiV1ErpProductsProductIdGetErrors, ReadProductApiV1ErpProductsProductIdGetResponse, ReadProductApiV1ErpProductsProductIdGetResponses, ReadProductsApiV1ErpProductsGetData, ReadProductsApiV1ErpProductsGetError, ReadProductsApiV1ErpProductsGetErrors, ReadProductsApiV1ErpProductsGetResponse, ReadProductsApiV1ErpProductsGetResponses, ReadPurchaseInboundApiV1ErpPurchaseInboundsInboundIdGetData, ReadPurchaseInboundApiV1ErpPurchaseInboundsInboundIdGetError, ReadPurchaseInboundApiV1ErpPurchaseInboundsInboundIdGetErrors, ReadPurchaseInboundApiV1ErpPurchaseInboundsInboundIdGetResponses, ReadPurchaseInboundsApiV1ErpPurchaseInboundsGetData, ReadPurchaseInboundsApiV1ErpPurchaseInboundsGetError, ReadPurchaseInboundsApiV1ErpPurchaseInboundsGetErrors, ReadPurchaseInboundsApiV1ErpPurchaseInboundsGetResponses, ReadPurchaseOrderApiV1ErpPurchaseOrdersOrderIdGetData, ReadPurchaseOrderApiV1ErpPurchaseOrdersOrderIdGetError, ReadPurchaseOrderApiV1ErpPurchaseOrdersOrderIdGetErrors, ReadPurchaseOrderApiV1ErpPurchaseOrdersOrderIdGetResponses, ReadPurchaseOrdersApiV1ErpPurchaseOrdersGetData, ReadPurchaseOrdersApiV1ErpPurchaseOrdersGetError, ReadPurchaseOrdersApiV1ErpPurchaseOrdersGetErrors, ReadPurchaseOrdersApiV1ErpPurchaseOrdersGetResponses, ReadSalesOrderApiV1ErpSalesOrdersOrderIdGetData, ReadSalesOrderApiV1ErpSalesOrdersOrderIdGetError, ReadSalesOrderApiV1ErpSalesOrdersOrderIdGetErrors, ReadSalesOrderApiV1ErpSalesOrdersOrderIdGetResponses, ReadSalesOrdersApiV1ErpSalesOrdersGetData, ReadSalesOrdersApiV1ErpSalesOrdersGetError, ReadSalesOrdersApiV1ErpSalesOrdersGetErrors, ReadSalesOrdersApiV1ErpSalesOrdersGetResponses, ReadSalesOutboundApiV1ErpSalesOutboundsOutboundIdGetData, ReadSalesOutboundApiV1ErpSalesOutboundsOutboundIdGetError, ReadSalesOutboundApiV1ErpSalesOutboundsOutboundIdGetErrors, ReadSalesOutboundApiV1ErpSalesOutboundsOutboundIdGetResponses, ReadSalesOutboundsApiV1ErpSalesOutboundsGetData, ReadSalesOutboundsApiV1ErpSalesOutboundsGetError, ReadSalesOutboundsApiV1ErpSalesOutboundsGetErrors, ReadSalesOutboundsApiV1ErpSalesOutboundsGetResponses, ReadSupplierApiV1ErpSuppliersSupplierIdGetData, ReadSupplierApiV1ErpSuppliersSupplierIdGetError, ReadSupplierApiV1ErpSuppliersSupplierIdGetErrors, ReadSupplierApiV1ErpSuppliersSupplierIdGetResponse, ReadSupplierApiV1ErpSuppliersSupplierIdGetResponses, ReadSuppliersApiV1ErpSuppliersGetData, ReadSuppliersApiV1ErpSuppliersGetError, ReadSuppliersApiV1ErpSuppliersGetErrors, ReadSuppliersApiV1ErpSuppliersGetResponse, ReadSuppliersApiV1ErpSuppliersGetResponses, ReadWarehouseApiV1ErpWarehousesWarehouseIdGetData, ReadWarehouseApiV1ErpWarehousesWarehouseIdGetError, ReadWarehouseApiV1ErpWarehousesWarehouseIdGetErrors, ReadWarehouseApiV1ErpWarehousesWarehouseIdGetResponse, ReadWarehouseApiV1ErpWarehousesWarehouseIdGetResponses, ReadWarehousesApiV1ErpWarehousesGetData, ReadWarehousesApiV1ErpWarehousesGetError, ReadWarehousesApiV1ErpWarehousesGetErrors, ReadWarehousesApiV1ErpWarehousesGetResponse, ReadWarehousesApiV1ErpWarehousesGetResponses, RefreshTokenApiV1SystemAuthRefreshPostData, RefreshTokenApiV1SystemAuthRefreshPostError, RefreshTokenApiV1SystemAuthRefreshPostErrors, RefreshTokenApiV1SystemAuthRefreshPostResponse, RefreshTokenApiV1SystemAuthRefreshPostResponses, RefreshTokenResponse, RegisterApiV1SystemAuthRegisterPostData, RegisterApiV1SystemAuthRegisterPostError, RegisterApiV1SystemAuthRegisterPostErrors, RegisterApiV1SystemAuthRegisterPostResponse, RegisterApiV1SystemAuthRegisterPostResponses, Role, RoleUpdate, RootGetData, RootGetResponses, SalesOrderCreate, SalesOrderItemCreate, SalesOrderUpdate, SalesOutboundCreate, SalesOutboundItemCreate, SupplierCreate, SupplierRead, SupplierUpdate, TokenResponse, UnbindPermissionFromRoleApiV1SystemPermissionPermissionIdUnbindFromRoleRoleIdPostData, UnbindPermissionFromRoleApiV1SystemPermissionPermissionIdUnbindFromRoleRoleIdPostError, UnbindPermissionFromRoleApiV1SystemPermissionPermissionIdUnbindFromRoleRoleIdPostErrors, UnbindPermissionFromRoleApiV1SystemPermissionPermissionIdUnbindFromRoleRoleIdPostResponses, UnbindPermissionFromUserApiV1SystemPermissionPermissionIdUnbindFromUserUserIdPostData, UnbindPermissionFromUserApiV1SystemPermissionPermissionIdUnbindFromUserUserIdPostError, UnbindPermissionFromUserApiV1SystemPermissionPermissionIdUnbindFromUserUserIdPostErrors, UnbindPermissionFromUserApiV1SystemPermissionPermissionIdUnbindFromUserUserIdPostResponses, UnbindRoleFromUserApiV1SystemRoleRoleIdUnbindFromUserUserIdPostData, UnbindRoleFromUserApiV1SystemRoleRoleIdUnbindFromUserUserIdPostError, UnbindRoleFromUserApiV1SystemRoleRoleIdUnbindFromUserUserIdPostErrors, UnbindRoleFromUserApiV1SystemRoleRoleIdUnbindFromUserUserIdPostResponses, UpdateCustomerApiV1ErpCustomersCustomerIdPatchData, UpdateCustomerApiV1ErpCustomersCustomerIdPatchError, UpdateCustomerApiV1ErpCustomersCustomerIdPatchErrors, UpdateCustomerApiV1ErpCustomersCustomerIdPatchResponse, UpdateCustomerApiV1ErpCustomersCustomerIdPatchResponses, UpdatePermissionApiV1SystemPermissionPermissionIdPutData, UpdatePermissionApiV1SystemPermissionPermissionIdPutError, UpdatePermissionApiV1SystemPermissionPermissionIdPutErrors, UpdatePermissionApiV1SystemPermissionPermissionIdPutResponse, UpdatePermissionApiV1SystemPermissionPermissionIdPutResponses, UpdateProductApiV1ErpProductsProductIdPatchData, UpdateProductApiV1ErpProductsProductIdPatchError, UpdateProductApiV1ErpProductsProductIdPatchErrors, UpdateProductApiV1ErpProductsProductIdPatchResponse, UpdateProductApiV1ErpProductsProductIdPatchResponses, UpdatePurchaseOrderStatusApiV1ErpPurchaseOrdersOrderIdStatusPatchData, UpdatePurchaseOrderStatusApiV1ErpPurchaseOrdersOrderIdStatusPatchError, UpdatePurchaseOrderStatusApiV1ErpPurchaseOrdersOrderIdStatusPatchErrors, UpdatePurchaseOrderStatusApiV1ErpPurchaseOrdersOrderIdStatusPatchResponses, UpdateRoleApiV1SystemRoleRoleIdPutData, UpdateRoleApiV1SystemRoleRoleIdPutError, UpdateRoleApiV1SystemRoleRoleIdPutErrors, UpdateRoleApiV1SystemRoleRoleIdPutResponse, UpdateRoleApiV1SystemRoleRoleIdPutResponses, UpdateSalesOrderStatusApiV1ErpSalesOrdersOrderIdStatusPatchData, UpdateSalesOrderStatusApiV1ErpSalesOrdersOrderIdStatusPatchError, UpdateSalesOrderStatusApiV1ErpSalesOrdersOrderIdStatusPatchErrors, UpdateSalesOrderStatusApiV1ErpSalesOrdersOrderIdStatusPatchResponses, UpdateSupplierApiV1ErpSuppliersSupplierIdPatchData, UpdateSupplierApiV1ErpSuppliersSupplierIdPatchError, UpdateSupplierApiV1ErpSuppliersSupplierIdPatchErrors, UpdateSupplierApiV1ErpSuppliersSupplierIdPatchResponse, UpdateSupplierApiV1ErpSuppliersSupplierIdPatchResponses, UpdateWarehouseApiV1ErpWarehousesWarehouseIdPatchData, UpdateWarehouseApiV1ErpWarehousesWarehouseIdPatchError, UpdateWarehouseApiV1ErpWarehousesWarehouseIdPatchErrors, UpdateWarehouseApiV1ErpWarehousesWarehouseIdPatchResponse, UpdateWarehouseApiV1ErpWarehousesWarehouseIdPatchResponses, UploadImageApiV1SystemUploadImagePostData, UploadImageApiV1SystemUploadImagePostError, UploadImageApiV1SystemUploadImagePostErrors, UploadImageApiV1SystemUploadImagePostResponse, UploadImageApiV1SystemUploadImagePostResponses, UploadResponse, UserCreate, UserLogin, Userlogout, UserRead, ValidationError, WarehouseCreate, WarehouseRead, WarehouseUpdate } from './types.gen';
diff --git a/src/chongming-web/src/api/generated/sdk.gen.ts b/src/chongming-web/src/api/generated/sdk.gen.ts
index 4f54ea1..da4441c 100644
--- a/src/chongming-web/src/api/generated/sdk.gen.ts
+++ b/src/chongming-web/src/api/generated/sdk.gen.ts
@@ -2,7 +2,7 @@
import { type Client, formDataBodySerializer, type Options as Options2, type TDataShape } from './client';
import { client } from './client.gen';
-import type { AssignPermissionToRoleApiV1PermissionsPermissionIdAssignToRoleRoleIdPostData, AssignPermissionToRoleApiV1PermissionsPermissionIdAssignToRoleRoleIdPostErrors, AssignPermissionToRoleApiV1PermissionsPermissionIdAssignToRoleRoleIdPostResponses, AssignPermissionToRoleApiV1RolesRoleIdAssignPermissionPermissionIdPostData, AssignPermissionToRoleApiV1RolesRoleIdAssignPermissionPermissionIdPostErrors, AssignPermissionToRoleApiV1RolesRoleIdAssignPermissionPermissionIdPostResponses, AssignPermissionToUserApiV1PermissionsPermissionIdAssignToUserUserIdPostData, AssignPermissionToUserApiV1PermissionsPermissionIdAssignToUserUserIdPostErrors, AssignPermissionToUserApiV1PermissionsPermissionIdAssignToUserUserIdPostResponses, AssignRoleToUserApiV1RolesRoleIdAssignToUserUserIdPostData, AssignRoleToUserApiV1RolesRoleIdAssignToUserUserIdPostErrors, AssignRoleToUserApiV1RolesRoleIdAssignToUserUserIdPostResponses, CreatePermissionApiV1PermissionsPostData, CreatePermissionApiV1PermissionsPostErrors, CreatePermissionApiV1PermissionsPostResponses, CreateRoleApiV1RolesPostData, CreateRoleApiV1RolesPostErrors, CreateRoleApiV1RolesPostResponses, CreateTodoApiV1TodosPostData, CreateTodoApiV1TodosPostErrors, CreateTodoApiV1TodosPostResponses, DeletePermissionApiV1PermissionsPermissionIdDeleteData, DeletePermissionApiV1PermissionsPermissionIdDeleteErrors, DeletePermissionApiV1PermissionsPermissionIdDeleteResponses, DeleteRoleApiV1RolesRoleIdDeleteData, DeleteRoleApiV1RolesRoleIdDeleteErrors, DeleteRoleApiV1RolesRoleIdDeleteResponses, DeleteTodoApiV1TodosTodoIdDeleteData, DeleteTodoApiV1TodosTodoIdDeleteErrors, DeleteTodoApiV1TodosTodoIdDeleteResponses, GetCurrentUserInfoApiV1AuthMeGetData, GetCurrentUserInfoApiV1AuthMeGetErrors, GetCurrentUserInfoApiV1AuthMeGetResponses, GetPermissionApiV1PermissionsPermissionIdGetData, GetPermissionApiV1PermissionsPermissionIdGetErrors, GetPermissionApiV1PermissionsPermissionIdGetResponses, GetRoleApiV1RolesRoleIdGetData, GetRoleApiV1RolesRoleIdGetErrors, GetRoleApiV1RolesRoleIdGetResponses, GetRolePermissionsApiV1RolesRoleIdPermissionsGetData, GetRolePermissionsApiV1RolesRoleIdPermissionsGetErrors, GetRolePermissionsApiV1RolesRoleIdPermissionsGetResponses, GetSessionsApiV1AuthSessionsGetData, GetSessionsApiV1AuthSessionsGetResponses, ListPermissionsApiV1PermissionsGetData, ListPermissionsApiV1PermissionsGetErrors, ListPermissionsApiV1PermissionsGetResponses, ListRolesApiV1RolesGetData, ListRolesApiV1RolesGetErrors, ListRolesApiV1RolesGetResponses, LoginApiV1AuthLoginPostData, LoginApiV1AuthLoginPostErrors, LoginApiV1AuthLoginPostResponses, LogoutAllApiV1AuthLogoutAllPostData, LogoutAllApiV1AuthLogoutAllPostResponses, LogoutApiV1AuthLogoutPostData, LogoutApiV1AuthLogoutPostResponses, ReadTodoApiV1TodosTodoIdGetData, ReadTodoApiV1TodosTodoIdGetErrors, ReadTodoApiV1TodosTodoIdGetResponses, ReadTodosApiV1TodosGetData, ReadTodosApiV1TodosGetErrors, ReadTodosApiV1TodosGetResponses, RefreshTokenApiV1AuthRefreshPostData, RefreshTokenApiV1AuthRefreshPostErrors, RefreshTokenApiV1AuthRefreshPostResponses, RegisterApiV1AuthRegisterPostData, RegisterApiV1AuthRegisterPostErrors, RegisterApiV1AuthRegisterPostResponses, RootGetData, RootGetResponses, UnbindPermissionFromRoleApiV1PermissionsPermissionIdUnbindFromRoleRoleIdPostData, UnbindPermissionFromRoleApiV1PermissionsPermissionIdUnbindFromRoleRoleIdPostErrors, UnbindPermissionFromRoleApiV1PermissionsPermissionIdUnbindFromRoleRoleIdPostResponses, UnbindPermissionFromRoleApiV1RolesRoleIdUnbindPermissionPermissionIdPostData, UnbindPermissionFromRoleApiV1RolesRoleIdUnbindPermissionPermissionIdPostErrors, UnbindPermissionFromRoleApiV1RolesRoleIdUnbindPermissionPermissionIdPostResponses, UnbindPermissionFromUserApiV1PermissionsPermissionIdUnbindFromUserUserIdPostData, UnbindPermissionFromUserApiV1PermissionsPermissionIdUnbindFromUserUserIdPostErrors, UnbindPermissionFromUserApiV1PermissionsPermissionIdUnbindFromUserUserIdPostResponses, UnbindRoleFromUserApiV1RolesRoleIdUnbindFromUserUserIdPostData, UnbindRoleFromUserApiV1RolesRoleIdUnbindFromUserUserIdPostErrors, UnbindRoleFromUserApiV1RolesRoleIdUnbindFromUserUserIdPostResponses, UpdatePermissionApiV1PermissionsPermissionIdPutData, UpdatePermissionApiV1PermissionsPermissionIdPutErrors, UpdatePermissionApiV1PermissionsPermissionIdPutResponses, UpdateRoleApiV1RolesRoleIdPutData, UpdateRoleApiV1RolesRoleIdPutErrors, UpdateRoleApiV1RolesRoleIdPutResponses, UpdateTodoApiV1TodosTodoIdPatchData, UpdateTodoApiV1TodosTodoIdPatchErrors, UpdateTodoApiV1TodosTodoIdPatchResponses, UploadImageApiV1UploadImagePostData, UploadImageApiV1UploadImagePostErrors, UploadImageApiV1UploadImagePostResponses } from './types.gen';
+import type { AdjustInventoryApiV1ErpInventoryAdjustPostData, AdjustInventoryApiV1ErpInventoryAdjustPostErrors, AdjustInventoryApiV1ErpInventoryAdjustPostResponses, ApprovePurchaseInboundApiV1ErpPurchaseInboundsInboundIdApprovePostData, ApprovePurchaseInboundApiV1ErpPurchaseInboundsInboundIdApprovePostErrors, ApprovePurchaseInboundApiV1ErpPurchaseInboundsInboundIdApprovePostResponses, ApproveSalesOutboundApiV1ErpSalesOutboundsOutboundIdApprovePostData, ApproveSalesOutboundApiV1ErpSalesOutboundsOutboundIdApprovePostErrors, ApproveSalesOutboundApiV1ErpSalesOutboundsOutboundIdApprovePostResponses, AssignPermissionToRoleApiV1SystemPermissionPermissionIdAssignToRoleRoleIdPostData, AssignPermissionToRoleApiV1SystemPermissionPermissionIdAssignToRoleRoleIdPostErrors, AssignPermissionToRoleApiV1SystemPermissionPermissionIdAssignToRoleRoleIdPostResponses, AssignPermissionToUserApiV1SystemPermissionPermissionIdAssignToUserUserIdPostData, AssignPermissionToUserApiV1SystemPermissionPermissionIdAssignToUserUserIdPostErrors, AssignPermissionToUserApiV1SystemPermissionPermissionIdAssignToUserUserIdPostResponses, AssignRoleToUserApiV1SystemRoleRoleIdAssignToUserUserIdPostData, AssignRoleToUserApiV1SystemRoleRoleIdAssignToUserUserIdPostErrors, AssignRoleToUserApiV1SystemRoleRoleIdAssignToUserUserIdPostResponses, CreateCustomerApiV1ErpCustomersPostData, CreateCustomerApiV1ErpCustomersPostErrors, CreateCustomerApiV1ErpCustomersPostResponses, CreatePermissionApiV1SystemPermissionPostData, CreatePermissionApiV1SystemPermissionPostErrors, CreatePermissionApiV1SystemPermissionPostResponses, CreateProductApiV1ErpProductsPostData, CreateProductApiV1ErpProductsPostErrors, CreateProductApiV1ErpProductsPostResponses, CreatePurchaseInboundApiV1ErpPurchaseInboundsPostData, CreatePurchaseInboundApiV1ErpPurchaseInboundsPostErrors, CreatePurchaseInboundApiV1ErpPurchaseInboundsPostResponses, CreatePurchaseOrderApiV1ErpPurchaseOrdersPostData, CreatePurchaseOrderApiV1ErpPurchaseOrdersPostErrors, CreatePurchaseOrderApiV1ErpPurchaseOrdersPostResponses, CreateRoleApiV1SystemRolePostData, CreateRoleApiV1SystemRolePostErrors, CreateRoleApiV1SystemRolePostResponses, CreateSalesOrderApiV1ErpSalesOrdersPostData, CreateSalesOrderApiV1ErpSalesOrdersPostErrors, CreateSalesOrderApiV1ErpSalesOrdersPostResponses, CreateSalesOutboundApiV1ErpSalesOutboundsPostData, CreateSalesOutboundApiV1ErpSalesOutboundsPostErrors, CreateSalesOutboundApiV1ErpSalesOutboundsPostResponses, CreateSupplierApiV1ErpSuppliersPostData, CreateSupplierApiV1ErpSuppliersPostErrors, CreateSupplierApiV1ErpSuppliersPostResponses, CreateWarehouseApiV1ErpWarehousesPostData, CreateWarehouseApiV1ErpWarehousesPostErrors, CreateWarehouseApiV1ErpWarehousesPostResponses, DeleteCustomerApiV1ErpCustomersCustomerIdDeleteData, DeleteCustomerApiV1ErpCustomersCustomerIdDeleteErrors, DeleteCustomerApiV1ErpCustomersCustomerIdDeleteResponses, DeletePermissionApiV1SystemPermissionPermissionIdDeleteData, DeletePermissionApiV1SystemPermissionPermissionIdDeleteErrors, DeletePermissionApiV1SystemPermissionPermissionIdDeleteResponses, DeleteProductApiV1ErpProductsProductIdDeleteData, DeleteProductApiV1ErpProductsProductIdDeleteErrors, DeleteProductApiV1ErpProductsProductIdDeleteResponses, DeletePurchaseInboundApiV1ErpPurchaseInboundsInboundIdDeleteData, DeletePurchaseInboundApiV1ErpPurchaseInboundsInboundIdDeleteErrors, DeletePurchaseInboundApiV1ErpPurchaseInboundsInboundIdDeleteResponses, DeletePurchaseOrderApiV1ErpPurchaseOrdersOrderIdDeleteData, DeletePurchaseOrderApiV1ErpPurchaseOrdersOrderIdDeleteErrors, DeletePurchaseOrderApiV1ErpPurchaseOrdersOrderIdDeleteResponses, DeleteRoleApiV1SystemRoleRoleIdDeleteData, DeleteRoleApiV1SystemRoleRoleIdDeleteErrors, DeleteRoleApiV1SystemRoleRoleIdDeleteResponses, DeleteSalesOrderApiV1ErpSalesOrdersOrderIdDeleteData, DeleteSalesOrderApiV1ErpSalesOrdersOrderIdDeleteErrors, DeleteSalesOrderApiV1ErpSalesOrdersOrderIdDeleteResponses, DeleteSalesOutboundApiV1ErpSalesOutboundsOutboundIdDeleteData, DeleteSalesOutboundApiV1ErpSalesOutboundsOutboundIdDeleteErrors, DeleteSalesOutboundApiV1ErpSalesOutboundsOutboundIdDeleteResponses, DeleteSupplierApiV1ErpSuppliersSupplierIdDeleteData, DeleteSupplierApiV1ErpSuppliersSupplierIdDeleteErrors, DeleteSupplierApiV1ErpSuppliersSupplierIdDeleteResponses, DeleteWarehouseApiV1ErpWarehousesWarehouseIdDeleteData, DeleteWarehouseApiV1ErpWarehousesWarehouseIdDeleteErrors, DeleteWarehouseApiV1ErpWarehousesWarehouseIdDeleteResponses, GetCurrentUserInfoApiV1SystemAuthMeGetData, GetCurrentUserInfoApiV1SystemAuthMeGetErrors, GetCurrentUserInfoApiV1SystemAuthMeGetResponses, GetPermissionApiV1SystemPermissionPermissionIdGetData, GetPermissionApiV1SystemPermissionPermissionIdGetErrors, GetPermissionApiV1SystemPermissionPermissionIdGetResponses, GetRoleApiV1SystemRoleRoleIdGetData, GetRoleApiV1SystemRoleRoleIdGetErrors, GetRoleApiV1SystemRoleRoleIdGetResponses, GetRolePermissionsApiV1SystemRoleRoleIdPermissionsGetData, GetRolePermissionsApiV1SystemRoleRoleIdPermissionsGetErrors, GetRolePermissionsApiV1SystemRoleRoleIdPermissionsGetResponses, GetSessionsApiV1SystemAuthSessionsGetData, GetSessionsApiV1SystemAuthSessionsGetResponses, ListPermissionsApiV1SystemPermissionGetData, ListPermissionsApiV1SystemPermissionGetErrors, ListPermissionsApiV1SystemPermissionGetResponses, ListRolesApiV1SystemRoleGetData, ListRolesApiV1SystemRoleGetErrors, ListRolesApiV1SystemRoleGetResponses, LoginApiV1SystemAuthLoginPostData, LoginApiV1SystemAuthLoginPostErrors, LoginApiV1SystemAuthLoginPostResponses, LogoutAllApiV1SystemAuthLogoutAllPostData, LogoutAllApiV1SystemAuthLogoutAllPostResponses, LogoutApiV1SystemAuthLogoutPostData, LogoutApiV1SystemAuthLogoutPostResponses, ReadCustomerApiV1ErpCustomersCustomerIdGetData, ReadCustomerApiV1ErpCustomersCustomerIdGetErrors, ReadCustomerApiV1ErpCustomersCustomerIdGetResponses, ReadCustomersApiV1ErpCustomersGetData, ReadCustomersApiV1ErpCustomersGetErrors, ReadCustomersApiV1ErpCustomersGetResponses, ReadInventoryApiV1ErpInventoryGetData, ReadInventoryApiV1ErpInventoryGetErrors, ReadInventoryApiV1ErpInventoryGetResponses, ReadInventoryByProductApiV1ErpInventoryProductProductIdGetData, ReadInventoryByProductApiV1ErpInventoryProductProductIdGetErrors, ReadInventoryByProductApiV1ErpInventoryProductProductIdGetResponses, ReadMovementsApiV1ErpInventoryMovementsGetData, ReadMovementsApiV1ErpInventoryMovementsGetErrors, ReadMovementsApiV1ErpInventoryMovementsGetResponses, ReadProductApiV1ErpProductsProductIdGetData, ReadProductApiV1ErpProductsProductIdGetErrors, ReadProductApiV1ErpProductsProductIdGetResponses, ReadProductsApiV1ErpProductsGetData, ReadProductsApiV1ErpProductsGetErrors, ReadProductsApiV1ErpProductsGetResponses, ReadPurchaseInboundApiV1ErpPurchaseInboundsInboundIdGetData, ReadPurchaseInboundApiV1ErpPurchaseInboundsInboundIdGetErrors, ReadPurchaseInboundApiV1ErpPurchaseInboundsInboundIdGetResponses, ReadPurchaseInboundsApiV1ErpPurchaseInboundsGetData, ReadPurchaseInboundsApiV1ErpPurchaseInboundsGetErrors, ReadPurchaseInboundsApiV1ErpPurchaseInboundsGetResponses, ReadPurchaseOrderApiV1ErpPurchaseOrdersOrderIdGetData, ReadPurchaseOrderApiV1ErpPurchaseOrdersOrderIdGetErrors, ReadPurchaseOrderApiV1ErpPurchaseOrdersOrderIdGetResponses, ReadPurchaseOrdersApiV1ErpPurchaseOrdersGetData, ReadPurchaseOrdersApiV1ErpPurchaseOrdersGetErrors, ReadPurchaseOrdersApiV1ErpPurchaseOrdersGetResponses, ReadSalesOrderApiV1ErpSalesOrdersOrderIdGetData, ReadSalesOrderApiV1ErpSalesOrdersOrderIdGetErrors, ReadSalesOrderApiV1ErpSalesOrdersOrderIdGetResponses, ReadSalesOrdersApiV1ErpSalesOrdersGetData, ReadSalesOrdersApiV1ErpSalesOrdersGetErrors, ReadSalesOrdersApiV1ErpSalesOrdersGetResponses, ReadSalesOutboundApiV1ErpSalesOutboundsOutboundIdGetData, ReadSalesOutboundApiV1ErpSalesOutboundsOutboundIdGetErrors, ReadSalesOutboundApiV1ErpSalesOutboundsOutboundIdGetResponses, ReadSalesOutboundsApiV1ErpSalesOutboundsGetData, ReadSalesOutboundsApiV1ErpSalesOutboundsGetErrors, ReadSalesOutboundsApiV1ErpSalesOutboundsGetResponses, ReadSupplierApiV1ErpSuppliersSupplierIdGetData, ReadSupplierApiV1ErpSuppliersSupplierIdGetErrors, ReadSupplierApiV1ErpSuppliersSupplierIdGetResponses, ReadSuppliersApiV1ErpSuppliersGetData, ReadSuppliersApiV1ErpSuppliersGetErrors, ReadSuppliersApiV1ErpSuppliersGetResponses, ReadWarehouseApiV1ErpWarehousesWarehouseIdGetData, ReadWarehouseApiV1ErpWarehousesWarehouseIdGetErrors, ReadWarehouseApiV1ErpWarehousesWarehouseIdGetResponses, ReadWarehousesApiV1ErpWarehousesGetData, ReadWarehousesApiV1ErpWarehousesGetErrors, ReadWarehousesApiV1ErpWarehousesGetResponses, RefreshTokenApiV1SystemAuthRefreshPostData, RefreshTokenApiV1SystemAuthRefreshPostErrors, RefreshTokenApiV1SystemAuthRefreshPostResponses, RegisterApiV1SystemAuthRegisterPostData, RegisterApiV1SystemAuthRegisterPostErrors, RegisterApiV1SystemAuthRegisterPostResponses, RootGetData, RootGetResponses, UnbindPermissionFromRoleApiV1SystemPermissionPermissionIdUnbindFromRoleRoleIdPostData, UnbindPermissionFromRoleApiV1SystemPermissionPermissionIdUnbindFromRoleRoleIdPostErrors, UnbindPermissionFromRoleApiV1SystemPermissionPermissionIdUnbindFromRoleRoleIdPostResponses, UnbindPermissionFromUserApiV1SystemPermissionPermissionIdUnbindFromUserUserIdPostData, UnbindPermissionFromUserApiV1SystemPermissionPermissionIdUnbindFromUserUserIdPostErrors, UnbindPermissionFromUserApiV1SystemPermissionPermissionIdUnbindFromUserUserIdPostResponses, UnbindRoleFromUserApiV1SystemRoleRoleIdUnbindFromUserUserIdPostData, UnbindRoleFromUserApiV1SystemRoleRoleIdUnbindFromUserUserIdPostErrors, UnbindRoleFromUserApiV1SystemRoleRoleIdUnbindFromUserUserIdPostResponses, UpdateCustomerApiV1ErpCustomersCustomerIdPatchData, UpdateCustomerApiV1ErpCustomersCustomerIdPatchErrors, UpdateCustomerApiV1ErpCustomersCustomerIdPatchResponses, UpdatePermissionApiV1SystemPermissionPermissionIdPutData, UpdatePermissionApiV1SystemPermissionPermissionIdPutErrors, UpdatePermissionApiV1SystemPermissionPermissionIdPutResponses, UpdateProductApiV1ErpProductsProductIdPatchData, UpdateProductApiV1ErpProductsProductIdPatchErrors, UpdateProductApiV1ErpProductsProductIdPatchResponses, UpdatePurchaseOrderStatusApiV1ErpPurchaseOrdersOrderIdStatusPatchData, UpdatePurchaseOrderStatusApiV1ErpPurchaseOrdersOrderIdStatusPatchErrors, UpdatePurchaseOrderStatusApiV1ErpPurchaseOrdersOrderIdStatusPatchResponses, UpdateRoleApiV1SystemRoleRoleIdPutData, UpdateRoleApiV1SystemRoleRoleIdPutErrors, UpdateRoleApiV1SystemRoleRoleIdPutResponses, UpdateSalesOrderStatusApiV1ErpSalesOrdersOrderIdStatusPatchData, UpdateSalesOrderStatusApiV1ErpSalesOrdersOrderIdStatusPatchErrors, UpdateSalesOrderStatusApiV1ErpSalesOrdersOrderIdStatusPatchResponses, UpdateSupplierApiV1ErpSuppliersSupplierIdPatchData, UpdateSupplierApiV1ErpSuppliersSupplierIdPatchErrors, UpdateSupplierApiV1ErpSuppliersSupplierIdPatchResponses, UpdateWarehouseApiV1ErpWarehousesWarehouseIdPatchData, UpdateWarehouseApiV1ErpWarehousesWarehouseIdPatchErrors, UpdateWarehouseApiV1ErpWarehousesWarehouseIdPatchResponses, UploadImageApiV1SystemUploadImagePostData, UploadImageApiV1SystemUploadImagePostErrors, UploadImageApiV1SystemUploadImagePostResponses } from './types.gen';
export type Options = Options2 & {
/**
@@ -18,112 +18,6 @@ export type Options;
};
-/**
- * Read Todos
- *
- * 获取待办事项列表
- *
- * Args:
- * offset: 分页偏移量,默认为0,用于指定从第几条记录开始查询
- * limit: 每页返回的最大记录数,默认为100,用于限制返回结果的数量
- * session: 数据库会话对象,用于执行数据库操作
- *
- * Returns:
- * List[TodoRead]: 待办事项列表,包含指定范围内的所有待办事项
- */
-export const readTodosApiV1TodosGet = (options?: Options) => (options?.client ?? client).get({
- security: [{ scheme: 'bearer', type: 'http' }],
- url: '/api/v1/todos/',
- ...options
-});
-
-/**
- * Create Todo
- *
- * 创建新的待办事项
- *
- * Args:
- * todo: 待办事项创建请求体,包含待办事项的详细信息
- * session: 数据库会话对象,用于执行数据库操作
- *
- * Returns:
- * TodoRead: 创建成功的待办事项对象,包含完整的待办事项信息
- */
-export const createTodoApiV1TodosPost = (options: Options) => (options.client ?? client).post({
- security: [{ scheme: 'bearer', type: 'http' }],
- url: '/api/v1/todos/',
- ...options,
- headers: {
- 'Content-Type': 'application/json',
- ...options.headers
- }
-});
-
-/**
- * Delete Todo
- *
- * 删除待办事项
- *
- * Args:
- * todo_id: 待办事项的唯一标识符
- * session: 数据库会话对象,用于执行数据库操作
- *
- * Returns:
- * dict: 包含操作结果的字典,{"ok": True} 表示删除成功
- *
- * Raises:
- * HTTPException: 当待办事项不存在时抛出404错误
- */
-export const deleteTodoApiV1TodosTodoIdDelete = (options: Options) => (options.client ?? client).delete({
- security: [{ scheme: 'bearer', type: 'http' }],
- url: '/api/v1/todos/{todo_id}',
- ...options
-});
-
-/**
- * Read Todo
- *
- * 根据ID获取单个待办事项
- *
- * Args:
- * todo_id: 待办事项的唯一标识符
- * session: 数据库会话对象,用于执行数据库操作
- *
- * Returns:
- * TodoRead: 查询到的待办事项对象
- *
- * Raises:
- * HTTPException: 当待办事项不存在时抛出404错误
- */
-export const readTodoApiV1TodosTodoIdGet = (options: Options) => (options.client ?? client).get({
- security: [{ scheme: 'bearer', type: 'http' }],
- url: '/api/v1/todos/{todo_id}',
- ...options
-});
-
-/**
- * Update Todo
- *
- * 更新待办事项信息
- *
- * Args:
- * todo_id: 待办事项的唯一标识符
- * todo_update: 待办事项更新请求体,包含需要更新的字段信息
- * session: 数据库会话对象,用于执行数据库操作
- *
- * Returns:
- * TodoRead: 更新后的待办事项对象,包含最新的待办事项信息
- */
-export const updateTodoApiV1TodosTodoIdPatch = (options: Options) => (options.client ?? client).patch({
- security: [{ scheme: 'bearer', type: 'http' }],
- url: '/api/v1/todos/{todo_id}',
- ...options,
- headers: {
- 'Content-Type': 'application/json',
- ...options.headers
- }
-});
-
/**
* Register
*
@@ -141,8 +35,8 @@ export const updateTodoApiV1TodosTodoIdPatch = (options: Options) => (options.client ?? client).post({
- url: '/api/v1/auth/register',
+export const registerApiV1SystemAuthRegisterPost = (options: Options) => (options.client ?? client).post({
+ url: '/api/v1/system/auth/register',
...options,
headers: {
'Content-Type': 'application/json',
@@ -171,8 +65,8 @@ export const registerApiV1AuthRegisterPost = (options: Options) => (options.client ?? client).post({
- url: '/api/v1/auth/login',
+export const loginApiV1SystemAuthLoginPost = (options: Options) => (options.client ?? client).post({
+ url: '/api/v1/system/auth/login',
...options,
headers: {
'Content-Type': 'application/json',
@@ -198,9 +92,9 @@ export const loginApiV1AuthLoginPost = (op
* Raises:
* HTTPException: 当刷新令牌无效或已过期时抛出401错误
*/
-export const refreshTokenApiV1AuthRefreshPost = (options?: Options) => (options?.client ?? client).post({
+export const refreshTokenApiV1SystemAuthRefreshPost = (options?: Options) => (options?.client ?? client).post({
security: [{ scheme: 'bearer', type: 'http' }],
- url: '/api/v1/auth/refresh',
+ url: '/api/v1/system/auth/refresh',
...options
});
@@ -217,9 +111,9 @@ export const refreshTokenApiV1AuthRefreshPost = (options?: Options) => (options?.client ?? client).post({
+export const logoutApiV1SystemAuthLogoutPost = (options?: Options) => (options?.client ?? client).post({
security: [{ scheme: 'bearer', type: 'http' }],
- url: '/api/v1/auth/logout',
+ url: '/api/v1/system/auth/logout',
...options
});
@@ -236,9 +130,9 @@ export const logoutApiV1AuthLogoutPost = (
* Returns:
* Userlogout: 登出成功响应,包含成功消息和状态码200
*/
-export const logoutAllApiV1AuthLogoutAllPost = (options?: Options) => (options?.client ?? client).post({
+export const logoutAllApiV1SystemAuthLogoutAllPost = (options?: Options) => (options?.client ?? client).post({
security: [{ scheme: 'bearer', type: 'http' }],
- url: '/api/v1/auth/logout-all',
+ url: '/api/v1/system/auth/logout-all',
...options
});
@@ -255,9 +149,9 @@ export const logoutAllApiV1AuthLogoutAllPost = (options?: Options) => (options?.client ?? client).get({
+export const getSessionsApiV1SystemAuthSessionsGet = (options?: Options) => (options?.client ?? client).get({
security: [{ scheme: 'bearer', type: 'http' }],
- url: '/api/v1/auth/sessions',
+ url: '/api/v1/system/auth/sessions',
...options
});
@@ -278,9 +172,431 @@ export const getSessionsApiV1AuthSessionsGet = (options?: Options) => (options?.client ?? client).get({
+export const getCurrentUserInfoApiV1SystemAuthMeGet = (options?: Options) => (options?.client ?? client).get({
security: [{ scheme: 'bearer', type: 'http' }],
- url: '/api/v1/auth/me',
+ url: '/api/v1/system/auth/me',
+ ...options
+});
+
+/**
+ * 获取权限列表
+ *
+ * 获取权限列表
+ *
+ * 返回系统中的所有权限项,支持分页和按资源名称筛选。
+ *
+ * Args:
+ * skip: 跳过的记录数,用于分页
+ * limit: 返回的最大记录数,用于分页
+ * resource: 资源名称筛选条件,可选
+ * session: 数据库会话对象
+ * current_user: 当前登录用户
+ *
+ * Returns:
+ * list[Permission]: 权限对象列表
+ */
+export const listPermissionsApiV1SystemPermissionGet = (options?: Options) => (options?.client ?? client).get({
+ security: [{ scheme: 'bearer', type: 'http' }],
+ url: '/api/v1/system/permission',
+ ...options
+});
+
+/**
+ * 创建权限
+ *
+ * 创建权限
+ *
+ * 创建新的权限项,权限名称格式应为"资源:操作",如"user:create"。
+ *
+ * Args:
+ * permission_data: 权限创建数据,包含名称、资源、操作和描述等信息
+ * session: 数据库会话对象
+ * current_user: 当前登录用户
+ *
+ * Returns:
+ * Permission: 创建成功的权限对象
+ *
+ * Raises:
+ * HTTPException: 当权限名称已存在时抛出400错误
+ */
+export const createPermissionApiV1SystemPermissionPost = (options: Options) => (options.client ?? client).post({
+ security: [{ scheme: 'bearer', type: 'http' }],
+ url: '/api/v1/system/permission',
+ ...options,
+ headers: {
+ 'Content-Type': 'application/json',
+ ...options.headers
+ }
+});
+
+/**
+ * 删除权限
+ *
+ * 删除权限
+ *
+ * 删除指定权限。如果权限已被分配给角色,则无法删除。
+ *
+ * Args:
+ * permission_id: 权限ID
+ * session: 数据库会话对象
+ * current_user: 当前登录用户
+ *
+ * Returns:
+ * dict: 删除成功响应消息
+ *
+ * Raises:
+ * HTTPException: 当权限被角色使用时抛出400错误,权限不存在时抛出404错误
+ */
+export const deletePermissionApiV1SystemPermissionPermissionIdDelete = (options: Options) => (options.client ?? client).delete({
+ security: [{ scheme: 'bearer', type: 'http' }],
+ url: '/api/v1/system/permission/{permission_id}',
+ ...options
+});
+
+/**
+ * 获取权限详情
+ *
+ * 获取权限详情
+ *
+ * 根据权限ID获取指定权限的详细信息。
+ *
+ * Args:
+ * permission_id: 权限ID
+ * session: 数据库会话对象
+ * current_user: 当前登录用户
+ *
+ * Returns:
+ * Permission: 权限对象
+ *
+ * Raises:
+ * HTTPException: 当权限不存在时抛出404错误
+ */
+export const getPermissionApiV1SystemPermissionPermissionIdGet = (options: Options) => (options.client ?? client).get({
+ security: [{ scheme: 'bearer', type: 'http' }],
+ url: '/api/v1/system/permission/{permission_id}',
+ ...options
+});
+
+/**
+ * 更新权限
+ *
+ * 更新权限信息
+ *
+ * 更新指定权限的名称、描述、资源或操作等信息。
+ *
+ * Args:
+ * permission_id: 权限ID
+ * permission_update: 权限更新数据,所有字段可选
+ * session: 数据库会话对象
+ * current_user: 当前登录用户
+ *
+ * Returns:
+ * Permission: 更新后的权限对象
+ *
+ * Raises:
+ * HTTPException: 当权限不存在时抛出404错误
+ */
+export const updatePermissionApiV1SystemPermissionPermissionIdPut = (options: Options) => (options.client ?? client).put({
+ security: [{ scheme: 'bearer', type: 'http' }],
+ url: '/api/v1/system/permission/{permission_id}',
+ ...options,
+ headers: {
+ 'Content-Type': 'application/json',
+ ...options.headers
+ }
+});
+
+/**
+ * 将权限分配给角色
+ *
+ * 将权限分配给角色
+ *
+ * 将指定权限分配给指定角色。
+ *
+ * Args:
+ * permission_id: 权限ID
+ * role_id: 角色ID
+ * session: 数据库会话对象
+ * current_user: 当前登录用户
+ *
+ * Returns:
+ * dict: 分配成功响应消息
+ *
+ * Raises:
+ * HTTPException: 当权限已分配给角色或角色/权限不存在时抛出错误
+ */
+export const assignPermissionToRoleApiV1SystemPermissionPermissionIdAssignToRoleRoleIdPost = (options: Options) => (options.client ?? client).post({
+ security: [{ scheme: 'bearer', type: 'http' }],
+ url: '/api/v1/system/permission/{permission_id}/assign-to-role/{role_id}',
+ ...options
+});
+
+/**
+ * 从角色解除权限绑定
+ *
+ * 从角色解除权限绑定
+ *
+ * 将指定权限从指定角色中移除。
+ *
+ * Args:
+ * permission_id: 权限ID
+ * role_id: 角色ID
+ * session: 数据库会话对象
+ * current_user: 当前登录用户
+ *
+ * Returns:
+ * dict: 解绑成功响应消息
+ *
+ * Raises:
+ * HTTPException: 当角色不存在时抛出404错误
+ */
+export const unbindPermissionFromRoleApiV1SystemPermissionPermissionIdUnbindFromRoleRoleIdPost = (options: Options) => (options.client ?? client).post({
+ security: [{ scheme: 'bearer', type: 'http' }],
+ url: '/api/v1/system/permission/{permission_id}/unbind-from-role/{role_id}',
+ ...options
+});
+
+/**
+ * 将权限分配给用户
+ *
+ * 将权限分配给用户
+ *
+ * 将指定权限分配给指定用户。如果用户没有专属角色,则会自动创建一个专属角色。
+ *
+ * Args:
+ * permission_id: 权限ID
+ * user_id: 用户UUID
+ * session: 数据库会话对象
+ * current_user: 当前登录用户
+ *
+ * Returns:
+ * dict: 分配成功响应消息
+ *
+ * Raises:
+ * HTTPException: 当用户或权限不存在时抛出404错误
+ */
+export const assignPermissionToUserApiV1SystemPermissionPermissionIdAssignToUserUserIdPost = (options: Options) => (options.client ?? client).post({
+ security: [{ scheme: 'bearer', type: 'http' }],
+ url: '/api/v1/system/permission/{permission_id}/assign-to-user/{user_id}',
+ ...options
+});
+
+/**
+ * 从用户解除权限绑定
+ *
+ * 从用户解除权限绑定
+ *
+ * 将指定权限从指定用户中移除。
+ *
+ * Args:
+ * permission_id: 权限ID
+ * user_id: 用户UUID
+ * session: 数据库会话对象
+ * current_user: 当前登录用户
+ *
+ * Returns:
+ * dict: 解绑成功响应消息
+ *
+ * Raises:
+ * HTTPException: 当用户或角色不存在时抛出404错误
+ */
+export const unbindPermissionFromUserApiV1SystemPermissionPermissionIdUnbindFromUserUserIdPost = (options: Options) => (options.client ?? client).post({
+ security: [{ scheme: 'bearer', type: 'http' }],
+ url: '/api/v1/system/permission/{permission_id}/unbind-from-user/{user_id}',
+ ...options
+});
+
+/**
+ * 获取角色列表
+ *
+ * 获取角色列表
+ *
+ * 返回系统中的所有角色,支持分页。
+ *
+ * Args:
+ * skip: 跳过的记录数,用于分页
+ * limit: 返回的最大记录数,用于分页
+ * session: 数据库会话对象
+ * current_user: 当前登录用户
+ *
+ * Returns:
+ * list[Role]: 角色对象列表
+ */
+export const listRolesApiV1SystemRoleGet = (options?: Options) => (options?.client ?? client).get({
+ security: [{ scheme: 'bearer', type: 'http' }],
+ url: '/api/v1/system/role',
+ ...options
+});
+
+/**
+ * 创建角色
+ *
+ * 创建角色
+ *
+ * 创建新的角色,如 admin、manager、operator 等。
+ *
+ * Args:
+ * name: 角色名称
+ * description: 角色描述,可选
+ * is_only_user: 是否仅用于单个用户,默认为False
+ * session: 数据库会话对象
+ * current_user: 当前登录用户
+ *
+ * Returns:
+ * Role: 创建成功的角色对象
+ *
+ * Raises:
+ * HTTPException: 当角色名称已存在时抛出400错误
+ */
+export const createRoleApiV1SystemRolePost = (options: Options) => (options.client ?? client).post({
+ security: [{ scheme: 'bearer', type: 'http' }],
+ url: '/api/v1/system/role',
+ ...options
+});
+
+/**
+ * 删除角色
+ *
+ * 删除角色
+ *
+ * 删除指定角色。如果角色已被分配给用户,则无法删除。
+ *
+ * Args:
+ * role_id: 角色ID
+ * session: 数据库会话对象
+ * current_user: 当前登录用户
+ *
+ * Returns:
+ * dict: 删除成功响应消息
+ *
+ * Raises:
+ * HTTPException: 当角色被用户使用时抛出400错误,角色不存在时抛出404错误
+ */
+export const deleteRoleApiV1SystemRoleRoleIdDelete = (options: Options) => (options.client ?? client).delete({
+ security: [{ scheme: 'bearer', type: 'http' }],
+ url: '/api/v1/system/role/{role_id}',
+ ...options
+});
+
+/**
+ * 获取角色详情
+ *
+ * 获取角色详情
+ *
+ * 根据角色ID获取指定角色的详细信息。
+ *
+ * Args:
+ * role_id: 角色ID
+ * session: 数据库会话对象
+ * current_user: 当前登录用户
+ *
+ * Returns:
+ * Role: 角色对象
+ *
+ * Raises:
+ * HTTPException: 当角色不存在时抛出404错误
+ */
+export const getRoleApiV1SystemRoleRoleIdGet = (options: Options) => (options.client ?? client).get({
+ security: [{ scheme: 'bearer', type: 'http' }],
+ url: '/api/v1/system/role/{role_id}',
+ ...options
+});
+
+/**
+ * 更新角色
+ *
+ * 更新角色信息
+ *
+ * 更新指定角色的名称或描述等信息。
+ *
+ * Args:
+ * role_id: 角色ID
+ * role_update: 角色更新数据,所有字段可选
+ * session: 数据库会话对象
+ * current_user: 当前登录用户
+ *
+ * Returns:
+ * Role: 更新后的角色对象
+ *
+ * Raises:
+ * HTTPException: 当角色不存在时抛出404错误
+ */
+export const updateRoleApiV1SystemRoleRoleIdPut = (options: Options) => (options.client ?? client).put({
+ security: [{ scheme: 'bearer', type: 'http' }],
+ url: '/api/v1/system/role/{role_id}',
+ ...options,
+ headers: {
+ 'Content-Type': 'application/json',
+ ...options.headers
+ }
+});
+
+/**
+ * 将角色分配给用户
+ *
+ * 将角色分配给用户
+ *
+ * 将指定角色分配给指定用户。
+ *
+ * Args:
+ * role_id: 角色ID
+ * user_id: 用户UUID
+ * session: 数据库会话对象
+ * current_user: 当前登录用户
+ *
+ * Returns:
+ * dict: 分配成功响应消息
+ *
+ * Raises:
+ * HTTPException: 当角色或用户不存在时抛出404错误
+ */
+export const assignRoleToUserApiV1SystemRoleRoleIdAssignToUserUserIdPost = (options: Options) => (options.client ?? client).post({
+ security: [{ scheme: 'bearer', type: 'http' }],
+ url: '/api/v1/system/role/{role_id}/assign-to-user/{user_id}',
+ ...options
+});
+
+/**
+ * 从用户解除角色绑定
+ *
+ * 从用户解除角色绑定
+ *
+ * 将指定角色从指定用户中移除。
+ *
+ * Args:
+ * role_id: 角色ID
+ * user_id: 用户UUID
+ * session: 数据库会话对象
+ * current_user: 当前登录用户
+ *
+ * Returns:
+ * dict: 解绑成功响应消息
+ *
+ * Raises:
+ * HTTPException: 当用户不存在时抛出404错误
+ */
+export const unbindRoleFromUserApiV1SystemRoleRoleIdUnbindFromUserUserIdPost = (options: Options) => (options.client ?? client).post({
+ security: [{ scheme: 'bearer', type: 'http' }],
+ url: '/api/v1/system/role/{role_id}/unbind-from-user/{user_id}',
+ ...options
+});
+
+/**
+ * 获取角色的权限列表
+ *
+ * 获取指定角色的所有权限
+ *
+ * Args:
+ * role_id: 角色ID
+ * session: 数据库会话对象
+ * current_user: 当前登录用户
+ *
+ * Returns:
+ * list: 权限对象列表
+ */
+export const getRolePermissionsApiV1SystemRoleRoleIdPermissionsGet = (options: Options) => (options.client ?? client).get({
+ security: [{ scheme: 'bearer', type: 'http' }],
+ url: '/api/v1/system/role/{role_id}/permissions',
...options
});
@@ -311,10 +627,10 @@ export const getCurrentUserInfoApiV1AuthMeGet = (options: Options) => (options.client ?? client).post({
+export const uploadImageApiV1SystemUploadImagePost = (options: Options) => (options.client ?? client).post({
...formDataBodySerializer,
security: [{ scheme: 'bearer', type: 'http' }],
- url: '/api/v1/upload/image',
+ url: '/api/v1/system/upload/image',
...options,
headers: {
'Content-Type': null,
@@ -323,49 +639,20 @@ export const uploadImageApiV1UploadImagePost = (options?: Options) => (options?.client ?? client).get({
+export const readProductsApiV1ErpProductsGet = (options?: Options) => (options?.client ?? client).get({
security: [{ scheme: 'bearer', type: 'http' }],
- url: '/api/v1/permissions',
+ url: '/api/v1/erp/products/',
...options
});
/**
- * 创建权限
- *
- * 创建权限
- *
- * 创建新的权限项,权限名称格式应为"资源:操作",如"user:create"。
- *
- * Args:
- * permission_data: 权限创建数据,包含名称、资源、操作和描述等信息
- * session: 数据库会话对象
- * current_user: 当前登录用户
- *
- * Returns:
- * Permission: 创建成功的权限对象
- *
- * Raises:
- * HTTPException: 当权限名称已存在时抛出400错误
+ * Create Product
*/
-export const createPermissionApiV1PermissionsPost = (options: Options) => (options.client ?? client).post({
+export const createProductApiV1ErpProductsPost = (options: Options) => (options.client ?? client).post({
security: [{ scheme: 'bearer', type: 'http' }],
- url: '/api/v1/permissions',
+ url: '/api/v1/erp/products/',
...options,
headers: {
'Content-Type': 'application/json',
@@ -374,75 +661,29 @@ export const createPermissionApiV1PermissionsPost = (options: Options) => (options.client ?? client).delete({
+export const deleteProductApiV1ErpProductsProductIdDelete = (options: Options) => (options.client ?? client).delete({
security: [{ scheme: 'bearer', type: 'http' }],
- url: '/api/v1/permissions/{permission_id}',
+ url: '/api/v1/erp/products/{product_id}',
...options
});
/**
- * 获取权限详情
- *
- * 获取权限详情
- *
- * 根据权限ID获取指定权限的详细信息。
- *
- * Args:
- * permission_id: 权限ID
- * session: 数据库会话对象
- * current_user: 当前登录用户
- *
- * Returns:
- * Permission: 权限对象
- *
- * Raises:
- * HTTPException: 当权限不存在时抛出404错误
+ * Read Product
*/
-export const getPermissionApiV1PermissionsPermissionIdGet = (options: Options) => (options.client ?? client).get({
+export const readProductApiV1ErpProductsProductIdGet = (options: Options) => (options.client ?? client).get({
security: [{ scheme: 'bearer', type: 'http' }],
- url: '/api/v1/permissions/{permission_id}',
+ url: '/api/v1/erp/products/{product_id}',
...options
});
/**
- * 更新权限
- *
- * 更新权限信息
- *
- * 更新指定权限的名称、描述、资源或操作等信息。
- *
- * Args:
- * permission_id: 权限ID
- * permission_update: 权限更新数据,所有字段可选
- * session: 数据库会话对象
- * current_user: 当前登录用户
- *
- * Returns:
- * Permission: 更新后的权限对象
- *
- * Raises:
- * HTTPException: 当权限不存在时抛出404错误
+ * Update Product
*/
-export const updatePermissionApiV1PermissionsPermissionIdPut = (options: Options) => (options.client ?? client).put({
+export const updateProductApiV1ErpProductsProductIdPatch = (options: Options) => (options.client ?? client).patch({
security: [{ scheme: 'bearer', type: 'http' }],
- url: '/api/v1/permissions/{permission_id}',
+ url: '/api/v1/erp/products/{product_id}',
...options,
headers: {
'Content-Type': 'application/json',
@@ -451,223 +692,20 @@ export const updatePermissionApiV1PermissionsPermissionIdPut = (options: Options) => (options.client ?? client).post({
+export const readWarehousesApiV1ErpWarehousesGet = (options?: Options) => (options?.client ?? client).get({
security: [{ scheme: 'bearer', type: 'http' }],
- url: '/api/v1/permissions/{permission_id}/assign-to-role/{role_id}',
+ url: '/api/v1/erp/warehouses/',
...options
});
/**
- * 从角色解除权限绑定
- *
- * 从角色解除权限绑定
- *
- * 将指定权限从指定角色中移除。
- *
- * Args:
- * permission_id: 权限ID
- * role_id: 角色ID
- * session: 数据库会话对象
- * current_user: 当前登录用户
- *
- * Returns:
- * dict: 解绑成功响应消息
- *
- * Raises:
- * HTTPException: 当角色不存在时抛出404错误
+ * Create Warehouse
*/
-export const unbindPermissionFromRoleApiV1PermissionsPermissionIdUnbindFromRoleRoleIdPost = (options: Options) => (options.client ?? client).post({
+export const createWarehouseApiV1ErpWarehousesPost = (options: Options) => (options.client ?? client).post({
security: [{ scheme: 'bearer', type: 'http' }],
- url: '/api/v1/permissions/{permission_id}/unbind-from-role/{role_id}',
- ...options
-});
-
-/**
- * 将权限分配给用户
- *
- * 将权限分配给用户
- *
- * 将指定权限分配给指定用户。如果用户没有专属角色,则会自动创建一个专属角色。
- *
- * Args:
- * permission_id: 权限ID
- * user_id: 用户UUID
- * session: 数据库会话对象
- * current_user: 当前登录用户
- *
- * Returns:
- * dict: 分配成功响应消息
- *
- * Raises:
- * HTTPException: 当用户或权限不存在时抛出404错误
- */
-export const assignPermissionToUserApiV1PermissionsPermissionIdAssignToUserUserIdPost = (options: Options) => (options.client ?? client).post({
- security: [{ scheme: 'bearer', type: 'http' }],
- url: '/api/v1/permissions/{permission_id}/assign-to-user/{user_id}',
- ...options
-});
-
-/**
- * 从用户解除权限绑定
- *
- * 从用户解除权限绑定
- *
- * 将指定权限从指定用户中移除。
- *
- * Args:
- * permission_id: 权限ID
- * user_id: 用户UUID
- * session: 数据库会话对象
- * current_user: 当前登录用户
- *
- * Returns:
- * dict: 解绑成功响应消息
- *
- * Raises:
- * HTTPException: 当用户或角色不存在时抛出404错误
- */
-export const unbindPermissionFromUserApiV1PermissionsPermissionIdUnbindFromUserUserIdPost = (options: Options) => (options.client ?? client).post({
- security: [{ scheme: 'bearer', type: 'http' }],
- url: '/api/v1/permissions/{permission_id}/unbind-from-user/{user_id}',
- ...options
-});
-
-/**
- * 获取角色列表
- *
- * 获取角色列表
- *
- * 返回系统中的所有角色,支持分页。
- *
- * Args:
- * skip: 跳过的记录数,用于分页
- * limit: 返回的最大记录数,用于分页
- * session: 数据库会话对象
- * current_user: 当前登录用户
- *
- * Returns:
- * list[Role]: 角色对象列表
- */
-export const listRolesApiV1RolesGet = (options?: Options) => (options?.client ?? client).get({
- security: [{ scheme: 'bearer', type: 'http' }],
- url: '/api/v1/roles',
- ...options
-});
-
-/**
- * 创建角色
- *
- * 创建角色
- *
- * 创建新的角色,如 admin、manager、operator 等。
- *
- * Args:
- * name: 角色名称
- * description: 角色描述,可选
- * is_only_user: 是否仅用于单个用户,默认为False
- * session: 数据库会话对象
- * current_user: 当前登录用户
- *
- * Returns:
- * Role: 创建成功的角色对象
- *
- * Raises:
- * HTTPException: 当角色名称已存在时抛出400错误
- */
-export const createRoleApiV1RolesPost = (options: Options) => (options.client ?? client).post({
- security: [{ scheme: 'bearer', type: 'http' }],
- url: '/api/v1/roles',
- ...options
-});
-
-/**
- * 删除角色
- *
- * 删除角色
- *
- * 删除指定角色。如果角色已被分配给用户,则无法删除。
- *
- * Args:
- * role_id: 角色ID
- * session: 数据库会话对象
- * current_user: 当前登录用户
- *
- * Returns:
- * dict: 删除成功响应消息
- *
- * Raises:
- * HTTPException: 当角色被用户使用时抛出400错误,角色不存在时抛出404错误
- */
-export const deleteRoleApiV1RolesRoleIdDelete = (options: Options) => (options.client ?? client).delete({
- security: [{ scheme: 'bearer', type: 'http' }],
- url: '/api/v1/roles/{role_id}',
- ...options
-});
-
-/**
- * 获取角色详情
- *
- * 获取角色详情
- *
- * 根据角色ID获取指定角色的详细信息。
- *
- * Args:
- * role_id: 角色ID
- * session: 数据库会话对象
- * current_user: 当前登录用户
- *
- * Returns:
- * Role: 角色对象
- *
- * Raises:
- * HTTPException: 当角色不存在时抛出404错误
- */
-export const getRoleApiV1RolesRoleIdGet = (options: Options) => (options.client ?? client).get({
- security: [{ scheme: 'bearer', type: 'http' }],
- url: '/api/v1/roles/{role_id}',
- ...options
-});
-
-/**
- * 更新角色
- *
- * 更新角色信息
- *
- * 更新指定角色的名称或描述等信息。
- *
- * Args:
- * role_id: 角色ID
- * role_update: 角色更新数据,所有字段可选
- * session: 数据库会话对象
- * current_user: 当前登录用户
- *
- * Returns:
- * Role: 更新后的角色对象
- *
- * Raises:
- * HTTPException: 当角色不存在时抛出404错误
- */
-export const updateRoleApiV1RolesRoleIdPut = (options: Options) => (options.client ?? client).put({
- security: [{ scheme: 'bearer', type: 'http' }],
- url: '/api/v1/roles/{role_id}',
+ url: '/api/v1/erp/warehouses/',
...options,
headers: {
'Content-Type': 'application/json',
@@ -676,121 +714,387 @@ export const updateRoleApiV1RolesRoleIdPut = (options: Options) => (options.client ?? client).post({
+export const deleteWarehouseApiV1ErpWarehousesWarehouseIdDelete = (options: Options) => (options.client ?? client).delete({
security: [{ scheme: 'bearer', type: 'http' }],
- url: '/api/v1/roles/{role_id}/assign-to-user/{user_id}',
+ url: '/api/v1/erp/warehouses/{warehouse_id}',
...options
});
/**
- * 从用户解除角色绑定
- *
- * 从用户解除角色绑定
- *
- * 将指定角色从指定用户中移除。
- *
- * Args:
- * role_id: 角色ID
- * user_id: 用户UUID
- * session: 数据库会话对象
- * current_user: 当前登录用户
- *
- * Returns:
- * dict: 解绑成功响应消息
- *
- * Raises:
- * HTTPException: 当用户不存在时抛出404错误
+ * Read Warehouse
*/
-export const unbindRoleFromUserApiV1RolesRoleIdUnbindFromUserUserIdPost = (options: Options) => (options.client ?? client).post({
+export const readWarehouseApiV1ErpWarehousesWarehouseIdGet = (options: Options) => (options.client ?? client).get({
security: [{ scheme: 'bearer', type: 'http' }],
- url: '/api/v1/roles/{role_id}/unbind-from-user/{user_id}',
+ url: '/api/v1/erp/warehouses/{warehouse_id}',
...options
});
/**
- * 获取角色的权限列表
- *
- * 获取指定角色的所有权限
- *
- * Args:
- * role_id: 角色ID
- * session: 数据库会话对象
- * current_user: 当前登录用户
- *
- * Returns:
- * list: 权限对象列表
+ * Update Warehouse
*/
-export const getRolePermissionsApiV1RolesRoleIdPermissionsGet = (options: Options) => (options.client ?? client).get({
+export const updateWarehouseApiV1ErpWarehousesWarehouseIdPatch = (options: Options) => (options.client ?? client).patch({
security: [{ scheme: 'bearer', type: 'http' }],
- url: '/api/v1/roles/{role_id}/permissions',
+ url: '/api/v1/erp/warehouses/{warehouse_id}',
+ ...options,
+ headers: {
+ 'Content-Type': 'application/json',
+ ...options.headers
+ }
+});
+
+/**
+ * Read Inventory
+ */
+export const readInventoryApiV1ErpInventoryGet = (options?: Options) => (options?.client ?? client).get({
+ security: [{ scheme: 'bearer', type: 'http' }],
+ url: '/api/v1/erp/inventory/',
...options
});
/**
- * 为角色分配权限
- *
- * 为角色分配权限
- *
- * 将指定权限分配给指定角色。
- *
- * Args:
- * role_id: 角色ID
- * permission_id: 权限ID
- * session: 数据库会话对象
- * current_user: 当前登录用户
- *
- * Returns:
- * dict: 分配成功响应消息
- *
- * Raises:
- * HTTPException: 当权限已分配给角色或角色/权限不存在时抛出错误
+ * Read Inventory By Product
*/
-export const assignPermissionToRoleApiV1RolesRoleIdAssignPermissionPermissionIdPost = (options: Options) => (options.client ?? client).post({
+export const readInventoryByProductApiV1ErpInventoryProductProductIdGet = (options: Options) => (options.client ?? client).get({
security: [{ scheme: 'bearer', type: 'http' }],
- url: '/api/v1/roles/{role_id}/assign-permission/{permission_id}',
+ url: '/api/v1/erp/inventory/product/{product_id}',
...options
});
/**
- * 从角色解除权限绑定
- *
- * 从角色解除权限绑定
- *
- * 将指定权限从指定角色中移除。
- *
- * Args:
- * role_id: 角色ID
- * permission_id: 权限ID
- * session: 数据库会话对象
- * current_user: 当前登录用户
- *
- * Returns:
- * dict: 解绑成功响应消息
- *
- * Raises:
- * HTTPException: 当角色不存在时抛出404错误
+ * Adjust Inventory
*/
-export const unbindPermissionFromRoleApiV1RolesRoleIdUnbindPermissionPermissionIdPost = (options: Options) => (options.client ?? client).post({
+export const adjustInventoryApiV1ErpInventoryAdjustPost = (options: Options) => (options.client ?? client).post({
security: [{ scheme: 'bearer', type: 'http' }],
- url: '/api/v1/roles/{role_id}/unbind-permission/{permission_id}',
+ url: '/api/v1/erp/inventory/adjust',
+ ...options,
+ headers: {
+ 'Content-Type': 'application/json',
+ ...options.headers
+ }
+});
+
+/**
+ * Read Movements
+ */
+export const readMovementsApiV1ErpInventoryMovementsGet = (options?: Options) => (options?.client ?? client).get({
+ security: [{ scheme: 'bearer', type: 'http' }],
+ url: '/api/v1/erp/inventory/movements',
+ ...options
+});
+
+/**
+ * Read Suppliers
+ */
+export const readSuppliersApiV1ErpSuppliersGet = (options?: Options) => (options?.client ?? client).get({
+ security: [{ scheme: 'bearer', type: 'http' }],
+ url: '/api/v1/erp/suppliers/',
+ ...options
+});
+
+/**
+ * Create Supplier
+ */
+export const createSupplierApiV1ErpSuppliersPost = (options: Options) => (options.client ?? client).post({
+ security: [{ scheme: 'bearer', type: 'http' }],
+ url: '/api/v1/erp/suppliers/',
+ ...options,
+ headers: {
+ 'Content-Type': 'application/json',
+ ...options.headers
+ }
+});
+
+/**
+ * Delete Supplier
+ */
+export const deleteSupplierApiV1ErpSuppliersSupplierIdDelete = (options: Options) => (options.client ?? client).delete({
+ security: [{ scheme: 'bearer', type: 'http' }],
+ url: '/api/v1/erp/suppliers/{supplier_id}',
+ ...options
+});
+
+/**
+ * Read Supplier
+ */
+export const readSupplierApiV1ErpSuppliersSupplierIdGet = (options: Options) => (options.client ?? client).get({
+ security: [{ scheme: 'bearer', type: 'http' }],
+ url: '/api/v1/erp/suppliers/{supplier_id}',
+ ...options
+});
+
+/**
+ * Update Supplier
+ */
+export const updateSupplierApiV1ErpSuppliersSupplierIdPatch = (options: Options) => (options.client ?? client).patch({
+ security: [{ scheme: 'bearer', type: 'http' }],
+ url: '/api/v1/erp/suppliers/{supplier_id}',
+ ...options,
+ headers: {
+ 'Content-Type': 'application/json',
+ ...options.headers
+ }
+});
+
+/**
+ * Read Customers
+ */
+export const readCustomersApiV1ErpCustomersGet = (options?: Options) => (options?.client ?? client).get({
+ security: [{ scheme: 'bearer', type: 'http' }],
+ url: '/api/v1/erp/customers/',
+ ...options
+});
+
+/**
+ * Create Customer
+ */
+export const createCustomerApiV1ErpCustomersPost = (options: Options) => (options.client ?? client).post({
+ security: [{ scheme: 'bearer', type: 'http' }],
+ url: '/api/v1/erp/customers/',
+ ...options,
+ headers: {
+ 'Content-Type': 'application/json',
+ ...options.headers
+ }
+});
+
+/**
+ * Delete Customer
+ */
+export const deleteCustomerApiV1ErpCustomersCustomerIdDelete = (options: Options) => (options.client ?? client).delete({
+ security: [{ scheme: 'bearer', type: 'http' }],
+ url: '/api/v1/erp/customers/{customer_id}',
+ ...options
+});
+
+/**
+ * Read Customer
+ */
+export const readCustomerApiV1ErpCustomersCustomerIdGet = (options: Options) => (options.client ?? client).get({
+ security: [{ scheme: 'bearer', type: 'http' }],
+ url: '/api/v1/erp/customers/{customer_id}',
+ ...options
+});
+
+/**
+ * Update Customer
+ */
+export const updateCustomerApiV1ErpCustomersCustomerIdPatch = (options: Options) => (options.client ?? client).patch({
+ security: [{ scheme: 'bearer', type: 'http' }],
+ url: '/api/v1/erp/customers/{customer_id}',
+ ...options,
+ headers: {
+ 'Content-Type': 'application/json',
+ ...options.headers
+ }
+});
+
+/**
+ * Read Purchase Orders
+ */
+export const readPurchaseOrdersApiV1ErpPurchaseOrdersGet = (options?: Options) => (options?.client ?? client).get({
+ security: [{ scheme: 'bearer', type: 'http' }],
+ url: '/api/v1/erp/purchase-orders/',
+ ...options
+});
+
+/**
+ * Create Purchase Order
+ */
+export const createPurchaseOrderApiV1ErpPurchaseOrdersPost = (options: Options) => (options.client ?? client).post