refactor(data): merge DTO models into schemas
This commit is contained in:
@@ -17,8 +17,8 @@ import type {
|
||||
LoginStatus,
|
||||
LoginResponse,
|
||||
RefreshTokenResponse,
|
||||
} from "@/data/dto/auth";
|
||||
import type { User } from "@/data/dto/user";
|
||||
} from "@/data/schemas/auth";
|
||||
import type { User } from "@/data/schemas/user";
|
||||
|
||||
export interface IAuthRepository {
|
||||
/** 用户注册。注册成功不会自动登录(与 Dart 行为一致)。 */
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import type { CharactersResponse } from "@/data/dto/character";
|
||||
import type { CharactersResponse } from "@/data/schemas/character";
|
||||
import type { Result } from "@/utils/result";
|
||||
|
||||
export interface ICharacterRepository {
|
||||
|
||||
@@ -12,7 +12,7 @@ import type {
|
||||
ChatSendResponse,
|
||||
UnlockHistoryResponse,
|
||||
UnlockPrivateResponse,
|
||||
} from "@/data/dto/chat";
|
||||
} from "@/data/schemas/chat";
|
||||
import type { ChatLockDetailData } from "@/data/schemas/chat";
|
||||
import type { ChatImageData, ChatLockType } from "@/data/schemas/chat";
|
||||
import type { LocalChatMediaRow } from "@/data/storage/chat";
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import type {
|
||||
FeedbackSubmitResponse,
|
||||
SubmitFeedbackInput,
|
||||
} from "@/data/dto/feedback";
|
||||
} from "@/data/schemas/feedback";
|
||||
import type { Result } from "@/utils/result";
|
||||
|
||||
export interface IFeedbackRepository {
|
||||
|
||||
@@ -6,7 +6,7 @@ import type {
|
||||
PayChannel,
|
||||
PaymentOrderStatusResponse,
|
||||
PaymentPlansResponse,
|
||||
} from "@/data/dto/payment";
|
||||
} from "@/data/schemas/payment";
|
||||
import type { Result } from "@/utils/result";
|
||||
|
||||
export interface IPaymentRepository {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import type {
|
||||
PrivateAlbumsResponse,
|
||||
PrivateAlbumUnlockResponse,
|
||||
} from "@/data/dto/private-room";
|
||||
} from "@/data/schemas/private-room";
|
||||
import type { Result } from "@/utils/result";
|
||||
|
||||
export interface GetPrivateAlbumsInput {
|
||||
|
||||
@@ -6,7 +6,7 @@ import type { Result } from "@/utils/result";
|
||||
import type {
|
||||
User,
|
||||
UserEntitlements,
|
||||
} from "@/data/dto/user";
|
||||
} from "@/data/schemas/user";
|
||||
|
||||
export interface IUserRepository {
|
||||
/** 获取当前登录用户信息。 */
|
||||
|
||||
Reference in New Issue
Block a user