yotta-node/src/server/module.d.ts

184 lines
3.8 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

export type BASE_RESPONSE<T = any> = {
code: 0 | 200;
data: T;
msg: string;
timeMillis: number;
}; // What's returned from request
export type Level = 0 | 1 | 2 | 3 | 4; // 0=无等级 1=区代理 2=市代理 3=省代理 4=超级节点
export interface UserHomeData {
address: string;
directPushNode: number;
level: Level;
nodeNumber: number;
nodePrice: string;
revenueUsdt: string;
teamNode: number;
userImg: string;
}
export interface UserIncome {
coinId: number;
coinName: string;
collection: number;
createTime: string;
flag: number;
id: number;
receive: number;
updateTime: string;
userId: number;
}
export interface UserUpgradeInformation {
foundation: number;
level: Level;
numberOfPresidents: number;
ordinary: number;
president: number;
price: string;
proportion: string;
status: 1 | 0; //1=可升级 0=不可升级
upgradeFees: string;
}
export interface NftConfigurationData {
floatingQuantity: string;
initialPrice: string;
kamibutsu: string;
nftCount: number;
nftPrice: string;
nftRemainder: number;
}
export interface IncomeRecord {
countId: string;
current: number;
maxLimit: string;
optimizeCountSql: boolean;
orders: { asc: boolean; column: string }[];
pages: number;
records: IncomeRecordsItem[];
searchCount: boolean;
size: number;
total: number;
}
export interface IncomeRecordsItem {
id: number;
createTime: string;
updateTime: string;
flag: number;
userId: number;
incomeId: number;
type: 1 | 2 | 3 | 4; // 1:领取成功2发放记录 3领取中 4:已取消
coinId: number;
opType: number;
opRemark: string;
opBefore: number;
opValue: number;
opAfter: number;
extRemark: string;
}
export type IncomeRecordType = 4 | 5 | 6 | 7 | 8 | 9; //4=直推>20NFT,5=升级费平分,6=NFT空投,7=社长空投,8=基金会社长,9=直推空投
export interface NftOrder {
address: string;
buyAmount: string;
buyCount: string;
createBy: string;
createTime: string;
hash: string;
id: number;
illustrate: string;
nftId: number;
orderNumber: string;
payCoin: string;
recommendId: number;
status: number;
updateBy: string;
updateTime: string;
userId: number;
payInduction: number;
}
export interface PreprelionListItem {
address: string;
level: 0 | 1 | 2 | 3; // 0=无等级 1=会员 2=社长 3=基金会
mintNumber: number;
userType: number;
}
export interface UpgradeOrder {
address: string;
buyAmount: string;
createBy: string;
createTime: string;
endLevel: number;
hash: string;
id: number;
illustrate: string;
orderNumber: string;
payCoin: string;
startLevel: number;
status: number;
updateBy: string;
updateTime: string;
userId: number;
}
export interface ClaimIncome {
claimQuantity: string;
hash: string;
orderNumber: string;
time: number;
}
export interface RecommendedList {
countId: string;
current: number;
maxLimit: string;
optimizeCountSql: boolean;
orders: Order[];
pages: number;
records: RecommendedListItem[];
searchCount: boolean;
size: number;
total: number;
}
export interface RecommendedListItem {
walletAddress: string;
nodeNumber: number;
promotionUsdt: string;
nodeCount: number;
}
export interface NodeOrder {
time: number;
addressFour: string;
addressOne: string;
addressThree: string;
addressTwo: string;
awardFour: string;
awardOne: string;
awardThree: string;
awardTwo: string;
buyAmount: string;
collectionAddress: string;
collectionAmount: string;
createBy: string;
createTime: number;
dataJson: string;
hash: string;
id: number;
illustrate: string;
nodeNumber: number;
nodeSettingId: number;
orderNumber: string;
payCoin: string;
status: number;
updateBy: string;
updateTime: string;
userId: number;
walletAddress: string;
}