Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
B
backend_auto
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
邓莹莹
backend_auto
Commits
76bd138f
Commit
76bd138f
authored
Jul 30, 2021
by
edz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
om后台批量添加直播间商品
parent
d0ce4e0b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
20 deletions
+16
-20
achelous_request.py
all_om_api/achelous_request.py
+6
-6
achelous_request.yaml
all_om_api/achelous_request.yaml
+10
-10
test_batch_add_service.py
test_om_case/achelous_case/test_batch_add_service.py
+0
-4
No files found.
all_om_api/achelous_request.py
View file @
76bd138f
...
...
@@ -10,11 +10,11 @@ class achelous_request(BaseRequest):
self
.
params
[
"service_item_ids"
]
=
service_item_ids
return
self
.
api_send
(
self
.
data
[
"batch_add_service"
])
def
batch_del_service
(
self
,
stream_id
,
service_item_ids
):
self
.
params
[
"stream_id"
]
=
stream_id
self
.
params
[
"service_item_ids"
]
=
service_item_ids
return
self
.
api_send
(
self
.
data
[
"batch_add_service"
])
#
def batch_del_service(self, stream_id, service_item_ids):
#
self.params["stream_id"] = stream_id
#
self.params["service_item_ids"] = service_item_ids
#
return self.api_send(self.data["batch_add_service"])
if
__name__
==
"__main__"
:
print
(
achelous_request
()
.
batch_add_service
(
"4176"
,
"73809,23508,33823"
))
print
(
achelous_request
()
.
batch_del_service
(
"4176"
,
"7312,7311"
))
\ No newline at end of file
# print(achelous_request().batch_del_service("4176","7312,7311"))
\ No newline at end of file
all_om_api/achelous_request.yaml
View file @
76bd138f
...
...
@@ -8,12 +8,12 @@ batch_add_service:
json
:
{}
isLogin
:
1
batch_del_service
:
method
:
post
url
:
/achelous/live/batch_del_service
params
:
{}
data
:
stream_id
:
${stream_id}
service_item_ids
:
${service_item_ids}
json
:
{}
isLogin
:
1
\ No newline at end of file
#batch_del_service:
# method: post
#url: /achelous/live/batch_del_service
#params: {}
#data:
# stream_id: ${stream_id}
#service_item_ids: ${service_item_ids}
#json: {}
#isLogin: 1
\ No newline at end of file
test_om_case/achelous_case/test_batch_add_service.py
View file @
76bd138f
...
...
@@ -18,6 +18,3 @@ class TestBatchAddService:
assert
r
[
"success_service_item_ids"
]
==
param
[
"assert2"
]
elif
r
[
"success_service_item_ids"
]
==
0
:
assert
r
[
"success_service_item_ids"
]
==
param
[
"assert1"
]
live_request
()
.
delete_live_service
(
"745"
,
"7242"
,
"7.45.0"
)
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment