data.d.ts 1.27 KB
Newer Older
陈帅's avatar
陈帅 committed
1
export interface ITag {
2 3 4 5
  key: string;
  label: string;
}

陈帅's avatar
陈帅 committed
6
export interface IProvince {
7 8 9 10
  label: string;
  key: string;
}

陈帅's avatar
陈帅 committed
11
export interface ICity {
12 13 14 15
  label: string;
  key: string;
}

陈帅's avatar
陈帅 committed
16 17 18
export interface IGeographic {
  province: IProvince;
  city: ICity;
19 20
}

陈帅's avatar
陈帅 committed
21
export interface INotice {
22 23 24 25 26 27 28 29 30 31
  id: string;
  title: string;
  logo: string;
  description: string;
  updatedAt: string;
  member: string;
  href: string;
  memberLink: string;
}

陈帅's avatar
陈帅 committed
32
export interface CurrentUser {
33 34 35
  name: string;
  avatar: string;
  userid: string;
陈帅's avatar
陈帅 committed
36
  notice: INotice[];
37 38 39 40 41 42 43 44
  email: string;
  signature: string;
  title: string;
  group: string;
  tags: ITag[];
  notifyCount: number;
  unreadCount: number;
  country: string;
陈帅's avatar
陈帅 committed
45
  geographic: IGeographic;
46 47 48
  address: string;
  phone: string;
}
陈帅's avatar
陈帅 committed
49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78

export interface Member {
  avatar: string;
  name: string;
  id: string;
}

export interface ListItemDataType {
  id: string;
  owner: string;
  title: string;
  avatar: string;
  cover: string;
  status: 'normal' | 'exception' | 'active' | 'success';
  percent: number;
  logo: string;
  href: string;
  body?: any;
  updatedAt: number;
  createdAt: number;
  subDescription: string;
  description: string;
  activeUser: number;
  newUser: number;
  star: number;
  like: number;
  message: number;
  content: string;
  members: Member[];
}