@freelog/tools-lib 0.1.110 → 0.1.113

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.
@@ -346,7 +346,7 @@ export function clearUserNodeData({...params}: ClearUserNodeDataParamsType) {
346
346
 
347
347
  // 批量查询文件信息通过sha1
348
348
  interface FilesListInfoParamsType {
349
- sha1: string[];
349
+ sha1: string;
350
350
  }
351
351
 
352
352
  export function filesListInfo({...params}: FilesListInfoParamsType) {
@@ -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;
@@ -203,3 +203,30 @@ export function registerOrBind(params: RegisterOrBindParamsType) {
203
203
  data: params,
204
204
  }, {noRedirect: true});
205
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,
218
+ });
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
+
@@ -48,10 +48,8 @@ interface MarketParamsType {
48
48
  query?: string;
49
49
  }
50
50
 
51
- export function market({query}: MarketParamsType = {}): TReturnType {
52
- return `/market${handleQuery({
53
- query,
54
- })}`;
51
+ export function market({...params}: MarketParamsType = {}): TReturnType {
52
+ return `/market${handleQuery(params)}`;
55
53
  }
56
54
 
57
55
  // 示例节点
@@ -146,7 +144,6 @@ export function nodeCreator({}: NodeCreatorParamsType = {}): TReturnType {
146
144
  interface NodeManagementParamsType {
147
145
  nodeID: number;
148
146
  showPage?: 'exhibit' | 'theme';
149
-
150
147
  }
151
148
 
152
149
  export function nodeManagement({nodeID, showPage = 'exhibit', ...params}: NodeManagementParamsType): TReturnType {