plus-ui/src/api/types.ts
2025-06-30 15:55:00 +08:00

107 lines
1.8 KiB
TypeScript

/**
* 注册
*/
export type RegisterForm = {
tenantId: string;
username: string;
password: string;
confirmPassword?: string;
code?: string;
uuid?: string;
userType?: string;
};
/**
* 登录请求
*/
export interface LoginData {
tenantId?: string;
username?: string;
password?: string;
rememberMe?: boolean;
socialCode?: string;
socialState?: string;
source?: string;
code?: string;
uuid?: string;
clientId: string;
grantType: string;
}
/**
* 登录响应
*/
export interface LoginResult {
access_token: string;
}
/**
* 验证码返回
*/
export interface VerifyCodeResult {
captchaEnabled: boolean;
uuid?: string;
img?: string;
}
/**
* 租户
*/
export interface TenantVO {
companyName: string;
domain: any;
tenantId: string;
}
export interface TenantInfo {
tenantEnabled: boolean;
voList: TenantVO[];
}
export interface top20Stores {
company_name: string;
sales: number;
total_amount: string;
}
export interface top20Product {
name: string;
price: string;
sales: number;
total_amount: string;
}
export interface monthlyIncomeExpense {
expense_amount: string;
income_amount: string;
month: string;
}
export interface monthlyUserVolume {
addCartMemberCount: string;
dealMemberCount: string;
loginMemberCount: string;
month: string;
registerMemberCount: string;
}
export interface monthlyVlog {
month: string;
vlog_count: number;
}
//首页
export interface indexObjOV {
StoreAudit: number;
WithdrawCount: number;
feedbackCount: number;
memberCount: number;
orderAudit: string;
orderCount: number;
productAudit: string;
productCount: number;
storeCount: number;
vlogCount: number;
top20Product: top20Product[];
top20Stores: top20Stores[];
monthlyIncomeExpense: monthlyIncomeExpense[];
monthlyUserVolume: monthlyUserVolume[];
monthlyVlog: monthlyVlog[];
}