Commit a475b175 authored by 冯艮霞's avatar 冯艮霞

我的-收藏

parent e8e9ad79
......@@ -52,7 +52,7 @@ class user_request(BaseRequest):
return self.api_send(self.data["reply_tractate"])
# 我的-问题
# 我的-问题-提问
def my_question(self, start_num, count):
self.params["start_num"] = start_num
......@@ -61,7 +61,7 @@ class user_request(BaseRequest):
return self.api_send(self.data["my_question"])
# 我的-收藏
# 我的-收藏-商品
def favors_services(self, start_num, count, current_city_id, device_id, version):
self.params["start_num"] = start_num
......@@ -72,6 +72,32 @@ class user_request(BaseRequest):
return self.api_send(self.data["favors_services"])
# 我的-问题-回答
def my_answer(self, start_num, count):
self.params["start_num"] = start_num
self.params["count"] = count
return self.api_send(self.data["my_answer"])
# 我的-收藏-日记本
def favors_diaries(self, start_num, count):
self.params["start_num"] = start_num
self.params["count"] = count
return self.api_send(self.data["favors_diaries"])
# 我的-收藏-日记贴
def favors_topics(self, start_num, count):
self.params["start_num"] = start_num
self.params["count"] = count
return self.api_send(self.data["favors_topics"])
if __name__ == '__main__':
#个人中心
......@@ -95,4 +121,15 @@ if __name__ == '__main__':
#我的-帖子-我回复的
print(user_request().reply_tractate(1, 10, "7.46.0"))
# 我的-问题-回答
print(user_request().my_answer(0, 10))
# 我的-收藏-日记本
print(user_request().favors_diaries(0, 10))
# 我的-收藏-日记贴
print(user_request().favors_topics(0, 10))
......@@ -79,3 +79,39 @@ reply_tractate:
data: {}
json: {}
isLogin: 1
# 我的-问题-回答
my_answer:
method: GET
url: /api/user/my_answer
params:
start_num: ${start_num}
count: ${count}
data: {}
json: {}
isLogin: 1
# 我的-收藏-日记本
favors_diaries:
method: GET
url: /api/user/favors/diaries
params:
start_num: ${start_num}
count: ${count}
data: {}
json: {}
isLogin: 1
# 我的-收藏-日记贴
favors_topics:
method: GET
url: /api/user/favors/topics
params:
start_num: ${start_num}
count: ${count}
data: {}
json: {}
isLogin: 1
......@@ -420,12 +420,24 @@ USER_TRACTATE = os.path.join(BASE_DIR, "backend_auto/test_backend_data/user_data
MY_QUESTION_CONFIG = os.path.join(BASE_DIR, "backend_auto/all_backend_api", "user_request.yaml")
MY_QUESTION = os.path.join(BASE_DIR, "backend_auto/test_backend_data/user_data", "my_question.yaml")
#我的-收藏
#我的-收藏-日记本
FAVORS_SERVICES_CONFIG = os.path.join(BASE_DIR, "backend_auto/all_backend_api", "user_request.yaml")
FAVORS_SERVICES = os.path.join(BASE_DIR, "backend_auto/test_backend_data/user_data", "favors_services.yaml")
#我的-帖子-我回复的
REPLY_TRACTATE_CONFIG = os.path.join(BASE_DIR, "backend_auto/all_backend_api", "user_request.yaml")
REPLY_TRACTATE = os.path.join(BASE_DIR, "backend_auto/test_backend_data/user_data", "reply_tractate.yaml")
#我的-问题-回答
MY_ANSWER_CONFIG = os.path.join(BASE_DIR, "backend_auto/all_backend_api", "user_request.yaml")
MY_ANSWER = os.path.join(BASE_DIR, "backend_auto/test_backend_data/user_data", "my_answer.yaml")
#我的-收藏-日记本
FAVORS_DIARIES_CONFIG = os.path.join(BASE_DIR, "backend_auto/all_backend_api", "user_request.yaml")
FAVORS_DIARIES = os.path.join(BASE_DIR, "backend_auto/test_backend_data/user_data", "favors_diaries.yaml")
#我的-收藏-日记贴
FAVORS_TOPICS_CONFIG = os.path.join(BASE_DIR, "backend_auto/all_backend_api", "user_request.yaml")
FAVORS_TOPICS = os.path.join(BASE_DIR, "backend_auto/test_backend_data/user_data", "favors_topics.yaml")
if __name__ == '__main__':
print("==========",LIVEYAML_CONFIG)
my_question:
#我的-问题
#我的-问题-提问
-
case: "我的页面-问题"
case: "我的页面-问题-提问"
start_num: 0
count: 10
assert: 0
......
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