@freelog/tools-lib 0.1.108 → 0.1.111
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/service-API/index.d.ts +2 -2
- package/dist/service-API/recombinations/index.d.ts +12 -0
- package/dist/service-API/resources.d.ts +4 -0
- package/dist/service-API/user.d.ts +8 -0
- package/dist/tools-lib.cjs.development.js +230 -117
- package/dist/tools-lib.cjs.development.js.map +1 -1
- package/dist/tools-lib.cjs.production.min.js +1 -1
- package/dist/tools-lib.cjs.production.min.js.map +1 -1
- package/dist/tools-lib.esm.js +230 -117
- package/dist/tools-lib.esm.js.map +1 -1
- package/dist/utils/linkTo.d.ts +4 -2
- package/dist/utils/tools.d.ts +5 -0
- package/package.json +1 -1
- package/src/service-API/index.ts +2 -2
- package/src/service-API/{combinations → recombinations}/.gitkeep +0 -0
- package/src/service-API/recombinations/index.ts +65 -0
- package/src/service-API/resources.ts +511 -497
- package/src/service-API/user.ts +28 -1
- package/src/utils/linkTo.ts +346 -344
- package/src/utils/tools.ts +85 -72
- package/dist/service-API/combinations/index.d.ts +0 -7
- package/src/service-API/combinations/index.ts +0 -27
package/src/service-API/user.ts
CHANGED
|
@@ -189,7 +189,7 @@ export function updateMobileOrEmail(params: UpdateMobileOrEmailParamsType) {
|
|
|
189
189
|
});
|
|
190
190
|
}
|
|
191
191
|
|
|
192
|
-
//
|
|
192
|
+
// 非登录用户绑定与自动注册流程
|
|
193
193
|
interface RegisterOrBindParamsType {
|
|
194
194
|
loginName: string;
|
|
195
195
|
password: string;
|
|
@@ -201,5 +201,32 @@ export function registerOrBind(params: RegisterOrBindParamsType) {
|
|
|
201
201
|
method: 'POST',
|
|
202
202
|
url: `/v2/thirdParty/registerOrBind`,
|
|
203
203
|
data: params,
|
|
204
|
+
}, {noRedirect: true});
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
// 登录用户解绑第三方登录
|
|
208
|
+
interface ThirdPartyUnbindParamsType {
|
|
209
|
+
thirdPartyType: string;
|
|
210
|
+
password: string;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
export function thirdPartyUnbind(params: ThirdPartyUnbindParamsType) {
|
|
214
|
+
return FUtil.Request({
|
|
215
|
+
method: 'PUT',
|
|
216
|
+
url: `/v2/thirdParty/unbind`,
|
|
217
|
+
data: params,
|
|
204
218
|
});
|
|
205
219
|
}
|
|
220
|
+
|
|
221
|
+
// 查询登录用户已绑定的第三方信息
|
|
222
|
+
interface ThirdPartyListParamsType {
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
export function thirdPartyList(params: ThirdPartyListParamsType = {}) {
|
|
226
|
+
return FUtil.Request({
|
|
227
|
+
method: 'GET',
|
|
228
|
+
url: `/v2/thirdParty/list`,
|
|
229
|
+
data: params,
|
|
230
|
+
});
|
|
231
|
+
}
|
|
232
|
+
|