| 123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- import type { IStudio } from "../auth/Studio"
- import type { IUser } from "../auth/User"
- import type { IChannel } from "../channel/Channel"
- import type { TResType } from "../discussion/DiscussionListCard"
- export type ITransferStatus = "transferred" | "accept" | "refuse" | "cancel";
- export interface ITransferRequest {
- res_type?: TResType;
- res_id?: string[];
- new_owner?: string;
- status?: ITransferStatus;
- }
- export interface ITransferResponseData {
- id: string;
- origin_owner: IStudio;
- res_type: TResType;
- res_id: string;
- channel?: IChannel;
- transferor: IUser;
- new_owner: IStudio;
- status: ITransferStatus;
- editor?: IUser | null;
- created_at: string;
- updated_at: string;
- }
- export interface ITransferCreateResponse {
- ok: boolean;
- message: string;
- data: number;
- }
- export interface ITransferResponse {
- ok: boolean;
- message: string;
- data: ITransferResponseData;
- }
- export interface ITransferResponseList {
- ok: boolean;
- message: string;
- data: {
- rows: ITransferResponseData[];
- count: number;
- out: number;
- in: number;
- };
- }
|