生产管理系统 - 审计日志开发

This commit is contained in:
2025-11-10 14:42:01 +08:00
6 changed files with 393 additions and 1008 deletions

View File

@@ -23,7 +23,7 @@
* filekorolheader: 物联设备数据接入页面 - IoT设备数据管理中心
* 功能:设备列表管理、实时数据监控、数据对比分析、报告生成
* 路径:/ai-crop-model/data-sense-center/iot
* 规范遵循crop-x/docs/开发项目规范.md使用useReducer状态管理shadcn语义化样式
* 规范遵循crop-x-new/docs/开发项目规范.md使用useReducer状态管理shadcn语义化样式
*/
```
@@ -216,7 +216,7 @@ src/app/(app)/land-information/archive/statistics/
### 9.注意乱码原则
生成的代码注意看看有没有乱码必须遵守utf-8编码
### 10.接口调用原则。
接口必须调用 D:\code\repotest\smart-crop-ui\crop-x\src\lib\api\sdk.gen.ts 这个里面的接口
接口必须调用 D:\code\repotest\smart-crop-ui\crop-x-new\src\lib\api\sdk.gen.ts 这个里面的接口
比如 /api/v1/departments/tree 这个路径就是要调用export const getDepartmentTreeApiV1DepartmentsDepartmentsTreeGet = <ThrowOnError extends boolean = false>(options?: Options<GetDepartmentTreeApiV1DepartmentsDepartmentsTreeGetData, ThrowOnError>) => {
return (options?.client ?? client).get<GetDepartmentTreeApiV1DepartmentsDepartmentsTreeGetResponses, unknown, ThrowOnError>({
security: [
@@ -229,7 +229,7 @@ src/app/(app)/land-information/archive/statistics/
...options
});
};
实际使用的时候要参考D:\code\repotest\smart-crop-ui\crop-x\src\app\(app)\central-config\tenant\audit-history\components\auditHistoryApi.ts 里面
实际使用的时候要参考D:\code\repotest\smart-crop-ui\crop-x-new\src\app\(app)\central-config\tenant\audit-history\components\auditHistoryApi.ts 里面
import {
getTenantAuditLogsApiV1TenantsAuditLogsGet,
} from "@/lib/api/sdk.gen"; 这个引入和用法。