Commit 1158b950 authored by 张淑琴's avatar 张淑琴

恢复文件

parent 870068c8
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
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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment