Explorar o código

Merge branch 'dev' of http://192.168.1.41:3000/outaozhen/cldV2react into dev

outaozhen %!s(int64=4) %!d(string=hai) anos
pai
achega
18978925f3
Modificáronse 2 ficheiros con 41 adicións e 0 borrados
  1. 11 0
      src/pages/Customer/Email/index.tsx
  2. 30 0
      src/services/typding.d.ts

+ 11 - 0
src/pages/Customer/Email/index.tsx

@@ -0,0 +1,11 @@
+import { PageContainer } from '@ant-design/pro-layout'
+
+const Email = () => {
+  return (
+    <PageContainer title={false} breadcrumb={false}>
+      111
+    </PageContainer>
+  )
+}
+
+export default Email

+ 30 - 0
src/services/typding.d.ts

@@ -0,0 +1,30 @@
+/** API请求类型定义 */
+// 格式: MenuRoleList:MenuRoleItem[] 所有参数需带上 可选符-?
+// UpdateParams(add/update/delete): MenuRoleParams: { id?: string, ....}
+// 新增:剔除id Omit<MenuRoleParams, 'id' | ...>   删除: {id: string}
+declare namespace API {
+  /** @description Basic Params */
+  type PageParams = {
+    current?: number
+    pageSize?: number
+  }
+
+  /** @description Request泛型-基础请求 */
+  type BasicFetchResult<T extends any> = {
+    data: T
+  }
+
+  /** @description Request泛型-列表请求 */
+  type BasicFetchListResult<T extends any> = {
+    list: T[]
+    total: number
+  }
+
+  /** @description 通讯录 */
+  type ContractItem = {
+    id: string
+  }
+  type ContractList = ContractItem[]
+  type ContractUpdateParmas = ContractItem
+  type ContractAddParams = Omit<ContractItem, 'id'>
+}