Skip to content

Commit

Permalink
mapper定義
Browse files Browse the repository at this point in the history
  • Loading branch information
kgtkr committed Jan 17, 2024
1 parent 14c2c9b commit 95778f9
Show file tree
Hide file tree
Showing 8 changed files with 28 additions and 23 deletions.
23 changes: 0 additions & 23 deletions packages/server/codegen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,26 +8,3 @@ generates:
config:
enumsAsTypes: true
contextType: ../server#AppContext
mappers:
Client: ../entities#IClientAPI
History: ../entities#IHistoryAPI
Res: ../entities#IResAPI
ResNormal: ../entities#IResNormalAPI
ResHistory: ../entities#IResHistoryAPI
ResTopic: ../entities#IResTopicAPI
ResFork: ../entities#IResForkAPI
ResDelete: ../entities#IResDeleteAPI
TokenReq: ../entities#ITokenReqAPI
Token: ../entities#ITokenAPI
TokenMaster: ../entities#ITokenMasterAPI
TokenGeneral: ../entities#ITokenGeneralAPI
Topic: ../entities#ITopicAPI
TopicSearch: ../entities#ITopicSearchAPI
TopicNormal: ../entities#ITopicNormalAPI
TopicOne: ../entities#ITopicOneAPI
TopicFork: ../entities#ITopicForkAPI
Storage: ../entities#IStorageAPI
User: ../entities#IUserAPI
Tags: ../entities#ITagsAPI
ResSubscript: ../entities#IResAddedAPI
CreateTokenGeneralResponse: ../entities#CreateTokenGeneralResponseAPI
1 change: 1 addition & 0 deletions packages/server/src/schema/client/schema.mappers.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { IClientAPI as ClientMapper } from "../../entities";
1 change: 1 addition & 0 deletions packages/server/src/schema/history/schema.mappers.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { IHistoryAPI as HistoryMapper } from "../../entities";
9 changes: 9 additions & 0 deletions packages/server/src/schema/res/schema.mappers.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
export {
IResAPI as ResMapper,
IResNormalAPI as ResNormalMapper,
IResHistoryAPI as ResHistoryMapper,
IResTopicAPI as ResTopicMapper,
IResForkAPI as ResForkMapper,
IResDeleteAPI as ResDeleteMapper,
IResAddedAPI as ResSubscriptMapper,
} from "../../entities";
1 change: 1 addition & 0 deletions packages/server/src/schema/storage/schema.mappers.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { IStorageAPI as StorageMapper } from "../../entities";
7 changes: 7 additions & 0 deletions packages/server/src/schema/token/schema.mappers.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
export {
ITokenReqAPI as TokenReqMapper,
ITokenAPI as TokenMapper,
ITokenMasterAPI as TokenMasterMapper,
ITokenGeneralAPI as TokenGeneralMapper,
CreateTokenGeneralResponseAPI as CreateTokenGeneralResponseMapper,
} from "../../entities";
8 changes: 8 additions & 0 deletions packages/server/src/schema/topic/schema.mappers.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
export {
ITopicAPI as TopicMapper,
ITopicSearchAPI as TopicSearchMapper,
ITopicNormalAPI as TopicNormalMapper,
ITopicOneAPI as TopicOneMapper,
ITopicForkAPI as TopicForkMapper,
ITagsAPI as TagsMapper,
} from "../../entities";
1 change: 1 addition & 0 deletions packages/server/src/schema/user/schema.mappers.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { IUserAPI as UserMapper } from "../../entities";

0 comments on commit 95778f9

Please sign in to comment.