生产管理系统 - 角色管理、员工管理主页面联调
This commit is contained in:
@@ -213,6 +213,26 @@ 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 这个里面的接口
|
||||
比如 /api/v1/departments/tree 这个路径,就是要调用export const getDepartmentTreeApiV1DepartmentsDepartmentsTreeGet = <ThrowOnError extends boolean = false>(options?: Options<GetDepartmentTreeApiV1DepartmentsDepartmentsTreeGetData, ThrowOnError>) => {
|
||||
return (options?.client ?? client).get<GetDepartmentTreeApiV1DepartmentsDepartmentsTreeGetResponses, unknown, ThrowOnError>({
|
||||
security: [
|
||||
{
|
||||
scheme: 'bearer',
|
||||
type: 'http'
|
||||
}
|
||||
],
|
||||
url: '/api/v1/departments/departments/tree',
|
||||
...options
|
||||
});
|
||||
};
|
||||
实际使用的时候,要参考D:\code\repotest\smart-crop-ui\crop-x\src\app\(app)\central-config\tenant\audit-history\components\auditHistoryApi.ts 里面
|
||||
import {
|
||||
getTenantAuditLogsApiV1TenantsAuditLogsGet,
|
||||
} from "@/lib/api/sdk.gen"; 这个引入和用法。
|
||||
|
||||
## path:land-information/archive/statistics,name:统计分析页面开发经验与问题解决
|
||||
|
||||
|
||||
Reference in New Issue
Block a user