component-shipinlv 2.1.3 → 2.2.3
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/ActiveAccountMode/task/index.js +1 -1
- package/dist/VideoPublish/account-manage/list.js +1 -1
- package/dist/VideoPublish/task-list/plan/list.js +8 -4
- package/dist/VideoPublish/task-list/plan/operate.d.ts +1 -1
- package/dist/VideoPublish/task-list/plan/operate.js +76 -5
- package/dist/VideoPublish/video-account/ban/index.d.ts +10 -0
- package/dist/VideoPublish/video-account/ban/index.js +94 -0
- package/dist/VideoPublish/video-account/ban/index.less +4 -0
- package/dist/VideoPublish/video-account/index.js +28 -0
- package/dist/VideoPublish/video-account/index.less +14 -0
- package/dist/lib/Tool.d.ts +1 -1
- package/dist/lib/accountManageSettingConfig.js +2 -2
- package/dist/service/api/VideoPublishTaskPlanController.d.ts +1 -1
- package/dist/service/api/VideoPublishVideoAccountController.d.ts +1 -0
- package/dist/service/api/VideoPublishVideoAccountController.js +23 -0
- package/dist/types/PublishTaskPlan.d.ts +4 -0
- package/dist/types/VideoPublish.d.ts +2 -0
- package/dist/types/VideoPublishVideoAccount.d.ts +83 -4
- package/dist/typings/VideoPublishVideoAccount.d.ts +1 -76
- package/package.json +1 -1
@@ -375,7 +375,7 @@ var ActiveAccountModeTask = /*#__PURE__*/function () {
|
|
375
375
|
console.log('视频没有匹配到 发布时间:', videoIndex, videoList, publishTimeList);
|
376
376
|
return _context4.abrupt("continue", 26);
|
377
377
|
case 12:
|
378
|
-
if (!(startTime
|
378
|
+
if (!(startTime <= Date.now() + 3600e3 * 3)) {
|
379
379
|
_context4.next = 16;
|
380
380
|
break;
|
381
381
|
}
|
@@ -217,7 +217,7 @@ var HomePageAccountList = function HomePageAccountList(_ref) {
|
|
217
217
|
taskId: 0,
|
218
218
|
chromePath: settingConfig.chromePath,
|
219
219
|
chromeProfileName: chromeProfileName,
|
220
|
-
url: 'https://
|
220
|
+
url: 'https://www.douyin.com/user/self?from_tab_name=main',
|
221
221
|
proxyInfo: proxyInfo,
|
222
222
|
isOpen: true // settingConfig.isChromeOpen,
|
223
223
|
}, true, env);
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
|
2
1
|
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
2
|
+
import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
|
3
3
|
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
4
4
|
import React, { useState } from "react";
|
5
5
|
import "./list.less";
|
@@ -206,6 +206,7 @@ var VideoPublishTaskPlanList = function VideoPublishTaskPlanList(_ref) {
|
|
206
206
|
dataIndex: '——',
|
207
207
|
key: '——',
|
208
208
|
render: function render(_, record) {
|
209
|
+
var index = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : -1;
|
209
210
|
// const status = record?.status || '';
|
210
211
|
if (!record) {
|
211
212
|
return record;
|
@@ -213,8 +214,11 @@ var VideoPublishTaskPlanList = function VideoPublishTaskPlanList(_ref) {
|
|
213
214
|
return /*#__PURE__*/_jsx(VideoPublishTaskPlanOperate, {
|
214
215
|
itemData: record,
|
215
216
|
env: env,
|
216
|
-
onStatusChange: function onStatusChange() {
|
217
|
-
|
217
|
+
onStatusChange: function onStatusChange(status) {
|
218
|
+
console.log('onStatusChange 1');
|
219
|
+
// runTaskList();
|
220
|
+
listData[index].status = status;
|
221
|
+
setListData(_toConsumableArray(listData));
|
218
222
|
}
|
219
223
|
});
|
220
224
|
}
|
@@ -263,7 +267,7 @@ var VideoPublishTaskPlanList = function VideoPublishTaskPlanList(_ref) {
|
|
263
267
|
size: "small",
|
264
268
|
bordered: true,
|
265
269
|
rowKey: function rowKey(record) {
|
266
|
-
return "".concat(record.id);
|
270
|
+
return "".concat(record.id, "-").concat(record.status);
|
267
271
|
},
|
268
272
|
rowClassName: function rowClassName(record) {
|
269
273
|
return "row-".concat(record.status);
|
@@ -2,7 +2,7 @@ import React from "react";
|
|
2
2
|
interface Props {
|
3
3
|
env?: Global.Env;
|
4
4
|
itemData: VideoPublishTaskPlan.List;
|
5
|
-
onStatusChange: () => void;
|
5
|
+
onStatusChange: (status: VideoPublishTaskPlan.PlanStatus) => void;
|
6
6
|
}
|
7
7
|
declare const VideoPublishTaskPlanOperate: React.FC<Props>;
|
8
8
|
export default VideoPublishTaskPlanOperate;
|
@@ -1,3 +1,5 @@
|
|
1
|
+
import _regeneratorRuntime from "@babel/runtime/helpers/esm/regeneratorRuntime";
|
2
|
+
import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
|
1
3
|
import { Button, Popconfirm, Space } from "antd";
|
2
4
|
import React from "react";
|
3
5
|
import { useRequest } from "@umijs/hooks";
|
@@ -11,6 +13,53 @@ var VideoPublishTaskPlanOperate = function VideoPublishTaskPlanOperate(_ref) {
|
|
11
13
|
itemData = _ref.itemData,
|
12
14
|
_ref$onStatusChange = _ref.onStatusChange,
|
13
15
|
onStatusChange = _ref$onStatusChange === void 0 ? function () {} : _ref$onStatusChange;
|
16
|
+
// const getFileName = ( filePath: string ) => {
|
17
|
+
// const videoPathInfo = filePath.split(/[\/\\]/g);
|
18
|
+
// return videoPathInfo[ videoPathInfo.length - 1 ] || '';
|
19
|
+
// }
|
20
|
+
|
21
|
+
var videoRename = /*#__PURE__*/function () {
|
22
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(videoPath) {
|
23
|
+
var videoPathInfo, newName, newFilePath;
|
24
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
25
|
+
while (1) switch (_context2.prev = _context2.next) {
|
26
|
+
case 0:
|
27
|
+
videoPathInfo = videoPath.split(/[\/\\]/g);
|
28
|
+
newName = "repeal-" + Date.now() + '.' + Tool.getFileExt(videoPath);
|
29
|
+
newFilePath = videoPathInfo.slice(0, -1).join('/') + "/".concat(newName);
|
30
|
+
return _context2.abrupt("return", new Promise( /*#__PURE__*/function () {
|
31
|
+
var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(resolve, reject) {
|
32
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
33
|
+
while (1) switch (_context.prev = _context.next) {
|
34
|
+
case 0:
|
35
|
+
window.getBridge().fs.rename(videoPath, newFilePath, function (err) {
|
36
|
+
if (err) {
|
37
|
+
console.log('video Rename err:', err);
|
38
|
+
reject(err);
|
39
|
+
return;
|
40
|
+
}
|
41
|
+
resolve(newFilePath);
|
42
|
+
});
|
43
|
+
case 1:
|
44
|
+
case "end":
|
45
|
+
return _context.stop();
|
46
|
+
}
|
47
|
+
}, _callee);
|
48
|
+
}));
|
49
|
+
return function (_x2, _x3) {
|
50
|
+
return _ref3.apply(this, arguments);
|
51
|
+
};
|
52
|
+
}()));
|
53
|
+
case 4:
|
54
|
+
case "end":
|
55
|
+
return _context2.stop();
|
56
|
+
}
|
57
|
+
}, _callee2);
|
58
|
+
}));
|
59
|
+
return function videoRename(_x) {
|
60
|
+
return _ref2.apply(this, arguments);
|
61
|
+
};
|
62
|
+
}();
|
14
63
|
var _useRequest = useRequest(function () {
|
15
64
|
return VideoPublishTaskPlanController.repeal({
|
16
65
|
planId: itemData.id
|
@@ -19,10 +68,32 @@ var VideoPublishTaskPlanOperate = function VideoPublishTaskPlanOperate(_ref) {
|
|
19
68
|
});
|
20
69
|
}, {
|
21
70
|
manual: true,
|
22
|
-
onSuccess: function
|
23
|
-
|
24
|
-
|
25
|
-
|
71
|
+
onSuccess: function () {
|
72
|
+
var _onSuccess = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(result) {
|
73
|
+
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
74
|
+
while (1) switch (_context3.prev = _context3.next) {
|
75
|
+
case 0:
|
76
|
+
Tool.toast('已经改为【废除】状态');
|
77
|
+
// 释放本地文件
|
78
|
+
if (!(result.productType === "active-account-mode")) {
|
79
|
+
_context3.next = 4;
|
80
|
+
break;
|
81
|
+
}
|
82
|
+
_context3.next = 4;
|
83
|
+
return videoRename(result.videoUrl).catch(function (err) {});
|
84
|
+
case 4:
|
85
|
+
onStatusChange('repeal');
|
86
|
+
case 5:
|
87
|
+
case "end":
|
88
|
+
return _context3.stop();
|
89
|
+
}
|
90
|
+
}, _callee3);
|
91
|
+
}));
|
92
|
+
function onSuccess(_x4) {
|
93
|
+
return _onSuccess.apply(this, arguments);
|
94
|
+
}
|
95
|
+
return onSuccess;
|
96
|
+
}()
|
26
97
|
}),
|
27
98
|
runRepeal = _useRequest.run,
|
28
99
|
loadingRepeal = _useRequest.loading;
|
@@ -36,7 +107,7 @@ var VideoPublishTaskPlanOperate = function VideoPublishTaskPlanOperate(_ref) {
|
|
36
107
|
manual: true,
|
37
108
|
onSuccess: function onSuccess() {
|
38
109
|
Tool.toast('已经改为【等待】状态');
|
39
|
-
onStatusChange();
|
110
|
+
onStatusChange('wait');
|
40
111
|
}
|
41
112
|
}),
|
42
113
|
runRetry = _useRequest2.run,
|
@@ -0,0 +1,94 @@
|
|
1
|
+
import _regeneratorRuntime from "@babel/runtime/helpers/esm/regeneratorRuntime";
|
2
|
+
import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
|
3
|
+
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
4
|
+
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
5
|
+
import React from 'react';
|
6
|
+
import { Button, DatePicker, Form, Switch } from 'antd';
|
7
|
+
import { useRequest } from "@umijs/hooks";
|
8
|
+
import * as VideoPublishVideoAccountController from "../../../service/api/VideoPublishVideoAccountController";
|
9
|
+
import PageContentWarp from "../../../UI/PageContentWarp";
|
10
|
+
import DialogDrawerFooter from "../../../UI/DialogDrawerFooter";
|
11
|
+
import toast from "../../../lib/toast";
|
12
|
+
import dayjs from "dayjs";
|
13
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
14
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
15
|
+
var VideoAccountBan = function VideoAccountBan(_ref) {
|
16
|
+
var env = _ref.env,
|
17
|
+
videoAccountId = _ref.videoAccountId,
|
18
|
+
isBan = _ref.isBan,
|
19
|
+
notBanTime = _ref.notBanTime,
|
20
|
+
_ref$onSuccess = _ref.onSuccess,
|
21
|
+
_onSuccess = _ref$onSuccess === void 0 ? function () {} : _ref$onSuccess;
|
22
|
+
var _Form$useForm = Form.useForm(),
|
23
|
+
_Form$useForm2 = _slicedToArray(_Form$useForm, 1),
|
24
|
+
form = _Form$useForm2[0];
|
25
|
+
var _useRequest = useRequest(function (data) {
|
26
|
+
return VideoPublishVideoAccountController.ban(_objectSpread(_objectSpread({}, data), {}, {
|
27
|
+
id: videoAccountId
|
28
|
+
}), {
|
29
|
+
env: env
|
30
|
+
});
|
31
|
+
}, {
|
32
|
+
manual: true,
|
33
|
+
onSuccess: function () {
|
34
|
+
var _onSuccess2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(result) {
|
35
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
36
|
+
while (1) switch (_context.prev = _context.next) {
|
37
|
+
case 0:
|
38
|
+
toast('已保存');
|
39
|
+
_onSuccess();
|
40
|
+
case 2:
|
41
|
+
case "end":
|
42
|
+
return _context.stop();
|
43
|
+
}
|
44
|
+
}, _callee);
|
45
|
+
}));
|
46
|
+
function onSuccess(_x) {
|
47
|
+
return _onSuccess2.apply(this, arguments);
|
48
|
+
}
|
49
|
+
return onSuccess;
|
50
|
+
}()
|
51
|
+
}),
|
52
|
+
run = _useRequest.run,
|
53
|
+
loading = _useRequest.loading;
|
54
|
+
var onFinish = function onFinish(values) {
|
55
|
+
run(_objectSpread(_objectSpread({}, values), {}, {
|
56
|
+
notBanTime: values.notBanTime ? Math.floor(values.notBanTime.valueOf() * 0.001) : 0
|
57
|
+
}));
|
58
|
+
};
|
59
|
+
return /*#__PURE__*/_jsx(PageContentWarp, {
|
60
|
+
className: "videoAccountBan",
|
61
|
+
children: /*#__PURE__*/_jsxs(Form, {
|
62
|
+
labelCol: {
|
63
|
+
span: 6
|
64
|
+
},
|
65
|
+
form: form,
|
66
|
+
initialValues: {
|
67
|
+
isBan: isBan,
|
68
|
+
notBanTime: notBanTime > 1e5 ? dayjs(notBanTime * 1e3) : null
|
69
|
+
},
|
70
|
+
disabled: loading,
|
71
|
+
onFinish: onFinish,
|
72
|
+
children: [/*#__PURE__*/_jsx(Form.Item, {
|
73
|
+
name: "isBan",
|
74
|
+
label: "\u662F\u5426\u88AB\u5C01\u7981",
|
75
|
+
children: /*#__PURE__*/_jsx(Switch, {
|
76
|
+
checkedChildren: "\u672A\u5C01\u7981",
|
77
|
+
unCheckedChildren: "\u5DF2\u5C01\u7981"
|
78
|
+
})
|
79
|
+
}), /*#__PURE__*/_jsx(Form.Item, {
|
80
|
+
name: "notBanTime",
|
81
|
+
label: "\u89E3\u5C01\u65F6\u95F4",
|
82
|
+
children: /*#__PURE__*/_jsx(DatePicker, {})
|
83
|
+
}), /*#__PURE__*/_jsx(DialogDrawerFooter, {
|
84
|
+
children: /*#__PURE__*/_jsx(Button, {
|
85
|
+
type: "primary",
|
86
|
+
htmlType: "submit",
|
87
|
+
loading: loading,
|
88
|
+
children: "\u4FDD\u5B58"
|
89
|
+
})
|
90
|
+
})]
|
91
|
+
})
|
92
|
+
});
|
93
|
+
};
|
94
|
+
export default VideoAccountBan;
|
@@ -17,6 +17,8 @@ import VideoAccountGroup from "./group";
|
|
17
17
|
import VideoAccountCreate from "./create";
|
18
18
|
import VideoPublishVideoAccountProxySelect from "../proxy/select";
|
19
19
|
import SavePath from "../../lib/save-path";
|
20
|
+
import dayjs from "dayjs";
|
21
|
+
import VideoAccountBan from "./ban";
|
20
22
|
import { jsx as _jsx } from "react/jsx-runtime";
|
21
23
|
import { Fragment as _Fragment } from "react/jsx-runtime";
|
22
24
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
@@ -107,6 +109,14 @@ var VideoPublishVideoAccount = function VideoPublishVideoAccount(_ref) {
|
|
107
109
|
className: "userId",
|
108
110
|
children: record === null || record === void 0 ? void 0 : record.accountId
|
109
111
|
})]
|
112
|
+
}), record && (record === null || record === void 0 ? void 0 : record.isBan) && /*#__PURE__*/_jsx("div", {
|
113
|
+
className: "isBan",
|
114
|
+
children: /*#__PURE__*/_jsx("a", {
|
115
|
+
onClick: function onClick() {
|
116
|
+
return onBanEdit(record);
|
117
|
+
},
|
118
|
+
children: record !== null && record !== void 0 && record.notBanTime && record.notBanTime > Date.now() * 0.001 ? dayjs(record.notBanTime * 1e3).format('MM-DD') + ' 解封' : '已封'
|
119
|
+
})
|
110
120
|
})]
|
111
121
|
});
|
112
122
|
}
|
@@ -263,6 +273,24 @@ var VideoPublishVideoAccount = function VideoPublishVideoAccount(_ref) {
|
|
263
273
|
}),
|
264
274
|
runVideoFromFolder = _useRequest3.run,
|
265
275
|
loadingVideoFromFolder = _useRequest3.loading;
|
276
|
+
var onBanEdit = function onBanEdit(record) {
|
277
|
+
var _ref2;
|
278
|
+
var dialog = Tool.drawer({
|
279
|
+
title: '编辑账号被封',
|
280
|
+
content: /*#__PURE__*/_jsx(VideoAccountBan, {
|
281
|
+
env: env,
|
282
|
+
videoAccountId: record.id,
|
283
|
+
isBan: record.isBan,
|
284
|
+
notBanTime: record.notBanTime,
|
285
|
+
onSuccess: function onSuccess() {
|
286
|
+
runVideoAccount();
|
287
|
+
dialog.destroy();
|
288
|
+
}
|
289
|
+
}),
|
290
|
+
zIndex: 1200,
|
291
|
+
width: Math.min(520, ((_ref2 = global || window) === null || _ref2 === void 0 ? void 0 : _ref2.innerWidth) * 0.95)
|
292
|
+
});
|
293
|
+
};
|
266
294
|
var _onQuery = function onQuery(query) {
|
267
295
|
setQuery(_objectSpread({}, query));
|
268
296
|
runVideoAccount(query);
|
@@ -5,6 +5,7 @@
|
|
5
5
|
|
6
6
|
|
7
7
|
.userInfo{
|
8
|
+
position: relative;
|
8
9
|
display: flex;
|
9
10
|
flex-direction: row;
|
10
11
|
.avatar{
|
@@ -23,6 +24,19 @@
|
|
23
24
|
font-weight: 300;
|
24
25
|
}
|
25
26
|
}
|
27
|
+
.isBan{
|
28
|
+
position: absolute;
|
29
|
+
top: -13px;
|
30
|
+
right: -8px;
|
31
|
+
a{
|
32
|
+
display: inline-block;
|
33
|
+
font-size: 12px;
|
34
|
+
background-color: #C00;
|
35
|
+
color: #FFF;
|
36
|
+
padding: 2px 3px;
|
37
|
+
line-height: 1em;
|
38
|
+
}
|
39
|
+
}
|
26
40
|
}
|
27
41
|
.groupName{
|
28
42
|
i{
|
package/dist/lib/Tool.d.ts
CHANGED
@@ -162,7 +162,7 @@ declare const Tool: {
|
|
162
162
|
getTitleByPath(path: string): string;
|
163
163
|
getDirByPath(path: string): string;
|
164
164
|
h5Pay(query: Pay.H5PayQuery): void;
|
165
|
-
notification(type: "
|
165
|
+
notification(type: "info" | "error" | "success" | "warning", message: string, description?: import("react").ReactNode, options?: NotificationOptions): void;
|
166
166
|
notificationSuccess(message: string, description?: import("react").ReactNode, options?: NotificationOptions): void;
|
167
167
|
notificationError(message: string, description?: import("react").ReactNode, options?: NotificationOptions): void;
|
168
168
|
notificationWarning(message: string, description?: import("react").ReactNode, options?: NotificationOptions): void;
|
@@ -2,12 +2,12 @@ import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
2
2
|
import store from "./store";
|
3
3
|
var AccountManageSettingConfigKey = 'account-manage-setting';
|
4
4
|
var AccountManageSettingConfig = function AccountManageSettingConfig(data) {
|
5
|
-
var _window$getBridge, _window;
|
5
|
+
var _window$getBridge, _window, _window$getBridge$cal, _window$getBridge$cal2;
|
6
6
|
if (data) {
|
7
7
|
store.set(AccountManageSettingConfigKey, _objectSpread({}, data));
|
8
8
|
return data;
|
9
9
|
}
|
10
|
-
var chromePath = (_window$getBridge = (_window = window).getBridge) === null || _window$getBridge === void 0 ? void 0 : _window$getBridge.call(_window)
|
10
|
+
var chromePath = ((_window$getBridge = (_window = window).getBridge) === null || _window$getBridge === void 0 || (_window$getBridge$cal = (_window$getBridge$cal2 = _window$getBridge.call(_window)).getChromiumPath) === null || _window$getBridge$cal === void 0 ? void 0 : _window$getBridge$cal.call(_window$getBridge$cal2)) || '';
|
11
11
|
|
12
12
|
// console.log('AccountManageSettingConfig get:', chromePath );
|
13
13
|
|
@@ -7,7 +7,7 @@ export declare function list(body: {
|
|
7
7
|
}, options?: Global.RequestOptions): Promise<VideoPublishTaskPlan.ListResult>;
|
8
8
|
export declare function repeal(body: {
|
9
9
|
planId: number;
|
10
|
-
}, options?: Global.RequestOptions): Promise<
|
10
|
+
}, options?: Global.RequestOptions): Promise<PublishTaskPlan.Detail>;
|
11
11
|
export declare function retry(body: {
|
12
12
|
planId: number;
|
13
13
|
}, options?: Global.RequestOptions): Promise<boolean>;
|
@@ -14,3 +14,4 @@ export declare function del(body: {
|
|
14
14
|
export declare function detail(body: VideoPublishVideoAccount.DetailQuery, options?: Global.RequestOptions): Promise<VideoPublishVideoAccount.Detail>;
|
15
15
|
export declare function saveLoginStatus(body: VideoPublishVideoAccount.SaveLoginStatus, options?: Global.RequestOptions): Promise<boolean>;
|
16
16
|
export declare function createProxy(body: VideoPublishVideoAccountProxy.CreateProxyQuery, options?: Global.RequestOptions): Promise<boolean>;
|
17
|
+
export declare function ban(body: VideoPublishVideoAccount.BanQuery, options?: Global.RequestOptions): Promise<boolean>;
|
@@ -211,4 +211,27 @@ function _createProxy() {
|
|
211
211
|
}, _callee9);
|
212
212
|
}));
|
213
213
|
return _createProxy.apply(this, arguments);
|
214
|
+
}
|
215
|
+
export function ban(_x19, _x20) {
|
216
|
+
return _ban.apply(this, arguments);
|
217
|
+
}
|
218
|
+
function _ban() {
|
219
|
+
_ban = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee10(body, options) {
|
220
|
+
return _regeneratorRuntime().wrap(function _callee10$(_context10) {
|
221
|
+
while (1) switch (_context10.prev = _context10.next) {
|
222
|
+
case 0:
|
223
|
+
return _context10.abrupt("return", request(PublishDomainApi("user/videoAccount/ban", options === null || options === void 0 ? void 0 : options.env), _objectSpread({
|
224
|
+
method: 'POST',
|
225
|
+
headers: {
|
226
|
+
'Content-Type': 'application/json'
|
227
|
+
},
|
228
|
+
data: _objectSpread({}, body)
|
229
|
+
}, options || {})));
|
230
|
+
case 1:
|
231
|
+
case "end":
|
232
|
+
return _context10.stop();
|
233
|
+
}
|
234
|
+
}, _callee10);
|
235
|
+
}));
|
236
|
+
return _ban.apply(this, arguments);
|
214
237
|
}
|
@@ -7,10 +7,6 @@ declare namespace VideoPublishVideoAccount {
|
|
7
7
|
interface DetailQuery {
|
8
8
|
id: number;
|
9
9
|
}
|
10
|
-
interface Detail {
|
11
|
-
groupId: number;
|
12
|
-
nicknameRemark: string;
|
13
|
-
}
|
14
10
|
interface BaseInfo {
|
15
11
|
id: number;
|
16
12
|
"platform": Global.VideoPlatformKind;
|
@@ -24,4 +20,87 @@ declare namespace VideoPublishVideoAccount {
|
|
24
20
|
"nickname": string;
|
25
21
|
"nicknameRemark": string;
|
26
22
|
}
|
23
|
+
interface BanQuery {
|
24
|
+
id: number;
|
25
|
+
isBan: boolean;
|
26
|
+
notBanTime: number;
|
27
|
+
}
|
28
|
+
interface CreateQuery {
|
29
|
+
detail: CreateQueryDetail;
|
30
|
+
proxyId: number;
|
31
|
+
}
|
32
|
+
interface CreateQueryDetail {
|
33
|
+
avatar: string;
|
34
|
+
bindPhone: string;
|
35
|
+
nickname: string;
|
36
|
+
signature: string;
|
37
|
+
followerCount: number;
|
38
|
+
followingCount: number;
|
39
|
+
totalFavorited: number;
|
40
|
+
uniqueId: string;
|
41
|
+
accountId: string;
|
42
|
+
platform: Global.VideoPlatformKind;
|
43
|
+
subPlatform: string;
|
44
|
+
totalVideoCount: number;
|
45
|
+
chromeProfileName: string;
|
46
|
+
}
|
47
|
+
interface SaveLoginStatus {
|
48
|
+
clientIdentity: string;
|
49
|
+
taskId: number;
|
50
|
+
platformVideoAccountId: string;
|
51
|
+
platform: string;
|
52
|
+
isLogin: boolean;
|
53
|
+
loginValidMessage: string;
|
54
|
+
}
|
55
|
+
interface ListResult {
|
56
|
+
list: List[];
|
57
|
+
pagination: Global.Pagination;
|
58
|
+
}
|
59
|
+
interface List {
|
60
|
+
id: number;
|
61
|
+
userId: number;
|
62
|
+
platform: Global.VideoPlatformKind;
|
63
|
+
groupId: number;
|
64
|
+
groupName: string;
|
65
|
+
uniqueId: string;
|
66
|
+
accountId: string;
|
67
|
+
avatar: string;
|
68
|
+
bindPhone: string;
|
69
|
+
nickname: string;
|
70
|
+
nicknameRemark: string;
|
71
|
+
signature: string;
|
72
|
+
isLoginValid: boolean;
|
73
|
+
followerCount: number;
|
74
|
+
followingCount: number;
|
75
|
+
favoritedCount: number;
|
76
|
+
videoCount: number;
|
77
|
+
created: number;
|
78
|
+
updated: number;
|
79
|
+
chromeProfileName: string;
|
80
|
+
videoFromFolder: string;
|
81
|
+
proxyInfo: Global.ProxyInfo;
|
82
|
+
}
|
83
|
+
interface Detail {
|
84
|
+
id: number;
|
85
|
+
platform: Global.VideoPlatformKind;
|
86
|
+
uid: string;
|
87
|
+
dealerUserId: number;
|
88
|
+
shopName: string;
|
89
|
+
userId: string;
|
90
|
+
shopId: string;
|
91
|
+
isAuthorized: false;
|
92
|
+
isLoginValid: true;
|
93
|
+
productType: string;
|
94
|
+
cookie: string;
|
95
|
+
localStorage: string;
|
96
|
+
nicknameRemark: string;
|
97
|
+
groupId: number;
|
98
|
+
avatarUrl: string;
|
99
|
+
staffId: number;
|
100
|
+
created: number;
|
101
|
+
updated: number;
|
102
|
+
}
|
103
|
+
interface ExpireQuery {
|
104
|
+
promoterId: number;
|
105
|
+
}
|
27
106
|
}
|
@@ -1,77 +1,2 @@
|
|
1
|
-
declare namespace
|
2
|
-
interface CreateQuery {
|
3
|
-
detail: CreateQueryDetail;
|
4
|
-
proxyId: number;
|
5
|
-
}
|
6
|
-
interface CreateQueryDetail {
|
7
|
-
avatar: string;
|
8
|
-
bindPhone: string;
|
9
|
-
nickname: string;
|
10
|
-
signature: string;
|
11
|
-
followerCount: number;
|
12
|
-
followingCount: number;
|
13
|
-
totalFavorited: number;
|
14
|
-
uniqueId: string;
|
15
|
-
accountId: string;
|
16
|
-
platform: Global.VideoPlatformKind;
|
17
|
-
subPlatform: string;
|
18
|
-
totalVideoCount: number;
|
19
|
-
chromeProfileName: string;
|
20
|
-
}
|
21
|
-
interface SaveLoginStatus {
|
22
|
-
clientIdentity: string;
|
23
|
-
taskId: number;
|
24
|
-
platformVideoAccountId: string;
|
25
|
-
platform: string;
|
26
|
-
isLogin: boolean;
|
27
|
-
loginValidMessage: string;
|
28
|
-
}
|
29
|
-
interface ListResult {
|
30
|
-
list: List[];
|
31
|
-
pagination: Global.Pagination;
|
32
|
-
}
|
33
|
-
interface List {
|
34
|
-
id: number;
|
35
|
-
userId: number;
|
36
|
-
platform: Global.VideoPlatformKind;
|
37
|
-
groupId: number;
|
38
|
-
groupName: string;
|
39
|
-
uniqueId: string;
|
40
|
-
accountId: string;
|
41
|
-
avatar: string;
|
42
|
-
bindPhone: string;
|
43
|
-
nickname: string;
|
44
|
-
nicknameRemark: string;
|
45
|
-
signature: string;
|
46
|
-
isLoginValid: boolean;
|
47
|
-
followerCount: number;
|
48
|
-
followingCount: number;
|
49
|
-
favoritedCount: number;
|
50
|
-
videoCount: number;
|
51
|
-
created: number;
|
52
|
-
updated: number;
|
53
|
-
chromeProfileName: string;
|
54
|
-
videoFromFolder: string;
|
55
|
-
proxyInfo: Global.ProxyInfo;
|
56
|
-
}
|
57
|
-
interface Detail {
|
58
|
-
id: number;
|
59
|
-
platform: Global.VideoPlatformKind;
|
60
|
-
uid: string;
|
61
|
-
dealerUserId: number;
|
62
|
-
shopName: string;
|
63
|
-
userId: string;
|
64
|
-
shopId: string;
|
65
|
-
isAuthorized: false;
|
66
|
-
isLoginValid: true;
|
67
|
-
cookie: string;
|
68
|
-
localStorage: string;
|
69
|
-
avatarUrl: string;
|
70
|
-
staffId: number;
|
71
|
-
created: number;
|
72
|
-
updated: number;
|
73
|
-
}
|
74
|
-
interface ExpireQuery {
|
75
|
-
promoterId: number;
|
76
|
-
}
|
1
|
+
declare namespace VideoPublishVideoAccount222 {
|
77
2
|
}
|