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
96e4ee12
Commit
96e4ee12
authored
Jun 01, 2021
by
张淑琴
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加丢失函数
parent
7418a9eb
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
33 additions
and
2 deletions
+33
-2
im_request.py
all_backend_api/im_request.py
+14
-0
im_request.yaml
all_backend_api/im_request.yaml
+17
-0
host.yaml
host.yaml
+2
-2
No files found.
all_backend_api/im_request.py
View file @
96e4ee12
...
...
@@ -21,10 +21,24 @@ class im_request(BaseRequest):
self
.
params
[
"conversation_id"
]
=
conversation_id
return
self
.
api_send
(
self
.
data
[
"auto_msg"
])
def
send_msg
(
self
,
conversation_id
,
is_system
,
referrer
,
referrer_id
,
msg_type
,
content
,
extra
):
self
.
params
[
"conversation_id"
]
=
conversation_id
self
.
params
[
"is_system"
]
=
is_system
self
.
params
[
"referrer"
]
=
referrer
self
.
params
[
"referrer_id"
]
=
referrer_id
self
.
params
[
"msg_type"
]
=
msg_type
self
.
params
[
"content"
]
=
content
self
.
params
[
"extra"
]
=
extra
return
self
.
api_send
(
self
.
data
[
"send_msg"
])
if
__name__
==
'__main__'
:
print
(
im_request
()
.
conversation_detail
(
"beijing"
,
0
,
4
,
0
,
"message_home"
))
print
(
"第二个接口"
)
print
(
im_request
()
.
auto_msg
(
"7.42.2"
,
"1B519701-A4F5-453E-9D99-140B5AF697A0"
,
"2021/04/22/1722/70a1791606d5"
,
368
))
print
(
"send_msg"
)
print
(
im_request
()
.
send_msg
(
"368"
,
0
,
"message_home"
,
""
,
0
,
"您好,我想咨询一下"
,
{}))
...
...
all_backend_api/im_request.yaml
View file @
96e4ee12
...
...
@@ -25,3 +25,20 @@ auto_msg:
json
:
{}
isLogin
:
1
#需要登录的接口
send_msg
:
method
:
post
url
:
/api/im/send_msg
params
:
{}
data
:
conversation_id
:
${conversation_id}
is_system
:
${is_system}
referrer
:
${referrer}
referrer_id
:
${referrer_id}
msg_type
:
${msg_type}
content
:
${content}
extra
:
${extra}
json
:
{}
isLogin
:
1
#需要登录的接口
host.yaml
View file @
96e4ee12
develop_host
:
#
backend: http://backend.paas-develop.env
doctor
:
http://doctor.paas-develop.env
backend
:
http://backend.paas-develop.env
#
doctor: http://doctor.paas-develop.env
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