wupengfei
2025-03-10 6887129e91d32557c2b57178180329f46df09d12
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
/**
 * 用户企业认证要素
 */
export enum UserCertificationElementEnum {
  /**
   * 企业三要素认证
   */
  Identity3 = 10,
  /**
   * 企业四要素认证
   */
  Identity4 = 20,
}
 
export const UserCertificationElementEnumText = {
  [UserCertificationElementEnum.Identity3]: '企业三要素',
  [UserCertificationElementEnum.Identity4]: '企业四要素',
};
 
/**
 *  用户认证通道
 */
export enum UserCertificationChannelEnum {
  /**
   *  人工通道
   */
  Human = 10,
  /**
   * 第三方通道
   */
  ThirdParty = 20,
}
 
/**
 * 用户认证方式
 */
 
export enum UserCertificationModeEnumV2 {
  /**
   * 法人认证
   */
  LegalPersonCertification = 10,
  /**
   * 代理人认证
   */
  ProxyPersonCertification = 20,
  /**
   * 后台管理员认证
   */
  AdminCertification = 30,
  /**
   * 法定代表人手机号认证
   */
  LegalPersonPhoneCertification = 40,
  /**
   * 法定代表人银行卡认证
   */
  LegalPersonBankCardCertification = 50,
  /**
   * 法定代表人刷脸认证
   */
  LegalPersonFaceCertification = 60,
  /**
   * 代理人手机号认证
   */
  ProxyPersonPhoneCertification = 70,
  /**
   * 代理人银行卡认证
   */
  ProxyPersonBankCardCertification = 80,
  /**
   *  代理人刷脸认证
   */
  ProxyPersonFaceCertification = 90,
}
 
export const UserCertificationModeEnumV2Text = {
  [UserCertificationModeEnumV2.LegalPersonCertification]: '法人认证',
  [UserCertificationModeEnumV2.ProxyPersonCertification]: '代理人认证',
  [UserCertificationModeEnumV2.AdminCertification]: '后台管理员认证',
  [UserCertificationModeEnumV2.LegalPersonPhoneCertification]: '法定代表人手机号认证',
  [UserCertificationModeEnumV2.LegalPersonBankCardCertification]: '法定代表人银行卡认证',
  [UserCertificationModeEnumV2.LegalPersonFaceCertification]: '法定代表人刷脸认证',
  [UserCertificationModeEnumV2.ProxyPersonPhoneCertification]: '代理人手机号认证',
  [UserCertificationModeEnumV2.ProxyPersonBankCardCertification]: '代理人银行卡认证',
  [UserCertificationModeEnumV2.ProxyPersonFaceCertification]: '代理人刷脸认证',
};
 
// function createUserCertificationModeV2SelectItem(
//   element: UserCertificationElementEnum,
//   mode: UserCertificationModeEnumV2
// ) {
//   return [
//     `${element}_${mode}`,
//     `${UserCertificationElementEnumText[element]}+${UserCertificationModeEnumV2Text[mode]}`,
//   ] as const;
// }
 
// export const UserCertificationModeV2Select = new Map([
//   createUserCertificationModeV2SelectItem(
//     UserCertificationElementEnum.Identity4,
//     UserCertificationModeEnumV2.LegalPersonPhoneCertification
//   ),
//   createUserCertificationModeV2SelectItem(
//     UserCertificationElementEnum.Identity4,
//     UserCertificationModeEnumV2.LegalPersonBankCardCertification
//   ),
//   createUserCertificationModeV2SelectItem(
//     UserCertificationElementEnum.Identity4,
//     UserCertificationModeEnumV2.LegalPersonFaceCertification
//   ),
//   createUserCertificationModeV2SelectItem(
//     UserCertificationElementEnum.Identity3,
//     UserCertificationModeEnumV2.ProxyPersonPhoneCertification
//   ),
//   createUserCertificationModeV2SelectItem(
//     UserCertificationElementEnum.Identity3,
//     UserCertificationModeEnumV2.ProxyPersonBankCardCertification
//   ),
// ]);
 
export enum UserCertificationModeV2SelectEnum {
  Identity4_LegalPersonPhoneCertification = `${UserCertificationElementEnum.Identity4}_${UserCertificationModeEnumV2.LegalPersonPhoneCertification}`,
  Identity4_LegalPersonBankCardCertification = `${UserCertificationElementEnum.Identity4}_${UserCertificationModeEnumV2.LegalPersonBankCardCertification}`,
  Identity4_LegalPersonFaceCertification = `${UserCertificationElementEnum.Identity4}_${UserCertificationModeEnumV2.LegalPersonFaceCertification}`,
  Identity3_ProxyPersonPhoneCertification = `${UserCertificationElementEnum.Identity3}_${UserCertificationModeEnumV2.ProxyPersonPhoneCertification}`,
  Identity3_ProxyPersonBankCardCertification = `${UserCertificationElementEnum.Identity3}_${UserCertificationModeEnumV2.ProxyPersonBankCardCertification}`,
  Identity3_ProxyPersonFaceCertification = `${UserCertificationElementEnum.Identity3}_${UserCertificationModeEnumV2.ProxyPersonFaceCertification}`,
}
 
export const UserCertificationModeV2SelectEnumText = {
  [UserCertificationModeV2SelectEnum.Identity4_LegalPersonPhoneCertification]: `${
    UserCertificationElementEnumText[UserCertificationElementEnum.Identity4]
  }+${UserCertificationModeEnumV2Text[UserCertificationModeEnumV2.LegalPersonPhoneCertification]}`,
  [UserCertificationModeV2SelectEnum.Identity4_LegalPersonBankCardCertification]: `${
    UserCertificationElementEnumText[UserCertificationElementEnum.Identity4]
  }+${
    UserCertificationModeEnumV2Text[UserCertificationModeEnumV2.LegalPersonBankCardCertification]
  }`,
  [UserCertificationModeV2SelectEnum.Identity4_LegalPersonFaceCertification]: `${
    UserCertificationElementEnumText[UserCertificationElementEnum.Identity4]
  }+${UserCertificationModeEnumV2Text[UserCertificationModeEnumV2.LegalPersonFaceCertification]}`,
  [UserCertificationModeV2SelectEnum.Identity3_ProxyPersonPhoneCertification]: `${
    UserCertificationElementEnumText[UserCertificationElementEnum.Identity3]
  }+${UserCertificationModeEnumV2Text[UserCertificationModeEnumV2.ProxyPersonPhoneCertification]}`,
  [UserCertificationModeV2SelectEnum.Identity3_ProxyPersonBankCardCertification]: `${
    UserCertificationElementEnumText[UserCertificationElementEnum.Identity3]
  }+${
    UserCertificationModeEnumV2Text[UserCertificationModeEnumV2.ProxyPersonBankCardCertification]
  }`,
  [UserCertificationModeV2SelectEnum.Identity3_ProxyPersonFaceCertification]: `${
    UserCertificationElementEnumText[UserCertificationElementEnum.Identity3]
  }+${UserCertificationModeEnumV2Text[UserCertificationModeEnumV2.ProxyPersonFaceCertification]}`,
};