chore: initialize qiming workspace repository
This commit is contained in:
4
qiming-mobile/subpackages/types/enums/chat.uts
Normal file
4
qiming-mobile/subpackages/types/enums/chat.uts
Normal file
@@ -0,0 +1,4 @@
|
||||
export enum ChatInputMethod {
|
||||
Voice = 'voice',
|
||||
Input = 'input',
|
||||
}
|
||||
150
qiming-mobile/subpackages/types/interfaces/subscription.uts
Normal file
150
qiming-mobile/subpackages/types/interfaces/subscription.uts
Normal file
@@ -0,0 +1,150 @@
|
||||
export enum BizTypeEnum {
|
||||
System = 'SYSTEM',
|
||||
Agent = 'AGENT',
|
||||
Skill = 'SKILL',
|
||||
}
|
||||
|
||||
export enum MySubscriptionStatusEnum {
|
||||
Active = 'ACTIVE',
|
||||
Expired = 'EXPIRED',
|
||||
Cancelled = 'CANCELLED',
|
||||
}
|
||||
|
||||
export enum MyPlanPeriodEnum {
|
||||
Month = 'MONTH',
|
||||
Quarter = 'QUARTER',
|
||||
Year = 'YEAR',
|
||||
Forever = 'FOREVER',
|
||||
}
|
||||
|
||||
export enum CreditTypeEnum {
|
||||
SUBSCRIPTION = 'SUBSCRIPTION',
|
||||
PURCHASE = 'PURCHASE',
|
||||
ACTIVITY = 'ACTIVITY',
|
||||
MANUAL = 'MANUAL',
|
||||
MODEL_CALL = 'MODEL_CALL',
|
||||
AGENT_CALL = 'AGENT_CALL',
|
||||
TOOL_CALL = 'TOOL_CALL',
|
||||
MANUAL_DEDUCT = 'MANUAL_DEDUCT',
|
||||
}
|
||||
|
||||
export interface CreditRecordInfo {
|
||||
id: number;
|
||||
userId: number;
|
||||
batchNo: string;
|
||||
creditType: string;
|
||||
creditTypeName: string;
|
||||
operationType: number; // 1-增加,2-扣减
|
||||
operationTypeName: string;
|
||||
amount: number;
|
||||
beforeAmount: number;
|
||||
afterAmount: number;
|
||||
bizNo: string;
|
||||
created: string;
|
||||
remark: string;
|
||||
}
|
||||
|
||||
export interface MySubscriptionItem {
|
||||
id: number | null;
|
||||
planId: number;
|
||||
planName: string;
|
||||
bizType: string | null;
|
||||
bizId: number | null;
|
||||
bizName: string | null;
|
||||
icon: string | null;
|
||||
period: string | null;
|
||||
startTime: string | null;
|
||||
endTime: string | null;
|
||||
status: string;
|
||||
plan: {
|
||||
id: number;
|
||||
name: string;
|
||||
description: string | null;
|
||||
price: number;
|
||||
firstPrice: number;
|
||||
period: string;
|
||||
creditAmount: number;
|
||||
callLimitCount: number | null;
|
||||
functionOnly: boolean | null;
|
||||
dailyGiftCreditAmount: number | null;
|
||||
isHot: boolean | null;
|
||||
};
|
||||
callUsedCount: number | null;
|
||||
nextResetTime: string | null;
|
||||
created: string | null;
|
||||
modified: string | null;
|
||||
}
|
||||
|
||||
export interface MySubscriptionData {
|
||||
currentSubscription: MySubscriptionItem | null;
|
||||
subscriptions: MySubscriptionItem[];
|
||||
}
|
||||
|
||||
export interface CreditSummaryInfo {
|
||||
totalCredit: number;
|
||||
subscriptionCredit: number;
|
||||
purchaseCredit: number;
|
||||
activityCredit: number;
|
||||
}
|
||||
|
||||
export interface CreditPackageInfo {
|
||||
id: number;
|
||||
packageName: string;
|
||||
creditAmount: number;
|
||||
price: number;
|
||||
sort: number;
|
||||
status: number;
|
||||
period: string;
|
||||
remark: string;
|
||||
}
|
||||
|
||||
export interface CreditBatchItem {
|
||||
id: number;
|
||||
batchNo: string;
|
||||
creditType: string;
|
||||
totalAmount: number;
|
||||
usedAmount: number;
|
||||
remainAmount: number;
|
||||
expireTime: string;
|
||||
expired: boolean;
|
||||
remark: string;
|
||||
extra: {
|
||||
price: number;
|
||||
} | null;
|
||||
created: string;
|
||||
}
|
||||
|
||||
export interface SystemSubscriptionPlanItem {
|
||||
name: string;
|
||||
description: string;
|
||||
icon: string;
|
||||
selected: boolean;
|
||||
}
|
||||
|
||||
export interface SystemSubscriptionPlanGroup {
|
||||
name: string;
|
||||
description: string;
|
||||
groupType: string;
|
||||
items: SystemSubscriptionPlanItem[];
|
||||
}
|
||||
|
||||
export interface SystemSubscriptionPlan {
|
||||
id: number;
|
||||
name: string;
|
||||
description: string;
|
||||
price: number;
|
||||
firstPrice: number;
|
||||
period: string;
|
||||
creditAmount: number;
|
||||
callLimitCount: number;
|
||||
functionOnly: boolean;
|
||||
dailyGiftCreditAmount: number;
|
||||
isHot: boolean;
|
||||
status: number;
|
||||
sort: number;
|
||||
itemGroups: SystemSubscriptionPlanGroup[];
|
||||
}
|
||||
|
||||
export interface CashierInfo {
|
||||
cashierUrl: string;
|
||||
}
|
||||
Reference in New Issue
Block a user