feat: 初始化
This commit is contained in:
26
types/common.ts
Normal file
26
types/common.ts
Normal file
@ -0,0 +1,26 @@
|
||||
export enum Locales {
|
||||
ar_SA = 'ar-SA',
|
||||
en_US = 'en-US',
|
||||
es_ES = 'es-ES',
|
||||
hi_IN = 'hi-IN',
|
||||
id_ID = 'in-ID',
|
||||
ko_KR = 'ko-KR',
|
||||
th_TH = 'th-TH',
|
||||
vi_VN = 'vi-VN',
|
||||
zh_CN = 'zh-CN',
|
||||
zh_TW = 'zh-TW'
|
||||
}
|
||||
export type LocaleType = keyof typeof Locales;
|
||||
|
||||
export type MtServer = {
|
||||
/**
|
||||
* MT服务器编码
|
||||
*/
|
||||
id: number;
|
||||
if_def_server: number;
|
||||
if_enable_mt4_type: number;
|
||||
/**
|
||||
* MT服务器名称
|
||||
*/
|
||||
server_name: string;
|
||||
};
|
19
types/components.ts
Normal file
19
types/components.ts
Normal file
@ -0,0 +1,19 @@
|
||||
interface OptionItem {
|
||||
label: string;
|
||||
value: any;
|
||||
}
|
||||
export interface ColumnItem {
|
||||
label: string;
|
||||
dataIndex: string;
|
||||
dataType: 'text' | 'select';
|
||||
valuEnum?: OptionItem[];
|
||||
hideInSearch?: boolean;
|
||||
hideInTable?: boolean;
|
||||
span?: number;
|
||||
width?: number;
|
||||
}
|
||||
export interface ReportTableProps {
|
||||
title?: string;
|
||||
columns?: ColumnItem[];
|
||||
}
|
||||
export interface TableConfig {}
|
30
types/home/notice.ts
Normal file
30
types/home/notice.ts
Normal file
@ -0,0 +1,30 @@
|
||||
export interface Notice {
|
||||
/**
|
||||
* html内容
|
||||
*/
|
||||
content: string;
|
||||
/**
|
||||
* 主键id
|
||||
*/
|
||||
id: string;
|
||||
/**
|
||||
* 发送日期
|
||||
*/
|
||||
sendDate: string;
|
||||
/**
|
||||
* 发送时间
|
||||
*/
|
||||
sendTime: string;
|
||||
/**
|
||||
* 状态,1 已读 0 未读
|
||||
*/
|
||||
status: string;
|
||||
/**
|
||||
* 标题
|
||||
*/
|
||||
subject: string;
|
||||
/**
|
||||
* 文本内容
|
||||
*/
|
||||
summary: string;
|
||||
}
|
61
types/user.ts
Normal file
61
types/user.ts
Normal file
@ -0,0 +1,61 @@
|
||||
export type User = {
|
||||
address: string;
|
||||
address_area: string;
|
||||
address_detailed: string;
|
||||
address_state: string;
|
||||
address_street: string;
|
||||
address_town: string;
|
||||
auth: number;
|
||||
base_standby_1: string;
|
||||
base_standby_2: string;
|
||||
base_standby_3: string;
|
||||
base_standby_4: string;
|
||||
base_standby_5: string;
|
||||
birthday: string;
|
||||
country: number;
|
||||
create_time: string;
|
||||
creator: null;
|
||||
customer_type: number;
|
||||
email: string;
|
||||
first_name: string;
|
||||
head_portrait: string;
|
||||
ib_level: number;
|
||||
ib_user_group: string;
|
||||
id: number;
|
||||
if_islam: number;
|
||||
import_ver: null;
|
||||
indirect_sub: null;
|
||||
indirect_sub_cus: null;
|
||||
insert_type: number;
|
||||
last_edit_password_time: null;
|
||||
last_login_time: null;
|
||||
last_name: string;
|
||||
name: string;
|
||||
org_id: number;
|
||||
password: null;
|
||||
password_set_type: number;
|
||||
phone: null;
|
||||
phone_prefix: string;
|
||||
postcode: string;
|
||||
rebate_percentage: number;
|
||||
remark: string;
|
||||
residence: string;
|
||||
role_id: number;
|
||||
salesman_id: null;
|
||||
sex: number;
|
||||
share_id: null;
|
||||
share_setting_id: null;
|
||||
share_type: null;
|
||||
status: number;
|
||||
superior_id: null;
|
||||
update_time: string;
|
||||
updator: number;
|
||||
user_code: string;
|
||||
user_type: number;
|
||||
};
|
||||
export type Customer = User & {
|
||||
customerType: number;
|
||||
};
|
||||
export type IB = User & {
|
||||
ibLevel: number;
|
||||
};
|
Reference in New Issue
Block a user