From 06220e378dd38fc2d318470d8cf1838ae3c4c884 Mon Sep 17 00:00:00 2001 From: HardenSG <2767525216@qq.com> Date: Mon, 13 May 2024 22:56:39 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E6=9B=B4=E6=96=B0types=E5=AD=98?= =?UTF-8?q?=E6=94=BE=E8=B7=AF=E5=BE=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/{utils => }/types/business/README.md | 0 src/{utils => }/types/business/index.ts | 0 src/{utils => }/types/business/student.ts | 0 src/{utils => }/types/entity/college-info.ts | 0 src/{utils => }/types/entity/index.ts | 0 src/{utils => }/types/entity/student.ts | 0 src/{utils => }/types/entity/task.ts | 0 src/{utils => }/types/entity/work.ts | 0 src/{utils => }/types/helpers/enumHelper.ts | 0 src/{utils => }/types/helpers/index.ts | 0 src/{utils/types/index.ts => types/index copy.ts} | 0 src/types/index.ts | 4 ++++ src/utils/index.ts | 2 +- src/utils/request/index.ts | 3 +-- 14 files changed, 6 insertions(+), 3 deletions(-) rename src/{utils => }/types/business/README.md (100%) rename src/{utils => }/types/business/index.ts (100%) rename src/{utils => }/types/business/student.ts (100%) rename src/{utils => }/types/entity/college-info.ts (100%) rename src/{utils => }/types/entity/index.ts (100%) rename src/{utils => }/types/entity/student.ts (100%) rename src/{utils => }/types/entity/task.ts (100%) rename src/{utils => }/types/entity/work.ts (100%) rename src/{utils => }/types/helpers/enumHelper.ts (100%) rename src/{utils => }/types/helpers/index.ts (100%) rename src/{utils/types/index.ts => types/index copy.ts} (100%) diff --git a/src/utils/types/business/README.md b/src/types/business/README.md similarity index 100% rename from src/utils/types/business/README.md rename to src/types/business/README.md diff --git a/src/utils/types/business/index.ts b/src/types/business/index.ts similarity index 100% rename from src/utils/types/business/index.ts rename to src/types/business/index.ts diff --git a/src/utils/types/business/student.ts b/src/types/business/student.ts similarity index 100% rename from src/utils/types/business/student.ts rename to src/types/business/student.ts diff --git a/src/utils/types/entity/college-info.ts b/src/types/entity/college-info.ts similarity index 100% rename from src/utils/types/entity/college-info.ts rename to src/types/entity/college-info.ts diff --git a/src/utils/types/entity/index.ts b/src/types/entity/index.ts similarity index 100% rename from src/utils/types/entity/index.ts rename to src/types/entity/index.ts diff --git a/src/utils/types/entity/student.ts b/src/types/entity/student.ts similarity index 100% rename from src/utils/types/entity/student.ts rename to src/types/entity/student.ts diff --git a/src/utils/types/entity/task.ts b/src/types/entity/task.ts similarity index 100% rename from src/utils/types/entity/task.ts rename to src/types/entity/task.ts diff --git a/src/utils/types/entity/work.ts b/src/types/entity/work.ts similarity index 100% rename from src/utils/types/entity/work.ts rename to src/types/entity/work.ts diff --git a/src/utils/types/helpers/enumHelper.ts b/src/types/helpers/enumHelper.ts similarity index 100% rename from src/utils/types/helpers/enumHelper.ts rename to src/types/helpers/enumHelper.ts diff --git a/src/utils/types/helpers/index.ts b/src/types/helpers/index.ts similarity index 100% rename from src/utils/types/helpers/index.ts rename to src/types/helpers/index.ts diff --git a/src/utils/types/index.ts b/src/types/index copy.ts similarity index 100% rename from src/utils/types/index.ts rename to src/types/index copy.ts diff --git a/src/types/index.ts b/src/types/index.ts index dc5f05b..1bdba41 100644 --- a/src/types/index.ts +++ b/src/types/index.ts @@ -1,2 +1,6 @@ /** 对象类型 */ export type TGeneralObject = { [key in string]: any } + +export * from './helpers' +export * from './entity' +export * from './business' diff --git a/src/utils/index.ts b/src/utils/index.ts index 5c5a758..a1a7e04 100644 --- a/src/utils/index.ts +++ b/src/utils/index.ts @@ -1,5 +1,5 @@ +export * from 'src/types' export * from './request' -export * from './types' export * from './extraUiEffect' export * from './format' export * from './storage' diff --git a/src/utils/request/index.ts b/src/utils/request/index.ts index 5926330..a2d1114 100644 --- a/src/utils/request/index.ts +++ b/src/utils/request/index.ts @@ -1,6 +1,5 @@ -import { TGeneralObject } from 'src/types' +import { TGeneralObject, DefinedEnumKeys } from 'src/types' import Taro from '@tarojs/taro' -import { DefinedEnumKeys } from '../types/helpers/enumHelper' import { request } from './business' import { BUSINESS_API_ROOT_PATH, BUSINESS_DOMAIN } from './constants' import { TCustomRequestParams, TResponseType, baseRequest } from './request'