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
1158b950
Commit
1158b950
authored
Jun 01, 2021
by
张淑琴
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
恢复文件
parent
870068c8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
41 additions
and
0 deletions
+41
-0
private_conversation_request.py
all_backend_api/private_conversation_request.py
+24
-0
private_conversation_request.yaml
all_backend_api/private_conversation_request.yaml
+17
-0
No files found.
all_backend_api/private_conversation_request.py
0 → 100644
View file @
1158b950
import
path_setting
from
in_common.base_request
import
BaseRequest
class
private_conversation_request
(
BaseRequest
):
def
__init__
(
self
):
self
.
data
=
self
.
api_load
(
path_setting
.
PRIVATE_CONVERSATION_CONFIG
)
def
private_conversation
(
self
,
content
,
target_uid
,
referrer
,
referrer_id
,
is_system
,
quick_consultation_id
,
diary_id
,
from_live
):
self
.
params
[
"content"
]
=
content
self
.
params
[
"target_uid"
]
=
target_uid
self
.
params
[
"referrer"
]
=
referrer
self
.
params
[
"referrer_id"
]
=
referrer_id
self
.
params
[
"is_system"
]
=
is_system
self
.
params
[
"quick_consultation_id"
]
=
quick_consultation_id
self
.
params
[
"diary_id"
]
=
diary_id
self
.
params
[
"from_live"
]
=
from_live
return
self
.
api_send
(
self
.
data
[
"private_conversation"
])
if
__name__
==
'__main__'
:
print
(
private_conversation_request
()
.
private_conversation
(
"你好"
,
"35874935"
,
"message_home"
,
""
,
0
,
""
,
""
,
""
))
\ No newline at end of file
all_backend_api/private_conversation_request.yaml
0 → 100644
View file @
1158b950
private_conversation
:
method
:
post
url
:
/api/private_conversation/
params
:
{}
data
:
content
:
${content}
target_uid
:
${target_uid}
referrer
:
${referrer}
referrer_id
:
${referrer_id}
is_system
:
${is_system}
quick_consultation_id
:
${quick_consultation_id}
diary_id
:
${diary_id}
from_live
:
${from_live}
json
:
{}
isLogin
:
1
#需要登录的接口
\ 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