Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
O
on_line_product
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
邓莹莹
on_line_product
Commits
70ce86db
Commit
70ce86db
authored
Jul 21, 2021
by
邓莹莹
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交改动
parent
eab09f01
Show whitespace changes
Inline
Side-by-side
Showing
238 changed files
with
1004 additions
and
3443 deletions
+1004
-3443
answer_request.yaml
all_backend_api/answer_request.yaml
+18
-18
common_request.py
all_backend_api/common_request.py
+11
-3
common_request.yaml
all_backend_api/common_request.yaml
+5
-0
conversation_request.py
all_backend_api/conversation_request.py
+6
-6
conversation_request.yaml
all_backend_api/conversation_request.yaml
+12
-12
diary_request.py
all_backend_api/diary_request.py
+7
-7
diary_request.yaml
all_backend_api/diary_request.yaml
+54
-43
doctor_request.yaml
all_backend_api/doctor_request.yaml
+4
-2
gmai_request.yaml
all_backend_api/gmai_request.yaml
+49
-49
hybrid_api_topic_request.yaml
all_backend_api/hybrid_api_topic_request.yaml
+16
-16
hybrid_get_gift_request.yaml
all_backend_api/hybrid_get_gift_request.yaml
+9
-9
im_request.yaml
all_backend_api/im_request.yaml
+28
-28
janus_request.py
all_backend_api/janus_request.py
+0
-18
janus_request.yaml
all_backend_api/janus_request.yaml
+71
-71
notification_request.yaml
all_backend_api/notification_request.yaml
+12
-12
oneimage_request.yaml
all_backend_api/oneimage_request.yaml
+8
-8
pay_request.yaml
all_backend_api/pay_request.yaml
+32
-32
private_conversation_request.yaml
all_backend_api/private_conversation_request.yaml
+17
-17
qa_request.yaml
all_backend_api/qa_request.yaml
+16
-16
question_request.yaml
all_backend_api/question_request.yaml
+12
-12
service_request.yaml
all_backend_api/service_request.yaml
+8
-8
settlement_request.yaml
all_backend_api/settlement_request.yaml
+42
-42
shopcart_request.yaml
all_backend_api/shopcart_request.yaml
+11
-11
topic_reply_create.yaml
all_backend_api/topic_reply_create.yaml
+19
-19
topic_request.yaml
all_backend_api/topic_request.yaml
+18
-18
topicreply_vote.yaml
all_backend_api/topicreply_vote.yaml
+17
-17
tractate_request.yaml
all_backend_api/tractate_request.yaml
+51
-50
user_request.yaml
all_backend_api/user_request.yaml
+16
-16
__init__.py
all_doctor_api/__init__.py
+0
-0
glmer_request.py
all_doctor_api/glmer_request.py
+0
-45
glmer_request.yaml
all_doctor_api/glmer_request.yaml
+0
-46
web2_request.py
all_doctor_api/web2_request.py
+0
-69
web2_request.yaml
all_doctor_api/web2_request.yaml
+0
-84
web_request.py
all_doctor_api/web_request.py
+0
-100
web_request.yaml
all_doctor_api/web_request.yaml
+0
-157
__init__.py
all_om_api/__init__.py
+0
-0
beautycard_request.py
all_om_api/beautycard_request.py
+0
-71
beautycard_request.yaml
all_om_api/beautycard_request.yaml
+0
-72
login_request.py
all_om_api/login_request.py
+0
-19
login_request.yaml
all_om_api/login_request.yaml
+0
-9
base_request.py
in_common/base_request.py
+2
-2
login_session_function.yaml
login_session_function.yaml
+5
-34
path_setting.py
path_setting.py
+253
-252
test_cancel_vote.py
test_backend_case/answer_case/test_cancel_vote.py
+0
-16
test_vote.py
test_backend_case/answer_case/test_vote.py
+1
-0
test_reply.py
test_backend_case/common_case/test_reply.py
+2
-11
test_reply_sub_reply.py
test_backend_case/common_case/test_reply_sub_reply.py
+2
-13
test_favor.py
test_backend_case/diary_case/test_favor.py
+0
-37
test_operation.py
test_backend_case/diary_case/test_operation.py
+3
-3
test_pre_create_topic.py
test_backend_case/diary_case/test_pre_create_topic.py
+25
-0
test_service.py
test_backend_case/diary_case/test_service.py
+5
-21
test_update.py
test_backend_case/diary_case/test_update.py
+0
-32
test_diary_cards.py
test_backend_case/eyelids_case/test_diary_cards.py
+1
-1
test_plastic_feeds.py
test_backend_case/face_case/test_plastic_feeds.py
+1
-1
test_eyelids_plastic.py
test_backend_case/gmai_case/test_eyelids_plastic.py
+0
-18
test_plastic_analysis_v2.py
test_backend_case/gmai_case/test_plastic_analysis_v2.py
+0
-24
test_plastic_analysis_v3.py
test_backend_case/gmai_case/test_plastic_analysis_v3.py
+0
-17
test_simulate_analyze.py
test_backend_case/gmai_case/test_simulate_analyze.py
+0
-18
test_skin_newreport.py
test_backend_case/gmai_case/test_skin_newreport.py
+0
-29
test_detail.py
test_backend_case/hospitals_case/test_detail.py
+1
-6
test_doctor.py
test_backend_case/hospitals_case/test_doctor.py
+0
-5
test_api_topic_vote.py
test_backend_case/hybrid_case/test_api_topic_vote.py
+0
-33
test_basewiki_item.py
test_backend_case/hybrid_case/test_basewiki_item.py
+0
-20
test_basewiki_product.py
test_backend_case/hybrid_case/test_basewiki_product.py
+2
-1
test_brand.py
test_backend_case/hybrid_case/test_brand.py
+2
-1
test_diary_album.py
test_backend_case/hybrid_case/test_diary_album.py
+2
-3
test_sub_wiki.py
test_backend_case/hybrid_case/test_sub_wiki.py
+2
-1
test_get_gift_data.py
test_backend_case/hybrid_get_gift_case/test_get_gift_data.py
+0
-20
test_auto_msg.py
test_backend_case/im_case/test_auto_msg.py
+0
-18
test_conversation_detail.py
test_backend_case/im_case/test_conversation_detail.py
+1
-3
test_send_msg.py
test_backend_case/im_case/test_send_msg.py
+0
-22
test_beauty_card_order_confirm.py
...backend_case/janus_case/test_beauty_card_order_confirm.py
+0
-19
test_beauty_card_order_detail_used.py
...end_case/janus_case/test_beauty_card_order_detail_used.py
+1
-0
test_beauty_card_order_detail_using.py
...nd_case/janus_case/test_beauty_card_order_detail_using.py
+1
-0
test_beauty_card_order_detail_waituse.py
..._case/janus_case/test_beauty_card_order_detail_waituse.py
+1
-0
test_beauty_card_order_submit.py
..._backend_case/janus_case/test_beauty_card_order_submit.py
+1
-0
test_beauty_card_payment_delete.py
...ackend_case/janus_case/test_beauty_card_payment_delete.py
+1
-0
test_beauty_card_payment_detail.py
...ackend_case/janus_case/test_beauty_card_payment_detail.py
+1
-0
test_beauty_card_payment_method.py
...ackend_case/janus_case/test_beauty_card_payment_method.py
+1
-0
test_beauty_card_prepay_alipay.py
...backend_case/janus_case/test_beauty_card_prepay_alipay.py
+1
-0
test_beauty_card_prepay_wechat.py
...backend_case/janus_case/test_beauty_card_prepay_wechat.py
+1
-0
test_beauty_card_refund_info.py
test_backend_case/janus_case/test_beauty_card_refund_info.py
+1
-0
test_beauty_card_refund_submit.py
...backend_case/janus_case/test_beauty_card_refund_submit.py
+1
-0
test_beauty_card_update_phone.py
..._backend_case/janus_case/test_beauty_card_update_phone.py
+1
-0
test_content_v7.py
test_backend_case/janus_case/test_content_v7.py
+1
-0
test_hospital_search.py
test_backend_case/janus_case/test_hospital_search.py
+1
-0
test_keyword_tip.py
test_backend_case/janus_case/test_keyword_tip.py
+1
-0
test_mine_guess_you_like.py
test_backend_case/janus_case/test_mine_guess_you_like.py
+1
-0
test_page_rules.py
test_backend_case/janus_case/test_page_rules.py
+1
-0
test_polymer.py
test_backend_case/janus_case/test_polymer.py
+1
-0
test_product_coupon_my_list.py
test_backend_case/janus_case/test_product_coupon_my_list.py
+1
-0
test_product_detail.py
test_backend_case/janus_case/test_product_detail.py
+1
-0
test_product_my_list.py
test_backend_case/janus_case/test_product_my_list.py
+1
-0
test_service_hospital.py
test_backend_case/janus_case/test_service_hospital.py
+1
-0
test_sku_info.py
test_backend_case/janus_case/test_sku_info.py
+1
-0
test_tag_service.py
test_backend_case/janus_case/test_tag_service.py
+1
-0
test_danmu_v2.py
test_backend_case/live_case/test_danmu_v2.py
+1
-0
test_pushlive_info.py
test_backend_case/live_case/test_pushlive_info.py
+1
-0
test_my_conversation.py
...backend_case/my_conversation_case/test_my_conversation.py
+1
-1
test_readall.py
test_backend_case/notification_case/test_readall.py
+1
-0
test_unread.py
test_backend_case/notification_case/test_unread.py
+1
-0
test_recomend_services.py
test_backend_case/oneimage_case/test_recomend_services.py
+1
-0
test_share_v4.py
test_backend_case/oneimage_case/test_share_v4.py
+1
-0
test_my_status.py
test_backend_case/orders_case/test_my_status.py
+1
-0
test_orders_my_v2_waituse.py
test_backend_case/orders_case/test_orders_my_v2_waituse.py
+1
-0
test_alipay_prepay.py
test_backend_case/pay_case/test_alipay_prepay.py
+1
-0
test_jump.py
test_backend_case/pay_case/test_jump.py
+1
-0
test_wechat_prepay.py
test_backend_case/pay_case/test_wechat_prepay.py
+1
-0
test_personal_recommends.py
test_backend_case/personal_case/test_personal_recommends.py
+1
-0
test_private_conversation.py
...nd_case/private_conversation/test_private_conversation.py
+1
-0
test_favor.py
test_backend_case/qa_case/test_favor.py
+1
-0
test_reply_answer.py
test_backend_case/question_case/test_reply_answer.py
+1
-0
test_diary_cards.py
test_backend_case/scan_case/test_diary_cards.py
+1
-0
test_content_v6.py
test_backend_case/search_case/test_content_v6.py
+1
-0
test_hospital.py
test_backend_case/search_case/test_hospital.py
+1
-0
test_hot.py
test_backend_case/search_case/test_hot.py
+1
-0
test_keywords.py
test_backend_case/search_case/test_keywords.py
+1
-0
test_home_v5.py
test_backend_case/service_case/test_home_v5.py
+1
-1
test_service_favor.py
test_backend_case/service_case/test_service_favor.py
+1
-0
test_share_data.py
test_backend_case/services_case/test_share_data.py
+1
-0
test_create_v1.py
test_backend_case/settlement_case/test_create_v1.py
+1
-0
test_pay.py
test_backend_case/settlement_case/test_pay.py
+1
-0
test_pay_v1.py
test_backend_case/settlement_case/test_pay_v1.py
+1
-0
test_preview_v1.py
test_backend_case/settlement_case/test_preview_v1.py
+1
-0
test_settlement_delete.py
test_backend_case/settlement_case/test_settlement_delete.py
+1
-0
test_settlement_detail.py
test_backend_case/settlement_case/test_settlement_detail.py
+1
-0
test_add.py
test_backend_case/shopcart_case/test_add.py
+1
-0
test_list.py
test_backend_case/shopcart_case/test_list.py
+1
-0
test_recommend_service.py
test_backend_case/skin_case/test_recommend_service.py
+1
-0
test_topic_reply_create.py
test_backend_case/topic_case/test_topic_reply_create.py
+1
-0
test_topic_reply_vote.py
test_backend_case/topic_case/test_topic_reply_vote.py
+1
-0
test_v1.py
test_backend_case/topic_case/test_v1.py
+1
-0
test_vote.py
test_backend_case/topic_case/test_vote.py
+1
-0
test_detail.py
test_backend_case/tractate_case/test_detail.py
+1
-0
test_favor.py
test_backend_case/tractate_case/test_favor.py
+1
-0
test_publish_reply.py
test_backend_case/tractate_case/test_publish_reply.py
+1
-0
test_related_service.py
test_backend_case/tractate_case/test_related_service.py
+1
-0
test_reply.py
test_backend_case/tractate_case/test_reply.py
+1
-0
test_vote.py
test_backend_case/tractate_case/test_vote.py
+1
-0
test_answer.py
test_backend_case/user_case/test_answer.py
+1
-0
test_personal_center.py
test_backend_case/user_case/test_personal_center.py
+1
-0
test_topic_favor.py
test_backend_case/user_case/test_topic_favor.py
+1
-0
test_beautycard_filters.py
...d_case/visual_beauty_card_case/test_beautycard_filters.py
+1
-0
test_beautycard_skus.py
...kend_case/visual_beauty_card_case/test_beautycard_skus.py
+1
-0
test_visual_beauty_card_services.py
...sual_beauty_card_case/test_visual_beauty_card_services.py
+1
-0
reply.yaml
test_backend_data/common_data/reply.yaml
+10
-8
sub_common.yaml
test_backend_data/common_data/sub_common.yaml
+4
-12
diary_operation.yaml
test_backend_data/diary_data/diary_operation.yaml
+2
-13
diary_pre_create_topic.yaml
test_backend_data/diary_data/diary_pre_create_topic.yaml
+6
-0
diary_service.yaml
test_backend_data/diary_data/diary_service.yaml
+10
-10
article.yaml
test_backend_data/doctor_data/article.yaml
+2
-1
diary.yaml
test_backend_data/doctor_data/diary.yaml
+2
-1
detail.yaml
test_backend_data/hospitals_data/detail.yaml
+1
-60
doctor.yaml
test_backend_data/hospitals_data/doctor.yaml
+0
-46
api_topic_vote.yaml
test_backend_data/hybrid_data/api_topic_vote.yaml
+1
-2
basewiki_item.yaml
test_backend_data/hybrid_data/basewiki_item.yaml
+2
-1
basewiki_product.yaml
test_backend_data/hybrid_data/basewiki_product.yaml
+2
-1
diary_album.yaml
test_backend_data/hybrid_data/diary_album.yaml
+2
-2
beauty_card_detail.yaml
test_backend_data/janus_data/beauty_card_detail.yaml
+8
-8
__init__.py
test_doctor_case/__init__.py
+0
-0
test_service_detail.py
test_doctor_case/glmer_case/test_service_detail.py
+0
-19
test_service_register.py
test_doctor_case/glmer_case/test_service_register.py
+0
-21
test_tag_properties.py
test_doctor_case/glmer_case/test_tag_properties.py
+0
-19
__init__.py
test_doctor_case/web2_case/__init__.py
+0
-0
test_artemis_ad_add_shopping_cart_info.py
..._case/web2_case/test_artemis_ad_add_shopping_cart_info.py
+0
-23
test_artemis_add_value_order_id_detail.py
..._case/web2_case/test_artemis_add_value_order_id_detail.py
+0
-22
test_service_delete.py
test_doctor_case/web2_case/test_service_delete.py
+0
-24
test_service_deletelist.py
test_doctor_case/web2_case/test_service_deletelist.py
+0
-21
test_service_list.py
test_doctor_case/web2_case/test_service_list.py
+0
-27
test_service_review_list.py
test_doctor_case/web2_case/test_service_review_list.py
+0
-24
test_servicereview_option.py
test_doctor_case/web2_case/test_servicereview_option.py
+0
-26
test_tag_all.py
test_doctor_case/web2_case/test_tag_all.py
+0
-25
__init__.py
test_doctor_case/web_case/__init__.py
+0
-0
test_account_unreadbadgecount.py
test_doctor_case/web_case/test_account_unreadbadgecount.py
+0
-23
test_artemis_ad_type_list.py
test_doctor_case/web_case/test_artemis_ad_type_list.py
+0
-21
test_artemis_order_id_detail.py
test_doctor_case/web_case/test_artemis_order_id_detail.py
+0
-24
test_artemis_order_list.py
test_doctor_case/web_case/test_artemis_order_list.py
+0
-21
test_article_videotoken.py
test_doctor_case/web_case/test_article_videotoken.py
+0
-23
test_conversation.py
test_doctor_case/web_case/test_conversation.py
+0
-22
test_conversation_coupon.py
test_doctor_case/web_case/test_conversation_coupon.py
+0
-20
test_conversation_diary.py
test_doctor_case/web_case/test_conversation_diary.py
+0
-22
test_conversation_unread_list.py
test_doctor_case/web_case/test_conversation_unread_list.py
+0
-22
test_conversation_user_id.py
test_doctor_case/web_case/test_conversation_user_id.py
+0
-32
test_cpc_homepage.py
test_doctor_case/web_case/test_cpc_homepage.py
+0
-23
test_doctor_submechanisms.py
test_doctor_case/web_case/test_doctor_submechanisms.py
+0
-23
test_service.py
test_doctor_case/web_case/test_service.py
+0
-22
test_service_all.py
test_doctor_case/web_case/test_service_all.py
+0
-21
test_service_offline.py
test_doctor_case/web_case/test_service_offline.py
+0
-20
__init__.py
test_doctor_data/__init__.py
+0
-0
__init__.py
test_doctor_data/glmer_data/__init__.py
+0
-0
service_detail.yaml
test_doctor_data/glmer_data/service_detail.yaml
+0
-4
service_register.yaml
test_doctor_data/glmer_data/service_register.yaml
+0
-24
tag_properties.yaml
test_doctor_data/glmer_data/tag_properties.yaml
+0
-5
__init__.py
test_doctor_data/web2_data/__init__.py
+0
-0
artemis_ad_add_shopping_cart_info.yaml
...tor_data/web2_data/artemis_ad_add_shopping_cart_info.yaml
+0
-5
artemis_add_value_order_id_detail.yaml
...tor_data/web2_data/artemis_add_value_order_id_detail.yaml
+0
-5
service_delete.yaml
test_doctor_data/web2_data/service_delete.yaml
+0
-8
service_deletelist.yaml
test_doctor_data/web2_data/service_deletelist.yaml
+0
-7
service_list.yaml
test_doctor_data/web2_data/service_list.yaml
+0
-47
service_review_list.yaml
test_doctor_data/web2_data/service_review_list.yaml
+0
-26
servicereview_option.yaml
test_doctor_data/web2_data/servicereview_option.yaml
+0
-32
tag_all.yaml
test_doctor_data/web2_data/tag_all.yaml
+0
-5
__init__.py
test_doctor_data/web_data/__init__.py
+0
-0
account_unreadbadgecount.yaml
test_doctor_data/web_data/account_unreadbadgecount.yaml
+0
-5
artemis_ad_type_list.yaml
test_doctor_data/web_data/artemis_ad_type_list.yaml
+0
-7
artemis_order_id_detail.yaml
test_doctor_data/web_data/artemis_order_id_detail.yaml
+0
-6
artemis_order_list.yaml
test_doctor_data/web_data/artemis_order_list.yaml
+0
-47
article_videotoken.yaml
test_doctor_data/web_data/article_videotoken.yaml
+0
-5
conversation.yaml
test_doctor_data/web_data/conversation.yaml
+0
-8
conversation_coupon.yaml
test_doctor_data/web_data/conversation_coupon.yaml
+0
-12
conversation_diary.yaml
test_doctor_data/web_data/conversation_diary.yaml
+0
-6
conversation_unread_list.yaml
test_doctor_data/web_data/conversation_unread_list.yaml
+0
-7
conversation_user_id.yaml
test_doctor_data/web_data/conversation_user_id.yaml
+0
-21
cpc_homepage.yaml
test_doctor_data/web_data/cpc_homepage.yaml
+0
-8
doctor_submechanisms.yaml
test_doctor_data/web_data/doctor_submechanisms.yaml
+0
-5
service.yaml
test_doctor_data/web_data/service.yaml
+0
-7
service_all.yaml
test_doctor_data/web_data/service_all.yaml
+0
-6
service_offline.yaml
test_doctor_data/web_data/service_offline.yaml
+0
-6
__init__.py
test_om_case/__init__.py
+0
-0
__init__.py
test_om_case/beautycard_case/__init__.py
+0
-0
test_check_sku_ids.py
test_om_case/beautycard_case/test_check_sku_ids.py
+0
-25
test_check_spu_ids.py
test_om_case/beautycard_case/test_check_spu_ids.py
+0
-25
test_delete_related_bc.py
test_om_case/beautycard_case/test_delete_related_bc.py
+0
-21
test_export_related_bc.py
test_om_case/beautycard_case/test_export_related_bc.py
+0
-21
test_get_related_bc.py
test_om_case/beautycard_case/test_get_related_bc.py
+0
-21
test_update_bc_rank.py
test_om_case/beautycard_case/test_update_bc_rank.py
+0
-21
__init__.py
test_om_case/om_login_case/__init__.py
+0
-0
test_om_login.py
test_om_case/om_login_case/test_om_login.py
+0
-22
__init__.py
test_om_data/__init__.py
+0
-0
__init__.py
test_om_data/beautycard_data/__init__.py
+0
-0
check_sku_ids.yaml
test_om_data/beautycard_data/check_sku_ids.yaml
+0
-34
check_spu_ids.yaml
test_om_data/beautycard_data/check_spu_ids.yaml
+0
-34
delete_related_bc.yaml
test_om_data/beautycard_data/delete_related_bc.yaml
+0
-38
export_related_bc.yaml
test_om_data/beautycard_data/export_related_bc.yaml
+0
-18
get_related_bc.yaml
test_om_data/beautycard_data/get_related_bc.yaml
+0
-82
update_bc_rank.yaml
test_om_data/beautycard_data/update_bc_rank.yaml
+0
-20
__init__.py
test_om_data/om_login_data/__init__.py
+0
-0
om_login.yaml
test_om_data/om_login_data/om_login.yaml
+0
-67
No files found.
all_backend_api/answer_request.yaml
View file @
70ce86db
...
@@ -10,24 +10,24 @@ detail:
...
@@ -10,24 +10,24 @@ detail:
# isLogin: 1 #需要登录添加这个字段,值为1 0是不需要登录的情况,如不需要登录,可以不添加这个字段
# isLogin: 1 #需要登录添加这个字段,值为1 0是不需要登录的情况,如不需要登录,可以不添加这个字段
#回答详情页——点赞
#回答详情页——点赞
vote
:
#
vote:
method
:
post
#
method: post
url
:
/api/answer/vote
#
url: /api/answer/vote
params
:
#
params:
current_city_id
:
${current_city_id}
#
current_city_id: ${current_city_id}
data
:
#
data:
answer_id
:
${answer_id}
#
answer_id: ${answer_id}
json
:
{}
#
json: {}
isLogin
:
1
#
isLogin: 1
#回答详情页——取消点赞
#回答详情页——取消点赞
cancel_vote
:
#
cancel_vote:
method
:
post
#
method: post
url
:
/api/answer/cancel_vote
#
url: /api/answer/cancel_vote
params
:
#
params:
current_city_id
:
${current_city_id}
#
current_city_id: ${current_city_id}
data
:
#
data:
answer_id
:
${answer_id}
#
answer_id: ${answer_id}
json
:
{}
#
json: {}
isLogin
:
1
#
isLogin: 1
all_backend_api/common_request.py
View file @
70ce86db
...
@@ -5,23 +5,31 @@ from in_common.base_request import BaseRequest
...
@@ -5,23 +5,31 @@ from in_common.base_request import BaseRequest
class
common_request
(
BaseRequest
):
class
common_request
(
BaseRequest
):
def
__init__
(
self
):
def
__init__
(
self
):
self
.
data
=
self
.
api_load
(
path_setting
.
DIARY_COMMON_CONFIG
)
self
.
data
=
self
.
api_load
(
path_setting
.
DIARY_COMMON_CONFIG
)
print
(
"00000000000000"
,
self
.
data
)
# 日记贴评论列表--一级评论列表
# 日记贴评论列表--一级评论列表
def
diary_common_reply
(
self
,
id
,
type
):
def
diary_common_reply
(
self
,
id
,
type
,
data_type
,
offset
,
start_num
):
self
.
params
[
"id"
]
=
id
self
.
params
[
"id"
]
=
id
self
.
params
[
"type"
]
=
type
self
.
params
[
"type"
]
=
type
self
.
params
[
"data_type"
]
=
data_type
self
.
params
[
"offset"
]
=
offset
self
.
params
[
"start_num"
]
=
start_num
return
self
.
api_send
(
self
.
data
[
"reply_detail"
])
return
self
.
api_send
(
self
.
data
[
"reply_detail"
])
# 日记贴评论列表--二级评论
# 日记贴评论列表--二级评论
def
topic_sub_common
(
self
,
id
,
type
,
reply_id
):
def
topic_sub_common
(
self
,
id
,
type
,
reply_id
,
offset
,
start_num
):
self
.
params
[
"id"
]
=
id
self
.
params
[
"id"
]
=
id
self
.
params
[
"type"
]
=
type
self
.
params
[
"type"
]
=
type
self
.
params
[
"reply_id"
]
=
reply_id
self
.
params
[
"reply_id"
]
=
reply_id
self
.
params
[
"offset"
]
=
offset
self
.
params
[
"start_num"
]
=
start_num
return
self
.
api_send
(
self
.
data
[
"sub_common"
])
return
self
.
api_send
(
self
.
data
[
"sub_common"
])
if
__name__
==
'__main__'
:
common_request
()
.
diary_common_reply
(
21250007
,
2
)
...
...
all_backend_api/common_request.yaml
View file @
70ce86db
...
@@ -5,6 +5,9 @@ reply_detail:
...
@@ -5,6 +5,9 @@ reply_detail:
params
:
params
:
id
:
${id}
id
:
${id}
type
:
${type}
type
:
${type}
offset
:
${offset}
start_num
:
${start_num}
data_type
:
${data_type}
data
:
{}
data
:
{}
json
:
{}
json
:
{}
isLogin
:
0
#需要登录添加这个字段,值为1 0是不需要登录的情况,如不需要登录,可以不添加这个字段
isLogin
:
0
#需要登录添加这个字段,值为1 0是不需要登录的情况,如不需要登录,可以不添加这个字段
...
@@ -18,6 +21,8 @@ sub_common:
...
@@ -18,6 +21,8 @@ sub_common:
id
:
${id}
id
:
${id}
type
:
${type}
type
:
${type}
reply_id
:
${reply_id}
reply_id
:
${reply_id}
start_num
:
${start_num}
offset
:
${offset}
data
:
{}
data
:
{}
json
:
{}
json
:
{}
isLogin
:
0
#需要登录添加这个字段,值为1 0是不需要登录的情况,如不需要登录,可以不添加这个字段
isLogin
:
0
#需要登录添加这个字段,值为1 0是不需要登录的情况,如不需要登录,可以不添加这个字段
...
...
all_backend_api/conversation_request.py
View file @
70ce86db
...
@@ -6,12 +6,12 @@ class conversation_request(BaseRequest):
...
@@ -6,12 +6,12 @@ class conversation_request(BaseRequest):
def
__init__
(
self
):
def
__init__
(
self
):
self
.
messageread
=
self
.
api_load
(
path_setting
.
MESSAGE_READ_CONFIG
)
self
.
messageread
=
self
.
api_load
(
path_setting
.
MESSAGE_READ_CONFIG
)
def
message_read
(
self
,
current_city_id
,
release
,
message_ids
):
#
def message_read(self,current_city_id,release,message_ids):
self
.
params
[
"current_city_id"
]
=
current_city_id
#
self.params["current_city_id"] = current_city_id
self
.
params
[
"release"
]
=
release
#
self.params["release"] = release
#self.params["uqid"] = uqid
#
#self.params["uqid"] = uqid
self
.
params
[
"message_ids"
]
=
message_ids
#
self.params["message_ids"] = message_ids
return
self
.
api_send
(
self
.
messageread
[
"message_read"
])
#
return self.api_send(self.messageread["message_read"])
def
detail_messageid
(
self
,
os_version
,
last_msg_id
,
offset_msg_id
):
def
detail_messageid
(
self
,
os_version
,
last_msg_id
,
offset_msg_id
):
self
.
params
[
"os_version"
]
=
os_version
self
.
params
[
"os_version"
]
=
os_version
...
...
all_backend_api/conversation_request.yaml
View file @
70ce86db
message_read
:
#
message_read:
method
:
post
#
method: post
url
:
/api/conversation/message/read
#
url: /api/conversation/message/read
params
:
#
params:
current_city_id
:
${current_city_id}
#
current_city_id: ${current_city_id}
release
:
${release}
#
release: ${release}
#uqid: ${uqid}
#
#uqid: ${uqid}
data
:
#
data:
message_ids
:
${message_ids}
#
message_ids: ${message_ids}
#
json
:
{}
#
json: {}
isLogin
:
1
#需要登录的接口
#
isLogin: 1 #需要登录的接口
detail_messageid
:
detail_messageid
:
method
:
get
method
:
get
...
...
all_backend_api/diary_request.py
View file @
70ce86db
...
@@ -15,13 +15,10 @@ class diary_request(BaseRequest):
...
@@ -15,13 +15,10 @@ class diary_request(BaseRequest):
return
self
.
api_send
(
self
.
data
[
"cancelfavor"
])
return
self
.
api_send
(
self
.
data
[
"cancelfavor"
])
# 更新日记本
# 更新日记本
def
diary_operation
(
self
,
diary_id
,
title
,
operation_timestamp
,
doctor_name
,
hospital_name
):
def
diary_operation
(
self
,
start_num
,
count
):
self
.
params
[
"diary_id"
]
=
diary_id
self
.
params
[
"start_num"
]
=
start_num
self
.
params
[
"title"
]
=
title
self
.
params
[
"count"
]
=
count
self
.
params
[
"operation_timestamp"
]
=
operation_timestamp
return
self
.
api_send
(
self
.
data
[
"diary_operation"
])
self
.
params
[
"doctor_name"
]
=
doctor_name
self
.
params
[
"hospital_name"
]
=
hospital_name
return
self
.
api_send
(
self
.
data
[
"operation"
])
# 添加信息--待争议
# 添加信息--待争议
def
diary_additional_info
(
self
):
def
diary_additional_info
(
self
):
...
@@ -48,3 +45,6 @@ class diary_request(BaseRequest):
...
@@ -48,3 +45,6 @@ class diary_request(BaseRequest):
return
self
.
api_send
(
self
.
data
[
"update"
])
return
self
.
api_send
(
self
.
data
[
"update"
])
def
diary_pre_create_topic
(
self
,
diary_id
):
self
.
params
[
"diary_id"
]
=
diary_id
return
self
.
api_send
(
self
.
data
[
"diary_pre_create_topic"
])
all_backend_api/diary_request.yaml
View file @
70ce86db
#日记本收藏
#日记本收藏
isfavor
:
#
isfavor:
method
:
post
#
method: post
url
:
/api/diary/favor/17586195
#
url: /api/diary/favor/17586195
params
:
#
params:
data
:
{}
#
data: {}
json
:
{}
#
json: {}
isLogin
:
1
#需要登录添加这个字段,值为1 0是不需要登录的情况,如不需要登录,可以不添加这个字段
#
isLogin: 1 #需要登录添加这个字段,值为1 0是不需要登录的情况,如不需要登录,可以不添加这个字段
#日记本取消收藏
#日记本取消收藏
cancelfavor
:
#
cancelfavor:
method
:
delete
#
method: delete
url
:
/api/diary/favor/17586195
#
url: /api/diary/favor/17586195
params
:
#
params:
data
:
{}
#
data: {}
json
:
{}
#
json: {}
isLogin
:
1
#需要登录添加这个字段,值为1 0是不需要登录的情况,如不需要登录,可以不添加这个字段
#
isLogin: 1 #需要登录添加这个字段,值为1 0是不需要登录的情况,如不需要登录,可以不添加这个字段
#
#
#日记本修改信息
#日记本修改信息
operation
:
#operation:
method
:
post
# method: post
url
:
/api/diary/additional_info/v2
# url: /api/diary/additional_info/v2
params
:
# params:
data
:
# data:
diary_id
:
${diary_id}
# diary_id: ${diary_id}
title
:
${title}
# title: ${title}
operation_timestamp
:
${operation_timestamp}
# operation_timestamp: ${operation_timestamp}
doctor_name
:
${doctor_name}
# doctor_name: ${doctor_name}
hospital_name
:
${hospital_name}
# hospital_name: ${hospital_name}
#
json
:
{}
# json: {}
isLogin
:
1
#需要登录添加这个字段,值为1 0是不需要登录的情况,如不需要登录,可以不添加这个字段
# isLogin: 1 #需要登录添加这个字段,值为1 0是不需要登录的情况,如不需要登录,可以不添加这个字段
#查看日记修改信息页面
additional_info
:
method
:
get
url
:
/api/diary/operation/17586198/
params
:
data
:
{}
json
:
{}
isLogin
:
1
#需要登录添加这个字段,值为1 0是不需要登录的情况,如不需要登录,可以不添加这个字段
#详情页内容
#详情页内容
...
@@ -69,11 +59,31 @@ diary_service:
...
@@ -69,11 +59,31 @@ diary_service:
#更新日记本的修改信息
#更新日记本的修改信息
update
:
#update:
method
:
post
# method: post
url
:
/api/diary/update_v2/17586198
# url: /api/diary/update_v2/17586198
# params:
# data:
# topic_list: ${topic_list}
# json: {}
# isLogin: 1 #需要登录添加这个字段,值为1 0是不需要登录的情况,如不需要登录,可以不添加这个字段
diary_operation
:
method
:
get
url
:
/api/diary/operation/17878325
params
:
params
:
data
:
count
:
${count}
topic_list
:
${topic_list}
start_num
:
${start_num}
current_city_id
:
beijing
data
:
{}
json
:
{}
isLogin
:
1
diary_pre_create_topic
:
method
:
get
url
:
/api/diary/pre_create_topic/v2
params
:
current_city_id
:
beijing
diary_id
:
${diary_id}
data
:
{}
json
:
{}
json
:
{}
isLogin
:
1
#需要登录添加这个字段,值为1 0是不需要登录的情况,如不需要登录,可以不添加这个字段
isLogin
:
1
\ No newline at end of file
all_backend_api/doctor_request.yaml
View file @
70ce86db
...
@@ -8,14 +8,16 @@ article:
...
@@ -8,14 +8,16 @@ article:
page
:
1
page
:
1
own_page
:
0
own_page
:
0
doctor_type
:
0
doctor_type
:
0
current_city_id
:
beijing
data
:
{}
data
:
{}
json
:
{}
json
:
{}
#医生主页详情
#医生主页详情
detail
:
detail
:
method
:
get
method
:
get
url
:
/api/doctor/5bd9f05cad51403d853ba8c881989e23/detail
url
:
/api/doctor/a1ee69fad0794022b8f2b1517bf46eba/detail
params
:
{}
params
:
current_city_id
:
beijing
data
:
{}
data
:
{}
json
:
{}
json
:
{}
...
...
all_backend_api/gmai_request.yaml
View file @
70ce86db
skin_newReport
:
#
skin_newReport:
method
:
post
#
method: post
url
:
/gm_ai/skin/new_report
#
url: /gm_ai/skin/new_report
params
:
#
params:
version
:
${version}
#
version: ${version}
data
:
#
data:
image_url
:
${image_url}
#
image_url: ${image_url}
#
#
eyelids_plastic
:
#
eyelids_plastic:
method
:
post
#
method: post
url
:
/gm_ai/eyelids/plastic
#
url: /gm_ai/eyelids/plastic
params
:
#
params:
version
:
${version}
#
version: ${version}
data
:
#
data:
image_url
:
${image_url}
#
image_url: ${image_url}
style_id
:
${style_id}
#
style_id: ${style_id}
#
analysis_v3
:
#
analysis_v3:
method
:
post
#
method: post
url
:
/gm_ai/plastic/analysis_v3
#
url: /gm_ai/plastic/analysis_v3
params
:
#
params:
device_id
:
${device_id}
#
device_id: ${device_id}
data
:
#
data:
image_url
:
${image_url}
#
image_url: ${image_url}
landmark
:
${landmark}
#
landmark: ${landmark}
cheek_style_classify_id
:
${cheek_style_classify_id}
#
cheek_style_classify_id: ${cheek_style_classify_id}
simulate_analyze
:
#
simulate_analyze:
method
:
post
#
method: post
url
:
/gm_ai/simulate/analyze
#
url: /gm_ai/simulate/analyze
params
:
#
params:
device_id
:
${device_id}
#
device_id: ${device_id}
data
:
#
data:
image_url
:
${image_url}
#
image_url: ${image_url}
style_id
:
${style_id}
#
style_id: ${style_id}
type_id
:
${type_id}
#
type_id: ${type_id}
simulate_conf
:
simulate_conf
:
...
@@ -48,15 +48,15 @@ simulate_conf:
...
@@ -48,15 +48,15 @@ simulate_conf:
plastic_analystic_v2
:
#
plastic_analystic_v2:
method
:
post
#
method: post
url
:
/gm_ai/plastic/analysis_v2
#
url: /gm_ai/plastic/analysis_v2
params
:
#
params:
device_id
:
${device_id}
#
device_id: ${device_id}
data
:
#
data:
image_url
:
${image_url}
#
image_url: ${image_url}
landmark
:
${landmark}
#
landmark: ${landmark}
cheek_style_classify_id
:
${cheek_style_classify_id}
#
cheek_style_classify_id: ${cheek_style_classify_id}
plastic_cheek_style_classify
:
plastic_cheek_style_classify
:
...
...
all_backend_api/hybrid_api_topic_request.yaml
View file @
70ce86db
#日记本列表--日记贴点赞
#日记本列表--日记贴点赞
vote
:
#
vote:
method
:
post
#
method: post
url
:
/hybrid/api/topic/vote/_data
#
url: /hybrid/api/topic/vote/_data
params
:
#
params:
data
:
#
data:
id
:
${id}
#
id: ${id}
json
:
{}
#
json: {}
isLogin
:
1
#需要登录添加这个字段,值为1 0是不需要登录的情况,如不需要登录,可以不添加这个字段
#
isLogin: 1 #需要登录添加这个字段,值为1 0是不需要登录的情况,如不需要登录,可以不添加这个字段
#取消点赞
#取消点赞
canclevote
:
#
canclevote:
method
:
post
#
method: post
url
:
/hybrid/api/topic/cancel_vote/_data
#
url: /hybrid/api/topic/cancel_vote/_data
params
:
#
params:
data
:
#
data:
id
:
${id}
#
id: ${id}
json
:
{}
#
json: {}
isLogin
:
1
#需要登录添加这个字段,值为1 0是不需要登录的情况,如不需要登录,可以不添加这个字段
#
isLogin: 1 #需要登录添加这个字段,值为1 0是不需要登录的情况,如不需要登录,可以不添加这个字段
#
#
detail
:
detail
:
method
:
get
method
:
get
...
...
all_backend_api/hybrid_get_gift_request.yaml
View file @
70ce86db
#商祥页-优惠券列表-领取
#商祥页-优惠券列表-领取
get_gift_data
:
#get_gift_data:
method
:
post
# method: post
url
:
/hybrid/get_gift/_data
# url: /hybrid/get_gift/_data
params
:
{}
# params: {}
data
:
# data:
gift_id
:
${gift_id}
# gift_id: ${gift_id}
json
:
{}
# json: {}
isLogin
:
1
# isLogin: 1
\ No newline at end of file
\ No newline at end of file
all_backend_api/im_request.yaml
View file @
70ce86db
...
@@ -12,31 +12,31 @@ conversation_detail:
...
@@ -12,31 +12,31 @@ conversation_detail:
json
:
{}
json
:
{}
isLogin
:
1
#需要登录的接口
isLogin
:
1
#需要登录的接口
auto_msg
:
#
auto_msg:
method
:
post
#
method: post
url
:
/api/im/auto_msg
#
url: /api/im/auto_msg
params
:
#
params:
trace_id
:
${trace_id}
#
trace_id: ${trace_id}
#
data
:
#
data:
conversation_id
:
${conversation_id}
#
conversation_id: ${conversation_id}
#
json
:
{}
#
json: {}
isLogin
:
1
#需要登录的接口
#
isLogin: 1 #需要登录的接口
send_msg
:
#send_msg:
method
:
post
# method: post
url
:
/api/im/send_msg
# url: /api/im/send_msg
params
:
{}
# params: {}
#
data
:
# data:
conversation_id
:
${conversation_id}
# conversation_id: ${conversation_id}
is_system
:
${is_system}
# is_system: ${is_system}
referrer
:
${referrer}
# referrer: ${referrer}
referrer_id
:
${referrer_id}
# referrer_id: ${referrer_id}
msg_type
:
${msg_type}
# msg_type: ${msg_type}
content
:
${content}
# content: ${content}
extra
:
${extra}
# extra: ${extra}
#
json
:
{}
# json: {}
isLogin
:
1
#需要登录的接口
# isLogin: 1 #需要登录的接口
\ No newline at end of file
\ No newline at end of file
all_backend_api/janus_request.py
View file @
70ce86db
...
@@ -7,24 +7,6 @@ class janus_request(BaseRequest):
...
@@ -7,24 +7,6 @@ class janus_request(BaseRequest):
#捜索结果页-综合/百科tab
#捜索结果页-综合/百科tab
self
.
data
=
self
.
api_load
(
path_setting
.
CONTENTV7_CONFIG
)
self
.
data
=
self
.
api_load
(
path_setting
.
CONTENTV7_CONFIG
)
#医院主页捜索
self
.
data
=
self
.
api_load
(
path_setting
.
HOSPITALSEARCH_CONFIG
)
#品类聚合页面商品列表
self
.
data
=
self
.
api_load
(
path_setting
.
TAG_SERVICE_CONFIG
)
#品类聚合页面标签和专场
self
.
data
=
self
.
api_load
(
path_setting
.
POLYMER_CONFIG
)
#医生医院sug列表
self
.
data
=
self
.
api_load
(
path_setting
.
KEYWORDTIP_CONFIG
)
#次卡商详页
self
.
data
=
self
.
api_load
(
path_setting
.
BEAUTY_CARD_DETAIL_CONFIG
)
#直播-点击【设置封面】
self
.
data
=
self
.
api_load
(
path_setting
.
PAGE_RULES_CONFIG
)
#搜索结果页-综合/百科tab
#搜索结果页-综合/百科tab
def
content_v7
(
self
,
query
,
device_id
,
current_city_id
,
version
,
is_first
,
tab_type
,
offset
):
def
content_v7
(
self
,
query
,
device_id
,
current_city_id
,
version
,
is_first
,
tab_type
,
offset
):
#搜索词
#搜索词
...
...
all_backend_api/janus_request.yaml
View file @
70ce86db
...
@@ -108,30 +108,30 @@ keyword_tip:
...
@@ -108,30 +108,30 @@ keyword_tip:
json
:
{}
json
:
{}
#次卡-确认订单
#次卡-确认订单
beauty_card_order_confirm
:
#
beauty_card_order_confirm:
method
:
post
#
method: post
url
:
/api/janus/beauty_card/order/confirm
#
url: /api/janus/beauty_card/order/confirm
params
:
{}
#
params: {}
data
:
#
data:
sku_id
:
${sku_id}
#
sku_id: ${sku_id}
number
:
${number}
#
number: ${number}
bctraceid
:
"
"
#
bctraceid: ""
use_bc_coupon
:
${use_bc_coupon}
#
use_bc_coupon: ${use_bc_coupon}
bc_coupon_id
:
${bc_coupon_id}
#
bc_coupon_id: ${bc_coupon_id}
json
:
{}
#
json: {}
isLogin
:
1
#
isLogin: 1
#次卡-确认订单页面-修改手机号
#次卡-确认订单页面-修改手机号
beauty_card_update_phone
:
#
beauty_card_update_phone:
method
:
post
#
method: post
url
:
/api/janus/beauty_card/update_phone
#
url: /api/janus/beauty_card/update_phone
params
:
{}
#
params: {}
data
:
#
data:
authorize_phone
:
${authorize_phone}
#
authorize_phone: ${authorize_phone}
authorize_phone_type
:
${authorize_phone_type}
#
authorize_phone_type: ${authorize_phone_type}
vfc_code
:
${vfc_code}
#
vfc_code: ${vfc_code}
json
:
{}
#
json: {}
isLogin
:
1
#
isLogin: 1
#次卡商详页
#次卡商详页
beauty_card_detail
:
beauty_card_detail
:
method
:
GET
method
:
GET
...
@@ -165,19 +165,19 @@ service_hospital:
...
@@ -165,19 +165,19 @@ service_hospital:
#次卡-提交订单
#次卡-提交订单
beauty_card_order_submit
:
#
beauty_card_order_submit:
method
:
post
#
method: post
url
:
/api/janus/beauty_card/order/submit
#
url: /api/janus/beauty_card/order/submit
params
:
{}
#
params: {}
data
:
#
data:
phone
:
${phone}
#
phone: ${phone}
sku_id
:
${sku_id}
#
sku_id: ${sku_id}
number
:
${number}
#
number: ${number}
is_doctor_see
:
${is_doctor_see}
#
is_doctor_see: ${is_doctor_see}
gain_coupon_id
:
${gain_coupon_id}
#
gain_coupon_id: ${gain_coupon_id}
deduction_price
:
${deduction_price}
#
deduction_price: ${deduction_price}
json
:
{}
#
json: {}
isLogin
:
1
#
isLogin: 1
#次卡-支付平台
#次卡-支付平台
beauty_card_payment_method
:
beauty_card_payment_method
:
...
@@ -190,25 +190,25 @@ beauty_card_payment_method:
...
@@ -190,25 +190,25 @@ beauty_card_payment_method:
isLogin
:
1
isLogin
:
1
#次卡-微信支付
#次卡-微信支付
beauty_card_prepay_wechat
:
#
beauty_card_prepay_wechat:
method
:
post
#
method: post
url
:
/api/janus/beauty_card/prepay/wechat
#
url: /api/janus/beauty_card/prepay/wechat
params
:
{}
#
params: {}
data
:
#
data:
payment_id
:
${payment_id}
#
payment_id: ${payment_id}
json
:
{}
#
json: {}
isLogin
:
1
#
isLogin: 1
#次卡-支付宝支付
#次卡-支付宝支付
beauty_card_prepay_alipay
:
#
beauty_card_prepay_alipay:
method
:
post
#
method: post
url
:
/api/janus/beauty_card/prepay/alipay
#
url: /api/janus/beauty_card/prepay/alipay
params
:
{}
#
params: {}
data
:
#
data:
is_huabei
:
${is_huabei}
#
is_huabei: ${is_huabei}
payment_id
:
${payment_id}
#
payment_id: ${payment_id}
json
:
{}
#
json: {}
isLogin
:
1
#
isLogin: 1
##次卡-支付宝支付-花呗分期
##次卡-支付宝支付-花呗分期
#beauty_card_prepay_alipay_huabei:
#beauty_card_prepay_alipay_huabei:
...
@@ -233,14 +233,14 @@ beauty_card_payment_detail:
...
@@ -233,14 +233,14 @@ beauty_card_payment_detail:
isLogin
:
1
isLogin
:
1
#次卡-取消订单
#次卡-取消订单
beauty_card_payment_delete
:
#
beauty_card_payment_delete:
method
:
post
#
method: post
url
:
/api/janus/beauty_card/payment/delete
#
url: /api/janus/beauty_card/payment/delete
params
:
{}
#
params: {}
data
:
#
data:
payment_id
:
${payment_id}
#
payment_id: ${payment_id}
json
:
{}
#
json: {}
isLogin
:
1
#
isLogin: 1
#次卡-申请退款
#次卡-申请退款
beauty_card_refund_info
:
beauty_card_refund_info
:
...
@@ -253,17 +253,17 @@ beauty_card_refund_info:
...
@@ -253,17 +253,17 @@ beauty_card_refund_info:
isLogin
:
1
isLogin
:
1
#次卡-提交退款申请
#次卡-提交退款申请
beauty_card_refund_submit
:
#
beauty_card_refund_submit:
method
:
post
#
method: post
url
:
/api/janus/beauty_card/refund/submit
#
url: /api/janus/beauty_card/refund/submit
params
:
{}
#
params: {}
data
:
#
data:
order_id
:
${order_id}
#
order_id: ${order_id}
reason_id
:
${reason_id}
#
reason_id: ${reason_id}
reason_text
:
${reason_text}
#
reason_text: ${reason_text}
reason_type
:
${reason_type}
#
reason_type: ${reason_type}
json
:
{}
#
json: {}
isLogin
:
1
#
isLogin: 1
#新版本我的美券
#新版本我的美券
coupon_my_list
:
coupon_my_list
:
...
...
all_backend_api/notification_request.yaml
View file @
70ce86db
...
@@ -11,14 +11,14 @@ unread:
...
@@ -11,14 +11,14 @@ unread:
isLogin
:
1
#需要登录的接口
isLogin
:
1
#需要登录的接口
#标记为已读
#标记为已读
readall
:
#readall:
method
:
post
# method: post
url
:
/api/notification/readall
# url: /api/notification/readall
params
:
# params:
uqid
:
${uqid}
# uqid: ${uqid}
trace_id
:
${trace_id}
# trace_id: ${trace_id}
ua
:
${ua}
# ua: ${ua}
#
data
:
{}
# data: {}
json
:
{}
# json: {}
isLogin
:
1
#需要登录的接口
# isLogin: 1 #需要登录的接口
\ No newline at end of file
\ No newline at end of file
all_backend_api/oneimage_request.yaml
View file @
70ce86db
#测肤结果页
#测肤结果页
share_v4
:
#
share_v4:
method
:
post
#
method: post
url
:
/api/one_image/share/v4
#
url: /api/one_image/share/v4
params
:
#
params:
version
:
${version}
#
version: ${version}
data
:
#
data:
face_id
:
${face_id}
#
face_id: ${face_id}
json
:
{}
#
json: {}
#测肤结果根据五官推荐美购
#测肤结果根据五官推荐美购
recomend_services
:
recomend_services
:
...
...
all_backend_api/pay_request.yaml
View file @
70ce86db
wechat_prepay
:
#
wechat_prepay:
method
:
post
#
method: post
url
:
/pay/wechat/prepay
#
url: /pay/wechat/prepay
params
:
#
params:
current_city_id
:
"
beijing"
#
current_city_id: "beijing"
version
:
7.44.0
#
version: 7.44.0
data
:
#
data:
settlement_id
:
${settlement_id}
#
settlement_id: ${settlement_id}
isLogin
:
1
#
isLogin: 1
#
alipay_prepay
:
#
alipay_prepay:
method
:
post
#
method: post
url
:
/pay/alipay/prepay
#
url: /pay/alipay/prepay
params
:
#
params:
current_city_id
:
"
beijing"
#
current_city_id: "beijing"
version
:
7.44.0
#
version: 7.44.0
data
:
#
data:
settlement_id
:
${settlement_id}
#
settlement_id: ${settlement_id}
version
:
${version}
#
version: ${version}
is_huabei
:
${is_huabei}
#
is_huabei: ${is_huabei}
huabei_period
:
${huabei_period}
#
huabei_period: ${huabei_period}
isLogin
:
1
#
isLogin: 1
#
jump
:
#
jump:
method
:
post
#
method: post
url
:
/pay/jump
#
url: /pay/jump
params
:
#
params:
current_city_id
:
"
beijing"
#
current_city_id: "beijing"
version
:
7.44.0
#
version: 7.44.0
data
:
#
data:
settlement_id
:
${settlement_id}
#
settlement_id: ${settlement_id}
isLogin
:
1
#
isLogin: 1
all_backend_api/private_conversation_request.yaml
View file @
70ce86db
private_conversation
:
#private_conversation:
method
:
post
# method: post
url
:
/api/private_conversation/
# url: /api/private_conversation/
params
:
{}
# params: {}
data
:
# data:
content
:
${content}
# content: ${content}
target_uid
:
${target_uid}
# target_uid: ${target_uid}
referrer
:
${referrer}
# referrer: ${referrer}
referrer_id
:
${referrer_id}
# referrer_id: ${referrer_id}
is_system
:
${is_system}
# is_system: ${is_system}
quick_consultation_id
:
${quick_consultation_id}
# quick_consultation_id: ${quick_consultation_id}
diary_id
:
${diary_id}
# diary_id: ${diary_id}
from_live
:
${from_live}
# from_live: ${from_live}
#
json
:
{}
# json: {}
isLogin
:
1
#需要登录的接口
# isLogin: 1 #需要登录的接口
\ No newline at end of file
\ No newline at end of file
all_backend_api/qa_request.yaml
View file @
70ce86db
#问题收藏
#问题收藏
favor
:
#
favor:
method
:
post
#
method: post
url
:
/api/qa/favor
#
url: /api/qa/favor
params
:
#
params:
data
:
#
data:
answer_id
:
${answer_id}
#
answer_id: ${answer_id}
json
:
{}
#
json: {}
isLogin
:
1
#需要登录添加这个字段,值为1 0是不需要登录的情况,如不需要登录,可以不添加这个字段
#
isLogin: 1 #需要登录添加这个字段,值为1 0是不需要登录的情况,如不需要登录,可以不添加这个字段
#问题取消收藏
#问题取消收藏
cancelfavor
:
#
cancelfavor:
method
:
post
#
method: post
url
:
/api/qa/favor/cancel
#
url: /api/qa/favor/cancel
params
:
#
params:
data
:
#
data:
answer_id
:
${answer_id}
#
answer_id: ${answer_id}
json
:
{}
#
json: {}
isLogin
:
1
#需要登录添加这个字段,值为1 0是不需要登录的情况,如不需要登录,可以不添加这个字段
#
isLogin: 1 #需要登录添加这个字段,值为1 0是不需要登录的情况,如不需要登录,可以不添加这个字段
all_backend_api/question_request.yaml
View file @
70ce86db
#回答详情页- 一/二级评论
#回答详情页- 一/二级评论
reply_answer
:
#reply_answer:
method
:
post
# method: post
url
:
/api/question/reply_answer
# url: /api/question/reply_answer
params
:
# params:
current_city_id
:
${current_city_id}
# current_city_id: ${current_city_id}
data
:
# data:
answer_id
:
${answer_id}
# answer_id: ${answer_id}
content
:
${content}
# content: ${content}
user_id
:
${user_id}
# user_id: ${user_id}
json
:
{}
# json: {}
isLogin
:
1
# isLogin: 1
\ No newline at end of file
\ No newline at end of file
all_backend_api/service_request.yaml
View file @
70ce86db
...
@@ -9,10 +9,10 @@ home_v5:
...
@@ -9,10 +9,10 @@ home_v5:
#商祥页-收藏
#商祥页-收藏
service_favor
:
#service_favor:
method
:
post
# method: post
url
:
/api/service/favor/5857263/
# url: /api/service/favor/5857263/
params
:
{}
# params: {}
data
:
{}
# data: {}
json
:
{}
# json: {}
isLogin
:
1
# isLogin: 1
\ No newline at end of file
\ No newline at end of file
all_backend_api/settlement_request.yaml
View file @
70ce86db
preview_v1
:
#
preview_v1:
method
:
post
#
method: post
url
:
/api/settlement/preview/v1
#
url: /api/settlement/preview/v1
params
:
#
params:
current_city_id
:
${current_city_id}
#
current_city_id: ${current_city_id}
data
:
#
data:
service_item_id
:
${service_item_id}
#
service_item_id: ${service_item_id}
number
:
${number}
#
number: ${number}
use_platform_coupon
:
${use_platform_coupon}
#
use_platform_coupon: ${use_platform_coupon}
use_doctor_coupon
:
${use_doctor_coupon}
#
use_doctor_coupon: ${use_doctor_coupon}
use_coupon_grey
:
${use_coupon_grey}
#
use_coupon_grey: ${use_coupon_grey}
is_create_groupbuy
:
${is_create_groupbuy}
#
is_create_groupbuy: ${is_create_groupbuy}
json
:
{}
#
json: {}
isLogin
:
1
#需要登录添加这个字段,值为1 0是不需要登录的情况,如不需要登录,可以不添加这个字段
#
isLogin: 1 #需要登录添加这个字段,值为1 0是不需要登录的情况,如不需要登录,可以不添加这个字段
pay_v1
:
pay_v1
:
method
:
get
method
:
get
...
@@ -26,23 +26,23 @@ pay_v1:
...
@@ -26,23 +26,23 @@ pay_v1:
json
:
{}
json
:
{}
isLogin
:
1
isLogin
:
1
create_v1
:
#
create_v1:
method
:
post
#
method: post
url
:
/api/settlement/create/v1
#
url: /api/settlement/create/v1
params
:
#
params:
current_city_id
:
"
beijing"
#
current_city_id: "beijing"
version
:
7.44.0
#
version: 7.44.0
data
:
#
data:
service_item_id
:
${service_item_id}
#
service_item_id: ${service_item_id}
number
:
${number}
#
number: ${number}
phone
:
"
18301089978"
#
phone: "18301089978"
platform_coupon_id
:
${platform_coupon_id}
#
platform_coupon_id: ${platform_coupon_id}
use_point
:
${use_point}
#
use_point: ${use_point}
is_doctor_see
:
${is_doctor_see}
#
is_doctor_see: ${is_doctor_see}
doctor_coupon_id
:
${doctor_coupon_id}
#
doctor_coupon_id: ${doctor_coupon_id}
insurance_info
:
${insurance_info}
#
insurance_info: ${insurance_info}
is_create_groupbuy
:
${is_create_groupbuy}
#
is_create_groupbuy: ${is_create_groupbuy}
isLogin
:
1
#
isLogin: 1
pay
:
pay
:
method
:
get
method
:
get
...
@@ -64,15 +64,15 @@ detail:
...
@@ -64,15 +64,15 @@ detail:
data
:
{}
data
:
{}
isLogin
:
1
isLogin
:
1
delete
:
#
delete:
method
:
post
#
method: post
url
:
/api/settlement/delete
#
url: /api/settlement/delete
params
:
#
params:
current_city_id
:
"
beijing"
#
current_city_id: "beijing"
version
:
7.44.0
#
version: 7.44.0
data
:
#
data:
id
:
${id}
#
id: ${id}
cancel_reason_value
:
${cancel_reason_value}
#
cancel_reason_value: ${cancel_reason_value}
json
:
{}
#
json: {}
isLogin
:
1
#
isLogin: 1
all_backend_api/shopcart_request.yaml
View file @
70ce86db
...
@@ -8,13 +8,13 @@ list:
...
@@ -8,13 +8,13 @@ list:
isLogin
:
1
isLogin
:
1
#商祥页-加入购物车
#商祥页-加入购物车
add
:
#add:
method
:
post
# method: post
url
:
/api/shopcart/add/v1
# url: /api/shopcart/add/v1
params
:
{}
# params: {}
data
:
# data:
from_live
:
${from_live}
# from_live: ${from_live}
number
:
${number}
# number: ${number}
service_item_id
:
${service_item_id}
# service_item_id: ${service_item_id}
json
:
{}
# json: {}
isLogin
:
1
# isLogin: 1
\ No newline at end of file
\ No newline at end of file
all_backend_api/topic_reply_create.yaml
View file @
70ce86db
#日记贴一级评论创建[这个是非本身日记贴:21116006]--暂时未解决复写yaml文件的问题所以单独把创建评论踢出去
#日记贴一级评论创建[这个是非本身日记贴:21116006]--暂时未解决复写yaml文件的问题所以单独把创建评论踢出去
reply_create
:
#
reply_create:
method
:
post
#
method: post
url
:
/api/topic/reply/create/21249632/
#
url: /api/topic/reply/create/21249632/
params
:
#
params:
channel
:
${channel}
#
channel: ${channel}
data
:
#
data:
content
:
${content}
#
content: ${content}
json
:
{}
#
json: {}
isLogin
:
1
#需要登录添加这个字段,值为1 0是不需要登录的情况,如不需要登录,可以不添加这个字段
isLogin
:
1
#需要登录添加这个字段,值为1 0是不需要登录的情况,如不需要登录,可以不添加这个字段
#日记贴二级评论创建[这个是非本身日记贴:21116006]
#日记贴二级评论创建[这个是非本身日记贴:21116006]
sub_reply_create
:
#sub_reply_create:
method
:
post
# method: post
url
:
/api/topic/reply/create/21249632/
# url: /api/topic/reply/create/21249632/
params
:
# params:
channel
:
${channel}
# channel: ${channel}
data
:
# data:
content
:
${content}
# content: ${content}
replied_id
:
${replied_id}
# replied_id: ${replied_id}
json
:
{}
# json: {}
isLogin
:
1
#需要登录添加这个字段,值为1 0是不需要登录的情况,如不需要登录,可以不添加这个字段
# isLogin: 1 #需要登录添加这个字段,值为1 0是不需要登录的情况,如不需要登录,可以不添加这个字段
\ No newline at end of file
\ No newline at end of file
all_backend_api/topic_request.yaml
View file @
70ce86db
#日记贴详情页--日记贴点赞
#日记贴详情页--日记贴点赞
vote
:
#
vote:
method
:
post
#
method: post
url
:
/api/topic/vote/
#
url: /api/topic/vote/
params
:
#
params:
data
:
#
data:
topic_id
:
${topic_id}
#
topic_id: ${topic_id}
json
:
{}
#
json: {}
isLogin
:
1
#需要登录添加这个字段,值为1 0是不需要登录的情况,如不需要登录,可以不添加这个字段
#
isLogin: 1 #需要登录添加这个字段,值为1 0是不需要登录的情况,如不需要登录,可以不添加这个字段
#
#取消点赞
#
#
取消点赞
cancelvote
:
#
cancelvote:
method
:
delete
#
method: delete
url
:
/api/topic/vote/
#
url: /api/topic/vote/
params
:
#
params:
topic_id
:
${topic_id}
#
topic_id: ${topic_id}
data
:
{}
#
data: {}
json
:
{}
#
json: {}
isLogin
:
1
#需要登录添加这个字段,值为1 0是不需要登录的情况,如不需要登录,可以不添加这个字段
#
isLogin: 1 #需要登录添加这个字段,值为1 0是不需要登录的情况,如不需要登录,可以不添加这个字段
#详情页内容
#详情页内容
detail
:
detail
:
...
...
all_backend_api/topicreply_vote.yaml
View file @
70ce86db
#日记贴评论点赞
#日记贴评论点赞
topic_reply_vote
:
#topic_reply_vote:
method
:
post
# method: post
url
:
/hybrid/api/topicreply/vote/_data
# url: /hybrid/api/topicreply/vote/_data
params
:
# params:
data
:
# data:
id
:
${id}
# id: ${id}
json
:
{}
# json: {}
isLogin
:
1
#需要登录添加这个字段,值为1 0是不需要登录的情况,如不需要登录,可以不添加这个字段
# isLogin: 1 #需要登录添加这个字段,值为1 0是不需要登录的情况,如不需要登录,可以不添加这个字段
topic_reply_cancelvote
:
method
:
post
url
:
/hybrid/api/topicreply/cancel_vote/_data
params
:
data
:
id
:
${id}
json
:
{}
isLogin
:
1
#需要登录添加这个字段,值为1 0是不需要登录的情况,如不需要登录,可以不添加这个字段
#
#
#topic_reply_cancelvote:
# method: post
# url: /hybrid/api/topicreply/cancel_vote/_data
# params:
# data:
# id: ${id}
# json: {}
# isLogin: 1 #需要登录添加这个字段,值为1 0是不需要登录的情况,如不需要登录,可以不添加这个字段
##
all_backend_api/tractate_request.yaml
View file @
70ce86db
...
@@ -39,65 +39,65 @@ reply:
...
@@ -39,65 +39,65 @@ reply:
#帖子收藏
#帖子收藏
favor
:
#
favor:
method
:
post
#
method: post
url
:
/api/tractate/favor
#
url: /api/tractate/favor
params
:
#
params:
data
:
#
data:
data_type
:
${data_type}
#
data_type: ${data_type}
tractate_id
:
${tractate_id}
#
tractate_id: ${tractate_id}
json
:
{}
#
json: {}
isLogin
:
1
#需要登录添加这个字段,值为1 0是不需要登录的情况,如不需要登录,可以不添加这个字段
#
isLogin: 1 #需要登录添加这个字段,值为1 0是不需要登录的情况,如不需要登录,可以不添加这个字段
#帖子取消收藏
#帖子取消收藏
cancelfavor
:
#
cancelfavor:
method
:
post
#
method: post
url
:
/api/tractate/favor/cancel
#
url: /api/tractate/favor/cancel
params
:
#
params:
data
:
#
data:
data_type
:
${data_type}
#
data_type: ${data_type}
tractate_id
:
${tractate_id}
#
tractate_id: ${tractate_id}
json
:
{}
#
json: {}
isLogin
:
1
#需要登录添加这个字段,值为1 0是不需要登录的情况,如不需要登录,可以不添加这个字段
#
isLogin: 1 #需要登录添加这个字段,值为1 0是不需要登录的情况,如不需要登录,可以不添加这个字段
#帖子点赞
#帖子点赞
tractate_vote
:
#
tractate_vote:
method
:
post
#
method: post
url
:
/api/tractate/vote
#
url: /api/tractate/vote
params
:
#
params:
data
:
#
data:
tractate_id
:
${tractate_id}
#
tractate_id: ${tractate_id}
data_type
:
${data_type}
#
data_type: ${data_type}
reply_id
:
${reply_id}
#
reply_id: ${reply_id}
json
:
{}
#
json: {}
isLogin
:
1
#需要登录添加这个字段,值为1 0是不需要登录的情况,如不需要登录,可以不添加这个字段
#
isLogin: 1 #需要登录添加这个字段,值为1 0是不需要登录的情况,如不需要登录,可以不添加这个字段
#帖子取消点赞
#帖子取消点赞
tractate_cancelvote
:
#
tractate_cancelvote:
method
:
post
#
method: post
url
:
/api/tractate/vote/cancel
#
url: /api/tractate/vote/cancel
params
:
#
params:
data
:
#
data:
tractate_id
:
${tractate_id}
#
tractate_id: ${tractate_id}
data_type
:
${data_type}
#
data_type: ${data_type}
reply_id
:
${reply_id}
#
reply_id: ${reply_id}
json
:
{}
#
json: {}
isLogin
:
1
#需要登录添加这个字段,值为1 0是不需要登录的情况,如不需要登录,可以不添加这个字段
#
isLogin: 1 #需要登录添加这个字段,值为1 0是不需要登录的情况,如不需要登录,可以不添加这个字段
#
#
#
#帖子创建一级评论
#帖子创建一级评论
publish_reply
:
#
publish_reply:
method
:
post
#
method: post
url
:
/api/tractate/publish_reply
#
url: /api/tractate/publish_reply
params
:
#
params:
data
:
#
data:
tractate_id
:
${tractate_id}
#
tractate_id: ${tractate_id}
data_type
:
${data_type}
#
data_type: ${data_type}
reply_id
:
${reply_id}
#
reply_id: ${reply_id}
content
:
${content}
#
content: ${content}
json
:
{}
#
json: {}
isLogin
:
1
#需要登录添加这个字段,值为1 0是不需要登录的情况,如不需要登录,可以不添加这个字段
#
isLogin: 1 #需要登录添加这个字段,值为1 0是不需要登录的情况,如不需要登录,可以不添加这个字段
#
#
\ No newline at end of file
all_backend_api/user_request.yaml
View file @
70ce86db
...
@@ -21,20 +21,20 @@ answer:
...
@@ -21,20 +21,20 @@ answer:
json
:
{}
json
:
{}
#日记贴--收藏
#日记贴--收藏
favor
:
#
favor:
method
:
post
#
method: post
url
:
/api/user/problem_favor/21249632/
#
url: /api/user/problem_favor/21249632/
params
:
#
params:
data
:
{}
#
data: {}
json
:
{}
#
json: {}
isLogin
:
1
#
isLogin: 1
#
#日记贴--取消收藏
#
#
日记贴--取消收藏
canclefavor
:
#
canclefavor:
method
:
delete
#
method: delete
url
:
/api/user/problem_favor/21249632/
#
url: /api/user/problem_favor/21249632/
params
:
#
params:
data
:
{}
#
data: {}
json
:
{}
#
json: {}
isLogin
:
1
#
isLogin: 1
all_doctor_api/__init__.py
deleted
100644 → 0
View file @
eab09f01
all_doctor_api/glmer_request.py
deleted
100644 → 0
View file @
eab09f01
import
path_setting
from
in_common.base_request
import
BaseRequest
class
glmer_request
(
BaseRequest
):
def
__init__
(
self
):
self
.
REGISTER_URL
=
self
.
api_load
(
path_setting
.
REGISTER_URL
)
def
service_register
(
self
,
name
,
project_type
,
upgrade
,
short_description
,
doctor_id
,
start_time
,
end_time
,
photo_details
,
image_header
,
video_token
,
service_type
,
is_specialreview
,
reservation
,
have_extra_pay
,
is_draft
,
items
,
csrfmiddlewaretoken
):
self
.
params
[
"name"
]
=
name
self
.
params
[
"project_type"
]
=
project_type
self
.
params
[
"upgrade"
]
=
upgrade
self
.
params
[
"short_description"
]
=
short_description
self
.
params
[
"doctor_id"
]
=
doctor_id
self
.
params
[
"start_time"
]
=
start_time
self
.
params
[
"end_time"
]
=
end_time
self
.
params
[
"photo_details"
]
=
photo_details
self
.
params
[
"image_header"
]
=
image_header
self
.
params
[
"video_token"
]
=
video_token
self
.
params
[
"service_type"
]
=
service_type
self
.
params
[
"is_specialreview"
]
=
is_specialreview
self
.
params
[
"reservation"
]
=
reservation
self
.
params
[
"have_extra_pay"
]
=
have_extra_pay
self
.
params
[
"is_draft"
]
=
is_draft
self
.
params
[
"items"
]
=
items
self
.
params
[
"csrfmiddlewaretoken"
]
=
csrfmiddlewaretoken
return
self
.
api_send
(
self
.
REGISTER_URL
[
"service_register"
])
def
service_detail
(
self
)
:
return
self
.
api_send
(
self
.
REGISTER_URL
[
"service_detail"
])
def
tag_properties
(
self
,
catalog_ids
):
#我的商品-编辑可标准化商品
self
.
params
[
"catalog_ids"
]
=
catalog_ids
return
self
.
api_send
(
self
.
REGISTER_URL
[
"tag_properties"
])
if
__name__
==
'__main__'
:
print
(
glmer_request
()
.
service_register
(
"激光溶脂瘦脸"
,
"[236]"
,
"true"
,
"测试"
,
"wangyang"
,
"1624377600"
,
"1627660800"
,
"<p>12</p>"
,
"https://heras.igengmei.com/service/2021/06/01/0b9b110e60"
,
"UPCOYIJkZOMcdd9FDzpBqYjzWUh55fBpVi3AhWpL:nBdvXYz_CR7wNcuroo3TLyvuQiY=:eyJzY29wZSI6InZpZGVvIiwiZGVhZGxpbmUiOjE2MjI1MTg2NTd9"
,
"0"
,
"false"
,
"1"
,
"false"
,
"0"
,
'[{"gengmei_price":100,"original_price":200,"is_online":true}]'
,
"PC8uTySuxipukIMuqNV1OPB376C2ZZ3g"
))
print
(
glmer_request
()
.
service_detail
())
print
(
glmer_request
()
.
tag_properties
(
"[115,141]"
))
all_doctor_api/glmer_request.yaml
deleted
100644 → 0
View file @
eab09f01
service_register
:
method
:
POST
url
:
/api/glmer/service/register
params
:
{}
data
:
name
:
${name}
project_type
:
${project_type}
upgrade
:
${upgrade}
short_description
:
${short_description}
doctor_id
:
${doctor_id}
start_time
:
${start_time}
end_time
:
${end_time}
photo_details
:
${photo_details}
image_header
:
${image_header}
video_token
:
${video_token}
service_type
:
${service_type}
is_specialreview
:
${is_specialreview}
reservation
:
${reservation}
have_extra_pay
:
${have_extra_pay}
is_draft
:
${is_draft}
items
:
${items}
csrfmiddlewaretoken
:
${csrfmiddlewaretoken}
phone_num
:
${phone_num}
vfc_code
:
${vfc_code}
face_token
:
${face_token}
json
:
{}
isLogin
:
1
service_detail
:
method
:
get
url
:
/api/glmer/service/detail/5885425
params
:
{}
data
:
{}
json
:
{}
isLogin
:
1
tag_properties
:
method
:
get
url
:
/api/glmer/tag/properties
params
:
catalog_ids
:
${catalog_ids}
data
:
{}
json
:
{}
isLogin
:
1
all_doctor_api/web2_request.py
deleted
100644 → 0
View file @
eab09f01
import
path_setting
from
in_common.base_request
import
BaseRequest
class
web2_request
(
BaseRequest
):
def
__init__
(
self
):
self
.
SERVICE_URL
=
self
.
api_load
(
path_setting
.
SERVICE_URL
)
# self.SERVICE_REVIEW_URL = self.api_load(path_setting.SERVICE_REVIEW_URL)
def
service_list
(
self
,
page
,
pagesize
,
is_online
,
extra_filter_choice
):
#我的商品查询列表
self
.
params
[
"page"
]
=
page
self
.
params
[
"pagesize"
]
=
pagesize
self
.
params
[
"is_online"
]
=
is_online
self
.
params
[
"extra_filter_choice"
]
=
extra_filter_choice
return
self
.
api_send
(
self
.
SERVICE_URL
[
"service_list"
])
def
service_review_list
(
self
,
page
,
pagesize
,
type
):
#商品审核查询列表
self
.
params
[
"page"
]
=
page
self
.
params
[
"pagesize"
]
=
pagesize
self
.
params
[
"type"
]
=
type
return
self
.
api_send
(
self
.
SERVICE_URL
[
"service_review_list"
])
def
servicereview_option
(
self
,
id
,
type
,
csrfmiddlewaretoken
):
#商品审核-撤回审核、取消申请
self
.
params
[
"id"
]
=
id
self
.
params
[
"type"
]
=
type
self
.
params
[
"csrfmiddlewaretoken"
]
=
csrfmiddlewaretoken
return
self
.
api_send
(
self
.
SERVICE_URL
[
"servicereview_option"
])
def
tag_all
(
self
)
:
#发布商品-选择类目跳转发布商品页面tag接口
return
self
.
api_send
(
self
.
SERVICE_URL
[
"tag_all"
])
def
service_delete
(
self
,
is_delete
,
service_register_id
,
csrfmiddlewaretoken
):
#我的商品-删除商品
self
.
params
[
"is_delete"
]
=
is_delete
self
.
params
[
"service_register_id"
]
=
service_register_id
self
.
params
[
"csrfmiddlewaretoken"
]
=
csrfmiddlewaretoken
return
self
.
api_send
(
self
.
SERVICE_URL
[
"service_delete"
])
def
service_deletelist
(
self
,
page
):
#我的商品-商品回收站
self
.
params
[
"page"
]
=
page
return
self
.
api_send
(
self
.
SERVICE_URL
[
"service_deletelist"
])
def
artemis_ad_add_shopping_cart_info
(
self
):
#我的购物车
return
self
.
api_send
(
self
.
SERVICE_URL
[
"artemis_ad_add_shopping_cart_info"
])
def
artemis_add_value_order_id_detail
(
self
):
"我的服务订单-已购买"
return
self
.
api_send
(
self
.
SERVICE_URL
[
"artemis_add_value_order_id_detail"
])
if
__name__
==
'__main__'
:
print
(
web2_request
()
.
service_list
(
"1"
,
"10"
,
"-1"
,
"-1"
))
print
(
web2_request
()
.
service_review_list
(
"1"
,
"10"
,
"0"
))
print
(
web2_request
()
.
servicereview_option
(
"209989"
,
"1"
,
"PC8uTySuxipukIMuqNV1OPB376C2ZZ3g"
))
print
(
web2_request
()
.
tag_all
())
print
(
web2_request
()
.
service_delete
(
"1"
,
"209863"
,
"PC8uTySuxipukIMuqNV1OPB376C2ZZ3g"
))
print
(
web2_request
()
.
service_deletelist
(
"1"
))
#商品回收站
print
(
web2_request
()
.
artemis_ad_add_shopping_cart_info
())
print
(
web2_request
()
.
artemis_add_value_order_id_detail
())
all_doctor_api/web2_request.yaml
deleted
100644 → 0
View file @
eab09f01
service_list
:
method
:
get
url
:
/api/web2/service/list
params
:
page
:
${page}
pagesize
:
${pagesize}
is_online
:
${is_online}
extra_filter_choice
:
${extra_filter_choice}
data
:
{}
json
:
{}
isLogin
:
1
service_review_list
:
method
:
get
url
:
/api/web2/service/review/list
params
:
page
:
${page}
pagesize
:
${pagesize}
type
:
${type}
data
:
{}
json
:
{}
isLogin
:
1
servicereview_option
:
method
:
POST
url
:
/api/web2/servicereview/option
params
:
{}
data
:
id
:
${id}
type
:
${type}
csrfmiddlewaretoken
:
${csrfmiddlewaretoken}
json
:
{}
isLogin
:
1
tag_all
:
method
:
get
url
:
/api/web2/tag/all
param
:
{}
data
:
{}
json
:
{}
isLogin
:
1
service_delete
:
method
:
POST
url
:
/api/web2/service/delete
params
:
{}
data
:
is_delete
:
${is_delete}
service_register_id
:
${service_register_id}
csrfmiddlewaretoken
:
${csrfmiddlewaretoken}
json
:
{}
isLogin
:
1
service_deletelist
:
method
:
get
url
:
/api/web2/service/delete/list
params
:
page
:
${page}
data
:
{}
json
:
{}
isLogin
:
1
artemis_ad_add_shopping_cart_info
:
method
:
get
url
:
/api/web2/artemis/ad/add_shopping_cart/info
params
:
{}
data
:
{}
json
:
{}
isLogin
:
1
#需要登录
artemis_add_value_order_id_detail
:
method
:
get
url
:
/api/web2/artemis/add_value_order/957727877165/detail
params
:
{}
data
:
{}
json
:
{}
isLogin
:
1
#需要登录
\ No newline at end of file
all_doctor_api/web_request.py
deleted
100644 → 0
View file @
eab09f01
import
path_setting
from
in_common.base_request
import
BaseRequest
class
web_request
(
BaseRequest
):
def
__init__
(
self
):
self
.
ACCOUNT_URL
=
self
.
api_load
(
path_setting
.
ACCOUNT_URL
)
def
account_unreadbadgecount
(
self
)
:
return
self
.
api_send
(
self
.
ACCOUNT_URL
[
"account_unreadbadgecount"
])
def
article_videotoken
(
self
)
:
return
self
.
api_send
(
self
.
ACCOUNT_URL
[
"article_videotoken"
])
def
doctor_submechanisms
(
self
)
:
return
self
.
api_send
(
self
.
ACCOUNT_URL
[
"doctor_submechanisms"
])
def
service_offline
(
self
,
id
,
csrfmiddlewaretoken
):
self
.
params
[
"id"
]
=
id
self
.
params
[
"csrfmiddlewaretoken"
]
=
csrfmiddlewaretoken
return
self
.
api_send
(
self
.
ACCOUNT_URL
[
"service_offline"
])
def
conversation
(
self
,
is_star
,
page
):
self
.
params
[
"is_star"
]
=
is_star
self
.
params
[
"page"
]
=
page
return
self
.
api_send
(
self
.
ACCOUNT_URL
[
"conversation"
])
def
conversation_unread_list
(
self
,
page
):
self
.
params
[
"page"
]
=
page
return
self
.
api_send
(
self
.
ACCOUNT_URL
[
"conversation_unread_list"
])
def
service
(
self
):
return
self
.
api_send
(
self
.
ACCOUNT_URL
[
"service"
])
def
conversation_diary
(
self
,
doctor_user_id
):
self
.
params
[
"doctor_user_id"
]
=
doctor_user_id
return
self
.
api_send
(
self
.
ACCOUNT_URL
[
"conversation_diary"
])
def
conversation_coupon
(
self
,
doctor_user_id
):
self
.
params
[
"doctor_user_id"
]
=
doctor_user_id
return
self
.
api_send
(
self
.
ACCOUNT_URL
[
"conversation_coupon"
])
def
service_all
(
self
):
return
self
.
api_send
(
self
.
ACCOUNT_URL
[
"service_all"
])
def
conversation_user_id
(
self
,
type
,
content
,
doctor_user_id
,
t
,
csrfmiddlewaretoken
):
self
.
params
[
"type"
]
=
type
self
.
params
[
"content"
]
=
content
self
.
params
[
"doctor_user_id"
]
=
doctor_user_id
self
.
params
[
"t"
]
=
t
self
.
params
[
"csrfmiddlewaretoken"
]
=
csrfmiddlewaretoken
return
self
.
api_send
(
self
.
ACCOUNT_URL
[
"conversation_user_id"
])
# def file_upload(self, img_type,csrfmiddlewaretoken,id,name,type,lastModifiedDate,size,file):
# self.params["img_type"] = img_type
# self.params["csrfmiddlewaretoken"] = csrfmiddlewaretoken
# self.params["id"] = id
# self.params["name"] = name
# self.params["type"] = type
# self.params["lastModifiedDate"] = lastModifiedDate
# self.params["size"] = size
# self.params["file"] = file
# return self.api_send(self.ACCOUNT_URL["file_upload"])
def
cpc_homepage
(
self
):
return
self
.
api_send
(
self
.
ACCOUNT_URL
[
"cpc_homepage"
])
def
artemis_ad_type_list
(
self
):
return
self
.
api_send
(
self
.
ACCOUNT_URL
[
"artemis_ad_type_list"
])
def
artemis_order_list
(
self
,
status
,
page
):
self
.
params
[
"status"
]
=
status
self
.
params
[
"page"
]
=
page
return
self
.
api_send
(
self
.
ACCOUNT_URL
[
"artemis_order_list"
])
def
artemis_order_id_detail
(
self
):
"上线中订单详情页"
return
self
.
api_send
(
self
.
ACCOUNT_URL
[
"artemis_order_id_detail"
])
if
__name__
==
'__main__'
:
print
(
web_request
()
.
account_unreadbadgecount
())
print
(
web_request
()
.
article_videotoken
())
print
(
web_request
()
.
doctor_submechanisms
())
print
(
web_request
()
.
service_offline
(
"209992"
,
"PC8uTySuxipukIMuqNV1OPB376C2ZZ3g"
))
print
(
web_request
()
.
conversation
(
0
,
1
))
print
(
web_request
()
.
conversation_unread_list
(
1
))
print
(
web_request
()
.
service
())
print
(
web_request
()
.
conversation_diary
(
602329
))
print
(
web_request
()
.
conversation_coupon
(
602329
))
print
(
web_request
()
.
service_all
())
# print(web_request().file_upload("19","PC8uTySuxipukIMuqNV1OPB376C2ZZ3g","WU_FILE_0","lADPDg7mQdiUTiLNAZDNAZA_400_400.jpg_720x720g.jpg","image/jpeg","Mon Apr 26 2021 11:29:45 GMT+0800 (中国标准时间)","17688","(binary)"))
print
(
web_request
()
.
conversation_user_id
(
0
,
"您好"
,
602329
,
"271caac2ae1687ca0a56ee18115b8183"
,
"NLeTxEx1BOQo1zjv2us9BQ00ViMAHGpJ"
))
print
(
web_request
()
.
cpc_homepage
())
print
(
web_request
()
.
artemis_ad_type_list
())
print
(
"发送"
)
print
(
web_request
()
.
artemis_order_list
(
0
,
1
))
print
(
web_request
()
.
artemis_order_list
(
1
,
1
))
print
(
web_request
()
.
artemis_order_list
(
2
,
1
))
print
(
web_request
()
.
artemis_order_id_detail
())
\ No newline at end of file
all_doctor_api/web_request.yaml
deleted
100644 → 0
View file @
eab09f01
account_unreadbadgecount
:
method
:
get
url
:
/api/web/account/unread_badge_count
param
:
{}
data
:
{}
json
:
{}
isLogin
:
1
article_videotoken
:
method
:
get
url
:
/api/web/article/video_token
param
:
{}
data
:
{}
json
:
{}
isLogin
:
1
doctor_submechanisms
:
method
:
get
url
:
/api/web/doctor/submechanisms
param
:
{}
data
:
{}
json
:
{}
isLogin
:
1
service_offline
:
method
:
post
url
:
/api/web/service/offline
param
:
{}
data
:
id
:
${id}
csrfmiddlewaretoken
:
${csrfmiddlewaretoken}
json
:
{}
isLogin
:
1
conversation
:
method
:
get
url
:
/api/web/conversation
params
:
is_star
:
${is_star}
page
:
${page}
data
:
{}
json
:
{}
isLogin
:
1
#需要登录
conversation_unread_list
:
method
:
get
url
:
/api/web/conversation/unread_list
params
:
page
:
${page}
data
:
{}
json
:
{}
isLogin
:
1
#需要登录
service
:
method
:
get
url
:
/api/web/service
params
:
{}
data
:
{}
json
:
{}
isLogin
:
1
#需要登录
conversation_diary
:
method
:
get
url
:
/api/web/conversation/diary
params
:
doctor_user_id
:
${doctor_user_id}
data
:
{}
json
:
{}
isLogin
:
1
#需要登录
conversation_coupon
:
method
:
get
url
:
/api/web/conversation/coupon
params
:
doctor_user_id
:
${doctor_user_id}
data
:
{}
json
:
{}
isLogin
:
1
#需要登录
service_all
:
method
:
get
url
:
/api/web/service/all
params
:
{}
data
:
{}
json
:
{}
isLogin
:
1
#file_upload:
# method: post
# url: /api/web/file/upload
# param: {}
# data:
# img_type: ${img_type}
# csrfmiddlewaretoken: ${csrfmiddlewaretoken}
# id: ${id}
# name: ${name}
# type: ${type}
# lastModifiedDate: ${lastModifiedDate}
# size: ${size}
# file: ${file}
# json: {}
# isLogin: 1
conversation_user_id
:
method
:
post
url
:
/api/web/conversation/602329_33909952
params
:
{}
data
:
type
:
${type}
content
:
${content}
doctor_user_id
:
${doctor_user_id}
t
:
${t}
csrfmiddlewaretoken
:
${csrfmiddlewaretoken}
json
:
{}
isLogin
:
1
#需要登录
cpc_homepage
:
method
:
get
url
:
/api/web/cpc/homepage
params
:
{}
data
:
{}
json
:
{}
isLogin
:
1
#需要登录
artemis_ad_type_list
:
method
:
get
url
:
/api/web/artemis/ad/type_list
params
:
{}
data
:
{}
json
:
{}
isLogin
:
1
#需要登录
artemis_order_list
:
method
:
get
url
:
/api/web/artemis/order/list
params
:
status
:
${status}
page
:
${page}
data
:
{}
json
:
{}
isLogin
:
1
#需要登录
artemis_order_id_detail
:
method
:
get
url
:
/api/web/artemis/order/509151034657/detail
params
:
{}
data
:
{}
json
:
{}
isLogin
:
1
#需要登录
\ No newline at end of file
all_om_api/__init__.py
deleted
100644 → 0
View file @
eab09f01
all_om_api/beautycard_request.py
deleted
100644 → 0
View file @
eab09f01
import
path_setting
from
in_common.base_request
import
BaseRequest
class
beautycard_request
(
BaseRequest
):
def
__init__
(
self
):
#更美次卡-获取已添加页面次卡spu/sku列表
self
.
data
=
self
.
api_load
(
path_setting
.
GET_RELATED_BC_CONFIG
)
#更美次卡-删除/批量删除已添加页面次卡
self
.
data
=
self
.
api_load
(
path_setting
.
DELETE_RELATED_BC_CONFIG
)
#更美次卡-已添加页面全部导出
self
.
data
=
self
.
api_load
(
path_setting
.
EXPORT_RELATED_BC_CONFIG
)
#更美次卡-更改次卡排序
self
.
data
=
self
.
api_load
(
path_setting
.
UPDATE_BC_RANK_CONFIG
)
#更美次卡-按次卡sku_id导入,导入校验
self
.
data
=
self
.
api_load
(
path_setting
.
CHECK_SKU_IDS_CONFIG
)
#更美次卡-获取已添加页面次卡spu/sku列表
def
get_related_bc
(
self
,
unit_id
,
bc_sku_id
,
bc_spu_id
,
page
,
page_size
):
self
.
params
[
"unit_id"
]
=
unit_id
self
.
params
[
"bc_sku_id"
]
=
bc_sku_id
self
.
params
[
"bc_spu_id"
]
=
bc_spu_id
self
.
params
[
"page"
]
=
page
self
.
params
[
"page_size"
]
=
page_size
return
self
.
api_send
(
self
.
data
[
"get_related_bc"
])
#更美次卡-删除/批量删除已添加页面次卡
def
delete_related_bc
(
self
,
unit_id
,
bc_sku_ids
,
bc_spu_ids
,
related_type
):
self
.
params
[
"unit_id"
]
=
unit_id
self
.
params
[
"bc_sku_ids"
]
=
bc_sku_ids
self
.
params
[
"bc_spu_ids"
]
=
bc_spu_ids
self
.
params
[
"related_type"
]
=
related_type
return
self
.
api_send
(
self
.
data
[
"delete_related_bc"
])
#更美次卡-已添加页面全部导出
def
export_related_bc
(
self
,
unit_id
,
bc_sku_id
,
bc_spu_id
):
self
.
params
[
"unit_id"
]
=
unit_id
self
.
params
[
"bc_sku_id"
]
=
bc_sku_id
self
.
params
[
"bc_spu_id"
]
=
bc_spu_id
return
self
.
api_send
(
self
.
data
[
"export_related_bc"
])
#更美次卡-更改次卡排序
def
update_bc_rank
(
self
,
unit_id
,
related_id
,
related_type
,
rank
):
self
.
params
[
"unit_id"
]
=
unit_id
self
.
params
[
"related_id"
]
=
related_id
self
.
params
[
"related_type"
]
=
related_type
self
.
params
[
"rank"
]
=
rank
return
self
.
api_send
(
self
.
data
[
"update_bc_rank"
])
#更美次卡-按次卡sku_id导入,导入校验
def
check_sku_ids
(
self
,
bc_skus
):
self
.
params
[
"bc_skus"
]
=
bc_skus
return
self
.
api_send
(
self
.
data
[
"check_sku_ids"
])
#更美次卡-按次卡spu_id导入,导入校验
def
check_spu_ids
(
self
,
bc_spus
):
self
.
params
[
"bc_spus"
]
=
bc_spus
return
self
.
api_send
(
self
.
data
[
"check_spu_ids"
])
if
__name__
==
'__main__'
:
print
(
beautycard_request
()
.
get_related_bc
(
"20105"
,
""
,
""
,
"0"
,
"10"
))
print
(
beautycard_request
()
.
delete_related_bc
(
"19931"
,
"[10163]"
,
"[]"
,
"8"
))
print
(
beautycard_request
()
.
export_related_bc
(
"19933"
,
""
,
""
))
print
(
beautycard_request
()
.
update_bc_rank
(
"20105"
,
"100023"
,
"7"
,
"11"
))
\ No newline at end of file
all_om_api/beautycard_request.yaml
deleted
100644 → 0
View file @
eab09f01
#更美次卡-获取已添加页面次卡spu/sku列表
get_related_bc
:
method
:
GET
url
:
/achelous/visual/beauty_card/get_related_bc
params
:
unit_id
:
${unit_id}
bc_sku_id
:
${bc_sku_id}
bc_spu_id
:
${bc_spu_id}
page
:
${page}
page_size
:
${page_size}
data
:
{}
json
:
{}
isLogin
:
1
#更美次卡-删除/批量删除已添加页面次卡
delete_related_bc
:
method
:
POST
url
:
/achelous/visual/beauty_card/delete_related_bc
params
:
{}
data
:
unit_id
:
${unit_id}
bc_sku_ids
:
${bc_sku_ids}
bc_spu_ids
:
${bc_spu_ids}
related_type
:
${related_type}
json
:
{}
isLogin
:
1
#更美次卡-已添加页面全部导出
export_related_bc
:
method
:
GET
url
:
/achelous/visual/beauty_card/export_related_bc
params
:
unit_id
:
${unit_id}
bc_sku_id
:
${bc_sku_id}
bc_spu_id
:
${bc_spu_id}
data
:
{}
json
:
{}
isLogin
:
1
#更美次卡-更改次卡排序
update_bc_rank
:
method
:
POST
url
:
/achelous/visual/beauty_card/update_bc_rank
params
:
{}
data
:
unit_id
:
${unit_id}
related_id
:
${related_id}
related_type
:
${related_type}
rank
:
${rank}
json
:
{}
isLogin
:
1
#更美次卡-按次卡sku_id导入,导入校验
check_sku_ids
:
method
:
POST
url
:
/achelous/visual/beauty_card/check_sku_ids
params
:
{}
data
:
bc_skus
:
${bc_skus}
json
:
{}
isLogin
:
1
#更美次卡-按次卡spu_id导入,导入校验
check_spu_ids
:
method
:
POST
url
:
/achelous/visual/beauty_card/check_spu_ids
params
:
{}
data
:
bc_spus
:
${bc_spus}
json
:
{}
isLogin
:
1
\ No newline at end of file
all_om_api/login_request.py
deleted
100644 → 0
View file @
eab09f01
import
path_setting
from
in_common.base_request
import
BaseRequest
class
login_request
(
BaseRequest
):
def
__init__
(
self
):
#om后台-登录
self
.
data
=
self
.
api_load
(
path_setting
.
OMLOGIN_CONFIG
)
#om后台-登录
def
om_login
(
self
,
username
,
password
):
self
.
params
[
"username"
]
=
username
self
.
params
[
"password"
]
=
password
return
self
.
api_send
(
self
.
data
[
"om_login"
])
if
__name__
==
'__main__'
:
print
(
login_request
()
.
om_login
(
"admin"
,
"123123"
))
\ No newline at end of file
all_om_api/login_request.yaml
deleted
100644 → 0
View file @
eab09f01
#om后台-登录
om_login
:
method
:
POST
url
:
/achelous/account/login
params
:
{}
data
:
username
:
${username}
password
:
${password}
json
:
{}
in_common/base_request.py
View file @
70ce86db
...
@@ -45,7 +45,7 @@ class BaseRequest:
...
@@ -45,7 +45,7 @@ class BaseRequest:
if
host_service
not
in
host
[
'develop_host'
]:
if
host_service
not
in
host
[
'develop_host'
]:
host_service
=
'backend'
host_service
=
'backend'
url_host
=
host
[
'develop_host'
][
host_service
]
url_host
=
host
[
'develop_host'
][
host_service
]
print
(
"-----------"
,
url_host
)
# if host["develop_host"].get("doctor") is not None:
# if host["develop_host"].get("doctor") is not None:
# url_host = host['develop_host']['doctor']
# url_host = host['develop_host']['doctor']
# elif host["develop_host"].get("backend") is not None:
# elif host["develop_host"].get("backend") is not None:
...
@@ -73,7 +73,7 @@ class BaseRequest:
...
@@ -73,7 +73,7 @@ class BaseRequest:
# proxies={"http":"172.30.9.226:8888"}
# proxies={"http":"172.30.9.226:8888"}
)
)
print
(
"0000000"
,
r
)
# print("0000000",r.json()
)
# return r.json()
# return r.json()
try
:
try
:
content_type
=
r
.
headers
.
get
(
"content-type"
)
.
split
(
";"
)[
0
]
content_type
=
r
.
headers
.
get
(
"content-type"
)
.
split
(
";"
)[
0
]
...
...
login_session_function.yaml
View file @
70ce86db
backend_login
:
backend_login
:
method
:
POST
method
:
POST
url
:
/api/account
/login/login_vfc
url
:
/api/account
s/login/password
params
:
params
:
current_city_id
:
"
beijing"
current_city_id
:
"
beijing"
data
:
data
:
phone_num
:
"
+8612345678912"
phone
:
"
18301089928"
vfc_code
:
1234
vfc_type
:
face_token
:
#backend_login:
# method: POST
# url: /api/accounts/login/password
# params:
# current_city_id: "beijing"
# data:
# phone: "+8618646292152"
# password: 111111
doctor_login
:
method
:
post
url
:
/api/web/account/login
params
:
{}
data
:
name
:
"
12345654321"
password
:
123456
password
:
123456
method
:
password
lng
:
116.4879672787569
csrfmiddlewaretoken
:
"
PKHywf6cMBZUkc5WfklO71bQNoMztAfv"
lat
:
39.98338452087316
face_token
:
om_login
:
method
:
post
url
:
/achelous/account/login
params
:
{}
data
:
username
:
"
admin"
password
:
"
123123"
\ No newline at end of file
path_setting.py
View file @
70ce86db
...
@@ -3,525 +3,526 @@ import os, sys
...
@@ -3,525 +3,526 @@ import os, sys
BASE_DIR
=
os
.
path
.
dirname
(
os
.
path
.
dirname
(
__file__
))
BASE_DIR
=
os
.
path
.
dirname
(
os
.
path
.
dirname
(
__file__
))
sys
.
path
.
append
(
BASE_DIR
)
sys
.
path
.
append
(
BASE_DIR
)
HOSTYAML_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
"
,
"host.yaml"
)
HOSTYAML_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
"
,
"host.yaml"
)
LOGIN_FUNCTION_DATA
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
"
,
"login_session_function.yaml"
)
LOGIN_FUNCTION_DATA
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
"
,
"login_session_function.yaml"
)
APYAML_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/all_backend_api"
,
"account_request.yaml"
)
APYAML_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/all_backend_api"
,
"account_request.yaml"
)
LOGIN_VFC
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/test_backend_data/account_data"
,
"login_vfc.yaml"
)
LOGIN_VFC
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/test_backend_data/account_data"
,
"login_vfc.yaml"
)
# 日记本总接口配置
# 日记本总接口配置
DIARY_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/all_backend_api"
,
"diary_request.yaml"
)
DIARY_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/all_backend_api"
,
"diary_request.yaml"
)
#日记本详情页--字段判空
#日记本详情页--字段判空
DIARY_DATA
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/test_backend_data/diary_data"
,
"topic_data.yaml"
)
DIARY_DATA
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/test_backend_data/diary_data"
,
"topic_data.yaml"
)
#日记本关联美购
#日记本关联美购
DIARY_SERVICE_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/all_backend_api"
,
"diary_service.yaml"
)
DIARY_SERVICE_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/all_backend_api"
,
"diary_service.yaml"
)
DIARY_SERVICE
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/test_backend_data/diary_data"
,
"diary_service.yaml"
)
DIARY_SERVICE
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/test_backend_data/diary_data"
,
"diary_service.yaml"
)
#日记本收藏&取消收藏
#日记本收藏&取消收藏
DIARY_FAVOR
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/test_backend_data/diary_data"
,
"favor.yaml"
)
DIARY_FAVOR
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/test_backend_data/diary_data"
,
"favor.yaml"
)
# 日记本修改日记信息operation--目前好像直接用接口写无权限稍后解决
# 日记本修改日记信息operation--目前好像直接用接口写无权限稍后解决
DIARY_OPERATION_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/all_backend_api"
,
"diary_operation.yaml"
)
DIARY_OPERATION_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/all_backend_api"
,
"diary_operation.yaml"
)
DIARY_OPERATION
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/test_backend_data/diary_data"
,
"diary_operation.yaml"
)
DIARY_OPERATION
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/test_backend_data/diary_data"
,
"diary_operation.yaml"
)
# 日记本创建日记贴信息-
# 日记本创建日记贴信息-
DIARY_UPDATE_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"backend_auto/all_backend_api"
,
"diary_update.yaml"
)
DIARY_UPDATE_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"on_line_product/all_backend_api"
,
"diary_update.yaml"
)
DIARY_UPDATE
=
os
.
path
.
join
(
BASE_DIR
,
"backend_auto/test_backend_data/diary_data"
,
"diary_update.yaml"
)
DIARY_UPDATE
=
os
.
path
.
join
(
BASE_DIR
,
"on_line_product/test_backend_data/diary_data"
,
"diary_update.yaml"
)
DIARY_PRE_CREATE_TOPIC
=
os
.
path
.
join
(
BASE_DIR
,
"on_line_product/all_backend_api"
,
"diary_update.yaml"
)
DIARY_PRE_CREATE_TOPIC_DATE
=
os
.
path
.
join
(
BASE_DIR
,
"on_line_product/test_backend_data/diary_data"
,
"diary_pre_create_topic.yaml"
)
# 日记本进入相册页
# 日记本进入相册页
DIARY_ALBUM_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/all_backend_api"
,
"hybrid_diary_request.yaml"
)
DIARY_ALBUM_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/all_backend_api"
,
"hybrid_diary_request.yaml"
)
DIARY_ALBUM
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/test_backend_data/hybrid_data"
,
"diary_album.yaml"
)
DIARY_ALBUM
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/test_backend_data/hybrid_data"
,
"diary_album.yaml"
)
# 日记本列表-日记贴点赞相关()
# 日记本列表-日记贴点赞相关()
DIARY_VOTE_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/all_backend_api"
,
"hybrid_api_topic_request.yaml"
)
DIARY_VOTE_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/all_backend_api"
,
"hybrid_api_topic_request.yaml"
)
DIARY_VOTE
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/test_backend_data/hybrid_data"
,
"api_topic_vote.yaml"
)
DIARY_VOTE
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/test_backend_data/hybrid_data"
,
"api_topic_vote.yaml"
)
# 日记本&帖子&日记贴&帖子&问答各个详情页下方推荐内容
# 日记本&帖子&日记贴&帖子&问答各个详情页下方推荐内容
PERSONAL_RECOMMENDS_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/all_backend_api"
,
"personal_recommends.yaml"
)
PERSONAL_RECOMMENDS_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/all_backend_api"
,
"personal_recommends.yaml"
)
PERSONAL_RECOMMENDS
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/test_backend_data/personal_data"
,
"personal_recommends.yaml"
)
PERSONAL_RECOMMENDS
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/test_backend_data/personal_data"
,
"personal_recommends.yaml"
)
# 日记本列表-展示评论列表---也是总的common的配置
# 日记本列表-展示评论列表---也是总的common的配置
DIARY_COMMON_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/all_backend_api"
,
"common_request.yaml"
)
DIARY_COMMON_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/all_backend_api"
,
"common_request.yaml"
)
# 日记本列表-一级评论展示评论列表
# 日记本列表-一级评论展示评论列表
DIARY_COMMON_REPLY
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/test_backend_data/common_data"
,
"reply.yaml"
)
DIARY_COMMON_REPLY
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/test_backend_data/common_data"
,
"reply.yaml"
)
# 日记贴-子评论列表
# 日记贴-子评论列表
TOPIC_SUB_COMMON
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/test_backend_data/common_data"
,
"sub_common.yaml"
)
TOPIC_SUB_COMMON
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/test_backend_data/common_data"
,
"sub_common.yaml"
)
# 日记贴-创建一级评论&二级评论
# 日记贴-创建一级评论&二级评论
TOPIC_REPLY_CREATE_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/all_backend_api"
,
"topic_reply_create.yaml"
)
TOPIC_REPLY_CREATE_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/all_backend_api"
,
"topic_reply_create.yaml"
)
TOPIC_REPLY_CREATE
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/test_backend_data/topic_data"
,
"topic_reply_create.yaml"
)
TOPIC_REPLY_CREATE
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/test_backend_data/topic_data"
,
"topic_reply_create.yaml"
)
# 日记贴-一级评论点赞&取消点赞topicreply
# 日记贴-一级评论点赞&取消点赞topicreply
TOPIC_REPLY_VOTE_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/all_backend_api"
,
"topicreply_vote.yaml"
)
TOPIC_REPLY_VOTE_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/all_backend_api"
,
"topicreply_vote.yaml"
)
TOPIC_REPLY_VOTE
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/test_backend_data/topic_data"
,
"reply_vote.yaml"
)
TOPIC_REPLY_VOTE
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/test_backend_data/topic_data"
,
"reply_vote.yaml"
)
# 日记贴-收藏&取消收藏--config文件代表,data代表接口
# 日记贴-收藏&取消收藏--config文件代表,data代表接口
TOPIC_FAVOR_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/all_backend_api"
,
"user_request.yaml"
)
TOPIC_FAVOR_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/all_backend_api"
,
"user_request.yaml"
)
TOPIC_FAVOR
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/test_backend_data/user_data"
,
"problem_favor.yaml"
)
TOPIC_FAVOR
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/test_backend_data/user_data"
,
"problem_favor.yaml"
)
# 日记贴-topic总的接口的请求配置
# 日记贴-topic总的接口的请求配置
TOPIC_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/all_backend_api"
,
"topic_request.yaml"
)
TOPIC_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/all_backend_api"
,
"topic_request.yaml"
)
# 日记贴-详情页内容
# 日记贴-详情页内容
TOPIC_DETAIL
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/test_backend_data/topic_data"
,
"v1.yaml"
)
TOPIC_DETAIL
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/test_backend_data/topic_data"
,
"v1.yaml"
)
# 日记贴-点赞&取消点赞--详情页内部
# 日记贴-点赞&取消点赞--详情页内部
TOPIC_VOTE
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/test_backend_data/topic_data"
,
"vote.yaml"
)
TOPIC_VOTE
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/test_backend_data/topic_data"
,
"vote.yaml"
)
# 帖子详情页内容--也是总的tractate接口的配置
# 帖子详情页内容--也是总的tractate接口的配置
TRACTATE_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/all_backend_api"
,
"tractate_request.yaml"
)
TRACTATE_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/all_backend_api"
,
"tractate_request.yaml"
)
# 帖子详情页内容
# 帖子详情页内容
TRACTATE_DETAIL
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/test_backend_data/tractate_data"
,
"new_detail.yaml"
)
TRACTATE_DETAIL
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/test_backend_data/tractate_data"
,
"new_detail.yaml"
)
# 帖子详情页--相关美购&推荐美购
# 帖子详情页--相关美购&推荐美购
TRACTATE_RELATED_SERVICE
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/test_backend_data/tractate_data"
,
"related_service.yaml"
)
TRACTATE_RELATED_SERVICE
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/test_backend_data/tractate_data"
,
"related_service.yaml"
)
# 帖子详情页--外显评论
# 帖子详情页--外显评论
TRACTATE_REPLY
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/test_backend_data/tractate_data"
,
"reply.yaml"
)
TRACTATE_REPLY
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/test_backend_data/tractate_data"
,
"reply.yaml"
)
# 帖子详情页--收藏&取消收藏
# 帖子详情页--收藏&取消收藏
TRACTATE_FAVOR
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/test_backend_data/tractate_data"
,
"favor.yaml"
)
TRACTATE_FAVOR
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/test_backend_data/tractate_data"
,
"favor.yaml"
)
# 帖子详情页--点赞&取消点赞
# 帖子详情页--点赞&取消点赞
TRACTATE_VOTE
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/test_backend_data/tractate_data"
,
"vote.yaml"
)
TRACTATE_VOTE
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/test_backend_data/tractate_data"
,
"vote.yaml"
)
# 帖子详情页--一级评论创建
# 帖子详情页--一级评论创建
TRACTATE_PUBLISH_REPLY
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/test_backend_data/tractate_data"
,
"publish_reply.yaml"
)
TRACTATE_PUBLISH_REPLY
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/test_backend_data/tractate_data"
,
"publish_reply.yaml"
)
# 问答详情页--问题详情
# 问答详情页--问题详情
QUESTION_DETAIL
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/test_backend_data/hybrid_data"
,
"question_v1.yaml"
)
QUESTION_DETAIL
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/test_backend_data/hybrid_data"
,
"question_v1.yaml"
)
# 问答详情页--回答列表
# 问答详情页--回答列表
ANSWER_LIST
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/test_backend_data/hybrid_data"
,
"question_new_answer_list.yaml"
)
ANSWER_LIST
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/test_backend_data/hybrid_data"
,
"question_new_answer_list.yaml"
)
# qa接口总的配置项--问答·相关
# qa接口总的配置项--问答·相关
QA_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/all_backend_api"
,
"qa_request.yaml"
)
QA_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/all_backend_api"
,
"qa_request.yaml"
)
# -问题的收藏&取消收藏
# -问题的收藏&取消收藏
QA_FAVOR
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/test_backend_data/qa_data"
,
"favor.yaml"
)
QA_FAVOR
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/test_backend_data/qa_data"
,
"favor.yaml"
)
# -test的文件,尝试在不动原函数的基础上加参数而不是用默认参数。--没必要
# -test的文件,尝试在不动原函数的基础上加参数而不是用默认参数。--没必要
# TEST_QA = os.path.join(BASE_DIR, "
backend_auto
/test_backend_data/qa_data", "test.yaml")
# TEST_QA = os.path.join(BASE_DIR, "
on_line_product
/test_backend_data/qa_data", "test.yaml")
#搜索首页-热门搜索
#搜索首页-热门搜索
KEYWORDS_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/all_backend_api"
,
"search_request.yaml"
)
KEYWORDS_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/all_backend_api"
,
"search_request.yaml"
)
KEYWORDS
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/test_backend_data/search_data"
,
"keywords.yaml"
)
KEYWORDS
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/test_backend_data/search_data"
,
"keywords.yaml"
)
#医生后台-我的商品
#医生后台-我的商品
SERVICE_DATA
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/test_doctor_data/web2_data"
,
"service_list.yaml"
)
SERVICE_DATA
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/test_doctor_data/web2_data"
,
"service_list.yaml"
)
SERVICE_URL
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/all_doctor_api"
,
"web2_request.yaml"
)
SERVICE_URL
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/all_doctor_api"
,
"web2_request.yaml"
)
#医生后台-商品审核流程
#医生后台-商品审核流程
SERVICE_REVIEW_DATA
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/test_doctor_data/web2_data"
,
"service_review_list.yaml"
)
SERVICE_REVIEW_DATA
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/test_doctor_data/web2_data"
,
"service_review_list.yaml"
)
#医生后台-新商品审核-撤回审核流程
#医生后台-新商品审核-撤回审核流程
SERVICEREVIEW_OPTION_DATA
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/test_doctor_data/web2_data"
,
"servicereview_option.yaml"
)
SERVICEREVIEW_OPTION_DATA
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/test_doctor_data/web2_data"
,
"servicereview_option.yaml"
)
#医生后台-发布商品选择类目ACCOUNT
#医生后台-发布商品选择类目ACCOUNT
ACCOUNT_URL
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/all_doctor_api"
,
"web_request.yaml"
)
ACCOUNT_URL
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/all_doctor_api"
,
"web_request.yaml"
)
ACCOUNT_DATA
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/test_doctor_data/web_data"
,
"account_unreadbadgecount.yaml"
)
ACCOUNT_DATA
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/test_doctor_data/web_data"
,
"account_unreadbadgecount.yaml"
)
# 医生后台-发布商品选择类目article
# 医生后台-发布商品选择类目article
ARTICLE_DATA
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/test_doctor_data/web_data"
,
"article_videotoken.yaml"
)
ARTICLE_DATA
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/test_doctor_data/web_data"
,
"article_videotoken.yaml"
)
#医生后台 - 发布商品选择类目tag
#医生后台 - 发布商品选择类目tag
TAG_DATA
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/test_doctor_data/web2_data"
,
"tag_all.yaml"
)
TAG_DATA
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/test_doctor_data/web2_data"
,
"tag_all.yaml"
)
#医生后台 - 发布商品选择类目doctor
#医生后台 - 发布商品选择类目doctor
DOCTOR_DATA
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/test_doctor_data/web_data"
,
"doctor_submechanisms.yaml"
)
DOCTOR_DATA
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/test_doctor_data/web_data"
,
"doctor_submechanisms.yaml"
)
#搜索首页-热门搜索
#搜索首页-热门搜索
KEYWORDS_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/all_backend_api"
,
"search_request.yaml"
)
KEYWORDS_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/all_backend_api"
,
"search_request.yaml"
)
KEYWORDS
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/test_backend_data/search_data"
,
"keywords.yaml"
)
KEYWORDS
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/test_backend_data/search_data"
,
"keywords.yaml"
)
#医生后台-保存新增商品
#医生后台-保存新增商品
REGISTER_URL
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/all_doctor_api"
,
"glmer_request.yaml"
)
REGISTER_URL
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/all_doctor_api"
,
"glmer_request.yaml"
)
REGISTER_DATA
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/test_doctor_data/glmer_data"
,
"service_register.yaml"
)
REGISTER_DATA
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/test_doctor_data/glmer_data"
,
"service_register.yaml"
)
#医生后台-编辑商品
#医生后台-编辑商品
DETAIL_DATA
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/test_doctor_data/glmer_data"
,
"service_detail.yaml"
)
DETAIL_DATA
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/test_doctor_data/glmer_data"
,
"service_detail.yaml"
)
#医生后台-我的商品-下线商品
#医生后台-我的商品-下线商品
OFFLINE_DATA
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/test_doctor_data/web_data"
,
"service_offline.yaml"
)
OFFLINE_DATA
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/test_doctor_data/web_data"
,
"service_offline.yaml"
)
#医生后台-我的商品-删除商品
#医生后台-我的商品-删除商品
DELETE_DATA
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/test_doctor_data/web2_data"
,
"service_delete.yaml"
)
DELETE_DATA
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/test_doctor_data/web2_data"
,
"service_delete.yaml"
)
#医生后台-编辑可标准化商品
#医生后台-编辑可标准化商品
PROPERTIES_DATA
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/test_doctor_data/glmer_data"
,
"tag_properties.yaml"
)
PROPERTIES_DATA
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/test_doctor_data/glmer_data"
,
"tag_properties.yaml"
)
#医生后台-商品回收站
#医生后台-商品回收站
DELETELIST_DATA
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/test_doctor_data/web2_data"
,
"service_deletelist.yaml"
)
DELETELIST_DATA
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/test_doctor_data/web2_data"
,
"service_deletelist.yaml"
)
#医生后台-上线商品、编辑商品
#医生后台-上线商品、编辑商品
SERVICEALL_DATA
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/test_doctor_data/web_data"
,
"service_all.yaml"
)
SERVICEALL_DATA
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/test_doctor_data/web_data"
,
"service_all.yaml"
)
#搜索首页-热门搜索
#搜索首页-热门搜索
KEYWORDS_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/all_backend_api"
,
"search_request.yaml"
)
KEYWORDS_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/all_backend_api"
,
"search_request.yaml"
)
KEYWORDS
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/test_backend_data/search_data"
,
"keywords.yaml"
)
KEYWORDS
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/test_backend_data/search_data"
,
"keywords.yaml"
)
# 首页灰度v9,精选tab
# 首页灰度v9,精选tab
FEED_INDEXV9_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/all_backend_api"
,
"feed_request.yaml"
)
FEED_INDEXV9_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/all_backend_api"
,
"feed_request.yaml"
)
FEED_INDEXV9_DATA
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/test_backend_data/feed_data"
,
"index_v9.yaml"
)
FEED_INDEXV9_DATA
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/test_backend_data/feed_data"
,
"index_v9.yaml"
)
# 测颜值结果页
# 测颜值结果页
ONEIMAGE_SHARE_V4_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/all_backend_api"
,
"oneimage_request.yaml"
)
ONEIMAGE_SHARE_V4_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/all_backend_api"
,
"oneimage_request.yaml"
)
ONEIMAGE_SHARE_V4_DATA
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/test_backend_data/oneimage_data"
,
"share_v4.yaml"
)
ONEIMAGE_SHARE_V4_DATA
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/test_backend_data/oneimage_data"
,
"share_v4.yaml"
)
# 测颜值根据五官推荐美购
# 测颜值根据五官推荐美购
ONEIMAGE_RECOMEND_SERVICES_DATA
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/test_backend_data/oneimage_data"
,
"recomend_services.yaml"
)
ONEIMAGE_RECOMEND_SERVICES_DATA
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/test_backend_data/oneimage_data"
,
"recomend_services.yaml"
)
# 测颜值结果页获取小程序二维码
# 测颜值结果页获取小程序二维码
XCX_GENGMEI_GET_WXACODE_UNLIMITED_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/all_backend_api"
,
"xcx_request.yaml"
)
XCX_GENGMEI_GET_WXACODE_UNLIMITED_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/all_backend_api"
,
"xcx_request.yaml"
)
XCX_GENGMEI_GET_WXACODE_UNLIMITED_DATA
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/test_backend_data/xcx_data"
,
"gengmei_get_wxacode_unlimited.yaml"
)
XCX_GENGMEI_GET_WXACODE_UNLIMITED_DATA
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/test_backend_data/xcx_data"
,
"gengmei_get_wxacode_unlimited.yaml"
)
# 测颜值根据标签召回日记
# 测颜值根据标签召回日记
FACE_DIARY_CARDS_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/all_backend_api"
,
"face_request.yaml"
)
FACE_DIARY_CARDS_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/all_backend_api"
,
"face_request.yaml"
)
FACE_DIARY_CARDS_DATA
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/test_backend_data/face_data"
,
"diary_cards.yaml"
)
FACE_DIARY_CARDS_DATA
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/test_backend_data/face_data"
,
"diary_cards.yaml"
)
# 3D变脸下feed流
# 3D变脸下feed流
FACE_PLASTIC_FEEDS_DATA
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/test_backend_data/face_data"
,
"plastic_feeds.yaml"
)
FACE_PLASTIC_FEEDS_DATA
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/test_backend_data/face_data"
,
"plastic_feeds.yaml"
)
# 测颜值底部feed流
# 测颜值底部feed流
SCAN_DIARY_CARDS_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/all_backend_api"
,
"scan_request.yaml"
)
SCAN_DIARY_CARDS_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/all_backend_api"
,
"scan_request.yaml"
)
SCAN_DIARY_CARDS_DATA
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/test_backend_data/scan_data"
,
"diary_cards.yaml"
)
SCAN_DIARY_CARDS_DATA
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/test_backend_data/scan_data"
,
"diary_cards.yaml"
)
# 测肤质feed流
# 测肤质feed流
SKIN_RECOMMEND_SERVICE_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/all_backend_api"
,
"skin_request.yaml"
)
SKIN_RECOMMEND_SERVICE_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/all_backend_api"
,
"skin_request.yaml"
)
SKIN_RECOMMEND_SERVICE_DATA
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/test_backend_data/skin_data"
,
"recommend_service.yaml"
)
SKIN_RECOMMEND_SERVICE_DATA
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/test_backend_data/skin_data"
,
"recommend_service.yaml"
)
# 测肤结果页 / AI变脸结果页
# 测肤结果页 / AI变脸结果页
GMAI_SKIN_NEWREPORT_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/all_backend_api"
,
"gmai_request.yaml"
)
GMAI_SKIN_NEWREPORT_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/all_backend_api"
,
"gmai_request.yaml"
)
GMAI_SKIN_NEWREPORT_DATA
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/test_backend_data/gmai_data"
,
"skin_newReport.yaml"
)
GMAI_SKIN_NEWREPORT_DATA
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/test_backend_data/gmai_data"
,
"skin_newReport.yaml"
)
# 用户之前是否使用过测肤功能
# 用户之前是否使用过测肤功能
GMAI_SKIN_USER_HAD_TEST_DATA
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/test_backend_data/gmai_data"
,
"skin_user_had_test.yaml"
)
GMAI_SKIN_USER_HAD_TEST_DATA
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/test_backend_data/gmai_data"
,
"skin_user_had_test.yaml"
)
# 模拟双眼皮
# 模拟双眼皮
GMAI_EYELIDS_PLASTIC_DATA
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/test_backend_data/gmai_data"
,
"eyelids_plastic.yaml"
)
GMAI_EYELIDS_PLASTIC_DATA
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/test_backend_data/gmai_data"
,
"eyelids_plastic.yaml"
)
# 模拟发型
# 模拟发型
GMAI_SIMULATE_ANALYZE_DATA
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/test_backend_data/gmai_data"
,
"simulate_analyze.yaml"
)
GMAI_SIMULATE_ANALYZE_DATA
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/test_backend_data/gmai_data"
,
"simulate_analyze.yaml"
)
# 获取模拟整形相关配置文件
# 获取模拟整形相关配置文件
GMAI_SIMULATE_CONF_DATA
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/test_backend_data/gmai_data"
,
"simulate_conf.yaml"
)
GMAI_SIMULATE_CONF_DATA
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/test_backend_data/gmai_data"
,
"simulate_conf.yaml"
)
# 模拟双眼皮,发型,美瞳,眉毛下日记推荐(根据标签)
# 模拟双眼皮,发型,美瞳,眉毛下日记推荐(根据标签)
EYELIDS_DIARY_CARDS_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/all_backend_api"
,
"eyelids_request.yaml"
)
EYELIDS_DIARY_CARDS_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/all_backend_api"
,
"eyelids_request.yaml"
)
EYELIDS_DIARY_CARDS_DATA
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/test_backend_data/eyelids_data"
,
"diary_cards.yaml"
)
EYELIDS_DIARY_CARDS_DATA
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/test_backend_data/eyelids_data"
,
"diary_cards.yaml"
)
# AI变脸结果
# AI变脸结果
GMAI_PLASTIC_ANALYSIS_V3_DATA
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/test_backend_data/gmai_data"
,
"plastic_analysis_v3.yaml"
)
GMAI_PLASTIC_ANALYSIS_V3_DATA
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/test_backend_data/gmai_data"
,
"plastic_analysis_v3.yaml"
)
# 3D变脸获取参数
# 3D变脸获取参数
GMAI_PLASTIC_CHECCK_STYLE_CLASSTIFY_DATA
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/test_backend_data/gmai_data"
,
"plastic_cheek_style_classify.yaml"
)
GMAI_PLASTIC_CHECCK_STYLE_CLASSTIFY_DATA
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/test_backend_data/gmai_data"
,
"plastic_cheek_style_classify.yaml"
)
# 3D变脸
# 3D变脸
GMAI_PLASTIC_ANALYSIS_V2_DATA
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/test_backend_data/gmai_data"
,
"plastic_analysis_v2.yaml"
)
GMAI_PLASTIC_ANALYSIS_V2_DATA
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/test_backend_data/gmai_data"
,
"plastic_analysis_v2.yaml"
)
# 新版本我的美券列表
# 新版本我的美券列表
JANUS_PRODUCT_MY_LIST_DATA
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/test_backend_data/janus_data"
,
"product_my_list.yaml"
)
JANUS_PRODUCT_MY_LIST_DATA
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/test_backend_data/janus_data"
,
"product_my_list.yaml"
)
# 我的订单列表
# 我的订单列表
ORDERS_MY_V2_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/all_backend_api"
,
"orders_request.yaml"
)
ORDERS_MY_V2_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/all_backend_api"
,
"orders_request.yaml"
)
# 订单列表
# 订单列表
ORDERS_MY_V2_DATA
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/test_backend_data/orders_data"
,
"my_v2.yaml"
)
ORDERS_MY_V2_DATA
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/test_backend_data/orders_data"
,
"my_v2.yaml"
)
#我的订单-各状态订单数量
#我的订单-各状态订单数量
ORDER_MY_STATUS
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/test_backend_data/orders_data"
,
"my_status.yaml"
)
ORDER_MY_STATUS
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/test_backend_data/orders_data"
,
"my_status.yaml"
)
LOGIN_PASSWD
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/test_backend_data/accounts_data"
,
"login_passwd.yaml"
)
LOGIN_PASSWD
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/test_backend_data/accounts_data"
,
"login_passwd.yaml"
)
LOGIN_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/all_backend_api"
,
"accounts_request.yaml"
)
LOGIN_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/all_backend_api"
,
"accounts_request.yaml"
)
#医院主页详情
#医院主页详情
HDYAML_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/all_backend_api"
,
"hospitals_request.yaml"
)
HDYAML_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/all_backend_api"
,
"hospitals_request.yaml"
)
HOSPITAL_DETAIL
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/test_backend_data/hospitals_data"
,
"detail.yaml"
)
HOSPITAL_DETAIL
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/test_backend_data/hospitals_data"
,
"detail.yaml"
)
#医院主页医生列表
#医院主页医生列表
HOSPITAL_DOCTOR
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/test_backend_data/hospitals_data"
,
"doctor.yaml"
)
HOSPITAL_DOCTOR
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/test_backend_data/hospitals_data"
,
"doctor.yaml"
)
#医院主页商品列表
#医院主页商品列表
HOSPITAL_SERVICE_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/all_backend_api"
,
"hospitals_v2_request.yaml"
)
HOSPITAL_SERVICE_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/all_backend_api"
,
"hospitals_v2_request.yaml"
)
HOSPITAL_SERVICE
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/test_backend_data/hospitals_v2_data"
,
"services.yaml"
)
HOSPITAL_SERVICE
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/test_backend_data/hospitals_v2_data"
,
"services.yaml"
)
#医院主页日记列表
#医院主页日记列表
HOSPITAL_DIARY_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/all_backend_api"
,
"hospital_request.yaml"
)
HOSPITAL_DIARY_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/all_backend_api"
,
"hospital_request.yaml"
)
HOSPITAL_DIARY
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/test_backend_data/hospital_data"
,
"diary.yaml"
)
HOSPITAL_DIARY
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/test_backend_data/hospital_data"
,
"diary.yaml"
)
#医生/医院主页-医生/医院说列表
#医生/医院主页-医生/医院说列表
DOCTOR_ARTICLE_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/all_backend_api"
,
"doctor_request.yaml"
)
DOCTOR_ARTICLE_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/all_backend_api"
,
"doctor_request.yaml"
)
DOCTOR_ARTICLE
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/test_backend_data/doctor_data"
,
"article.yaml"
)
DOCTOR_ARTICLE
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/test_backend_data/doctor_data"
,
"article.yaml"
)
#医生主页详情
#医生主页详情
DOCTOR_DETAIL
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/test_backend_data/doctor_data"
,
"detail.yaml"
)
DOCTOR_DETAIL
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/test_backend_data/doctor_data"
,
"detail.yaml"
)
#医生主页案例列表
#医生主页案例列表
DOCTOR_DIARY
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/test_backend_data/doctor_data"
,
"diary.yaml"
)
DOCTOR_DIARY
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/test_backend_data/doctor_data"
,
"diary.yaml"
)
#医生主页商品列表
#医生主页商品列表
DOCTOR_V2_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/all_backend_api"
,
"doctor_v2_request.yaml"
)
DOCTOR_V2_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/all_backend_api"
,
"doctor_v2_request.yaml"
)
DOCTOR_V2_SERVICE
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/test_backend_data/doctor_v2_data"
,
"services.yaml"
)
DOCTOR_V2_SERVICE
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/test_backend_data/doctor_v2_data"
,
"services.yaml"
)
#医生/医院主页-问答列表
#医生/医院主页-问答列表
USER_ANSWER_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/all_backend_api"
,
"user_request.yaml"
)
USER_ANSWER_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/all_backend_api"
,
"user_request.yaml"
)
USER_ANSWER
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/test_backend_data/user_data"
,
"answer.yaml"
)
USER_ANSWER
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/test_backend_data/user_data"
,
"answer.yaml"
)
#购物车列表
#购物车列表
SHOPCART_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/all_backend_api"
,
"shopcart_request.yaml"
)
SHOPCART_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/all_backend_api"
,
"shopcart_request.yaml"
)
SHOPCART_LIST
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/test_backend_data/shopcart_data"
,
"list.yaml"
)
SHOPCART_LIST
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/test_backend_data/shopcart_data"
,
"list.yaml"
)
#购物车-猜你喜欢列表
#购物车-猜你喜欢列表
JANUS_MINE_GUESS_YOU_LIKE
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/test_backend_data/janus_data"
,
"mine_guess_you_like.yaml"
)
JANUS_MINE_GUESS_YOU_LIKE
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/test_backend_data/janus_data"
,
"mine_guess_you_like.yaml"
)
#消息列表
#消息列表
MY_CONVERSATION_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/all_backend_api"
,
"my_conversation_request.yaml"
)
MY_CONVERSATION_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/all_backend_api"
,
"my_conversation_request.yaml"
)
MY_CONVERSATION
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/test_backend_data/my_conversation_data"
,
"my_conversation.yaml"
)
MY_CONVERSATION
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/test_backend_data/my_conversation_data"
,
"my_conversation.yaml"
)
DETAIL_MESSAGEID
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/test_backend_data/conversation_data"
,
"detail_messageid.yaml"
)
DETAIL_MESSAGEID
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/test_backend_data/conversation_data"
,
"detail_messageid.yaml"
)
#消息
#消息
MESSAGE_READ_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/all_backend_api"
,
"conversation_request.yaml"
)
MESSAGE_READ_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/all_backend_api"
,
"conversation_request.yaml"
)
MESSAGE_READ
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/test_backend_data/conversation_data"
,
"message_read.yaml"
)
MESSAGE_READ
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/test_backend_data/conversation_data"
,
"message_read.yaml"
)
#消息页未读数
#消息页未读数
UNREAD_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/all_backend_api"
,
"notification_request.yaml"
)
UNREAD_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/all_backend_api"
,
"notification_request.yaml"
)
UNREAD
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/test_backend_data/notification_data"
,
"unread.yaml"
)
UNREAD
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/test_backend_data/notification_data"
,
"unread.yaml"
)
#标记为已读
#标记为已读
READALL
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/test_backend_data/notification_data"
,
"readall.yaml"
)
READALL
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/test_backend_data/notification_data"
,
"readall.yaml"
)
#咨询顾问相关
#咨询顾问相关
CONVERSATION_DETAIL_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/all_backend_api"
,
"im_request.yaml"
)
CONVERSATION_DETAIL_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/all_backend_api"
,
"im_request.yaml"
)
CONVERSATION_DETAIL
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/test_backend_data/im_data"
,
"conversation_detail.yaml"
)
CONVERSATION_DETAIL
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/test_backend_data/im_data"
,
"conversation_detail.yaml"
)
AUTO_MSG
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/test_backend_data/im_data"
,
"auto_msg.yaml"
)
AUTO_MSG
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/test_backend_data/im_data"
,
"auto_msg.yaml"
)
SEND_MSG
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/test_backend_data/im_data"
,
"send_msg.yaml"
)
SEND_MSG
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/test_backend_data/im_data"
,
"send_msg.yaml"
)
#发送消息
#发送消息
PRIVATE_CONVERSATION_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/all_backend_api"
,
"private_conversation_request.yaml"
)
PRIVATE_CONVERSATION_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/all_backend_api"
,
"private_conversation_request.yaml"
)
PRIVATE_CONVERSATION
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/test_backend_data/private_conversation_data"
,
"private_conversation.yaml"
)
PRIVATE_CONVERSATION
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/test_backend_data/private_conversation_data"
,
"private_conversation.yaml"
)
HOME_V5_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/all_backend_api"
,
"service_request.yaml"
)
HOME_V5_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/all_backend_api"
,
"service_request.yaml"
)
HOME_V5
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/test_backend_data/service_data"
,
"home_v5.yaml"
)
HOME_V5
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/test_backend_data/service_data"
,
"home_v5.yaml"
)
PERSONAL_CENTER_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/all_backend_api"
,
"user_request.yaml"
)
PERSONAL_CENTER_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/all_backend_api"
,
"user_request.yaml"
)
PERSONAL_CENTER
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/test_backend_data/user_data"
,
"personal_center.yaml"
)
PERSONAL_CENTER
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/test_backend_data/user_data"
,
"personal_center.yaml"
)
#搜索结果页-综合/百科
#搜索结果页-综合/百科
CONTENTV7_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/all_backend_api"
,
"janus_request.yaml"
)
CONTENTV7_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/all_backend_api"
,
"janus_request.yaml"
)
CONTENTV7
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/test_backend_data/janus_data"
,
"content_v7.yaml"
)
CONTENTV7
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/test_backend_data/janus_data"
,
"content_v7.yaml"
)
#医院主页搜索
#医院主页搜索
HOSPITALSEARCH_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/all_backend_api"
,
"janus_request.yaml"
)
HOSPITALSEARCH_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/all_backend_api"
,
"janus_request.yaml"
)
HOSPITALSEARCH
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/test_backend_data/janus_data"
,
"hospital_search.yaml"
)
HOSPITALSEARCH
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/test_backend_data/janus_data"
,
"hospital_search.yaml"
)
#直播
#直播
LIVEYAML_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/all_backend_api"
,
"live_request.yaml"
)
LIVEYAML_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/all_backend_api"
,
"live_request.yaml"
)
#直播-获取弹幕
#直播-获取弹幕
DANMU_V2
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/test_backend_data/live_data"
,
"danmu_v2.yaml"
)
DANMU_V2
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/test_backend_data/live_data"
,
"danmu_v2.yaml"
)
#直播-主播开播
#直播-主播开播
PUSH_LIVE_INFO
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/test_backend_data/live_data"
,
"pushlive_info.yaml"
)
PUSH_LIVE_INFO
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/test_backend_data/live_data"
,
"pushlive_info.yaml"
)
#商祥页-详情
#商祥页-详情
JANUS_PRODUCT_DETAIL
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/test_backend_data/janus_data"
,
"product_detail.yaml"
)
JANUS_PRODUCT_DETAIL
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/test_backend_data/janus_data"
,
"product_detail.yaml"
)
#商祥页-sku信息
#商祥页-sku信息
JANUS_SKU_INFO
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/test_backend_data/janus_data"
,
"sku_info.yaml"
)
JANUS_SKU_INFO
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/test_backend_data/janus_data"
,
"sku_info.yaml"
)
#商祥页-收藏
#商祥页-收藏
SERVICE_FAVOR
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/test_backend_data/service_data"
,
"service_favor.yaml"
)
SERVICE_FAVOR
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/test_backend_data/service_data"
,
"service_favor.yaml"
)
#商祥页-分享
#商祥页-分享
SERVICES_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/all_backend_api"
,
"services_request.yaml"
)
SERVICES_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/all_backend_api"
,
"services_request.yaml"
)
SERVICES_SHARE_DATA
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/test_backend_data/services_data"
,
"share_data.yaml"
)
SERVICES_SHARE_DATA
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/test_backend_data/services_data"
,
"share_data.yaml"
)
#商祥页-加入购物车
#商祥页-加入购物车
SHOPCART_ADD
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/test_backend_data/shopcart_data"
,
"add.yaml"
)
SHOPCART_ADD
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/test_backend_data/shopcart_data"
,
"add.yaml"
)
#商祥页-美券列表
#商祥页-美券列表
HYBRID_GIFT_LIST_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/all_backend_api"
,
"hybrid_gift_list_request.yaml"
)
HYBRID_GIFT_LIST_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/all_backend_api"
,
"hybrid_gift_list_request.yaml"
)
GIFT_LIST_DATA
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/test_backend_data/hybrid_gift_list_data"
,
"gift_list_data.yaml"
)
GIFT_LIST_DATA
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/test_backend_data/hybrid_gift_list_data"
,
"gift_list_data.yaml"
)
#商祥页-优惠券列表-领取
#商祥页-优惠券列表-领取
HYBRID_GET_GIFT_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/all_backend_api"
,
"hybrid_get_gift_request.yaml"
)
HYBRID_GET_GIFT_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/all_backend_api"
,
"hybrid_get_gift_request.yaml"
)
GET_GIFT_DATA
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/test_backend_data/hybrid_get_gift_data"
,
"get_gift_data.yaml"
)
GET_GIFT_DATA
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/test_backend_data/hybrid_get_gift_data"
,
"get_gift_data.yaml"
)
#商祥页-美券列表-我的美券点击-744版本及以后-新接口
#商祥页-美券列表-我的美券点击-744版本及以后-新接口
PRODUCT_COUPON_MY_LIST
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/test_backend_data/janus_data"
,
"product_coupon_my_list.yaml"
)
PRODUCT_COUPON_MY_LIST
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/test_backend_data/janus_data"
,
"product_coupon_my_list.yaml"
)
#商祥页-推荐商品列表
#商祥页-推荐商品列表
HYBRID_PROMOTION_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/all_backend_api"
,
"hybrid_promotion_request.yaml"
)
HYBRID_PROMOTION_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/all_backend_api"
,
"hybrid_promotion_request.yaml"
)
RELATED_SERVICE_DATA
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/test_backend_data/hybrid_promotion_data"
,
"related_service_data.yaml"
)
RELATED_SERVICE_DATA
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/test_backend_data/hybrid_promotion_data"
,
"related_service_data.yaml"
)
#次卡-确认订单
#次卡-确认订单
BEAUTY_CARD_ORDER_CONFIRM
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/test_backend_data/janus_data"
,
"beauty_card_order_confirm.yaml"
)
BEAUTY_CARD_ORDER_CONFIRM
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/test_backend_data/janus_data"
,
"beauty_card_order_confirm.yaml"
)
#次卡-确认订单页面-修改手机号接口
#次卡-确认订单页面-修改手机号接口
BEAUTY_CARD_UPDATE_PHONE
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/test_backend_data/janus_data"
,
"beauty_card_update_phone.yaml"
)
BEAUTY_CARD_UPDATE_PHONE
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/test_backend_data/janus_data"
,
"beauty_card_update_phone.yaml"
)
#次卡-提交订单
#次卡-提交订单
BEAUTY_CARD_ORDER_SUBMIT
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/test_backend_data/janus_data"
,
"beauty_card_order_submit.yaml"
)
BEAUTY_CARD_ORDER_SUBMIT
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/test_backend_data/janus_data"
,
"beauty_card_order_submit.yaml"
)
#次卡-支付平台
#次卡-支付平台
BEAUTY_CARD_PAYMENT_METHOD
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/test_backend_data/janus_data"
,
"beauty_card_payment_method.yaml"
)
BEAUTY_CARD_PAYMENT_METHOD
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/test_backend_data/janus_data"
,
"beauty_card_payment_method.yaml"
)
#次卡-微信支付
#次卡-微信支付
BEAUTY_CARD_PREPAY_WECHAT
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/test_backend_data/janus_data"
,
"beauty_card_prepay_wechat.yaml"
)
BEAUTY_CARD_PREPAY_WECHAT
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/test_backend_data/janus_data"
,
"beauty_card_prepay_wechat.yaml"
)
#次卡-支付宝支付
#次卡-支付宝支付
BEAUTY_CARD_PREPAY_ALIPAY
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/test_backend_data/janus_data"
,
"beauty_card_prepay_alipay.yaml"
)
BEAUTY_CARD_PREPAY_ALIPAY
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/test_backend_data/janus_data"
,
"beauty_card_prepay_alipay.yaml"
)
#次卡-订单详情
#次卡-订单详情
BEAUTY_CARD_PAYMENT_DETAIL
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/test_backend_data/janus_data"
,
"beauty_card_payment_detail.yaml"
)
BEAUTY_CARD_PAYMENT_DETAIL
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/test_backend_data/janus_data"
,
"beauty_card_payment_detail.yaml"
)
#次卡-取消订单
#次卡-取消订单
BEAUTY_CARD_PAYMENT_DELETE
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/test_backend_data/janus_data"
,
"beauty_card_payment_delete.yaml"
)
BEAUTY_CARD_PAYMENT_DELETE
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/test_backend_data/janus_data"
,
"beauty_card_payment_delete.yaml"
)
#次卡-申请退款
#次卡-申请退款
BEAUTY_CARD_REFUND_INFO
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/test_backend_data/janus_data"
,
"beauty_card_refund_info.yaml"
)
BEAUTY_CARD_REFUND_INFO
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/test_backend_data/janus_data"
,
"beauty_card_refund_info.yaml"
)
#次卡-提交退款申请
#次卡-提交退款申请
BEAUTY_CARD_REFUND_SUBMIT
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/test_backend_data/janus_data"
,
"beauty_card_refund_submit.yaml"
)
BEAUTY_CARD_REFUND_SUBMIT
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/test_backend_data/janus_data"
,
"beauty_card_refund_submit.yaml"
)
# 次卡订单详情页(未使用 部分使用 和 已使用)
# 次卡订单详情页(未使用 部分使用 和 已使用)
BEAUTY_CARD_ORDER_DETAIL_DATA
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/test_backend_data/janus_data"
,
"beauty_card_order_detail.yaml"
)
BEAUTY_CARD_ORDER_DETAIL_DATA
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/test_backend_data/janus_data"
,
"beauty_card_order_detail.yaml"
)
#捜索结果页-医生/医院tab
#捜索结果页-医生/医院tab
CONTENTV6_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/all_backend_api"
,
"search_request.yaml"
)
CONTENTV6_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/all_backend_api"
,
"search_request.yaml"
)
CONTENTV6
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/test_backend_data/search_data"
,
"content_v6.yaml"
)
CONTENTV6
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/test_backend_data/search_data"
,
"content_v6.yaml"
)
#品类聚合页面商品列表
#品类聚合页面商品列表
TAG_SERVICE_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/all_backend_api"
,
"janus_request.yaml"
)
TAG_SERVICE_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/all_backend_api"
,
"janus_request.yaml"
)
TAG_SERVICE
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/test_backend_data/janus_data"
,
"tag_service.yaml"
)
TAG_SERVICE
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/test_backend_data/janus_data"
,
"tag_service.yaml"
)
#社区tab签到和招募活动
#社区tab签到和招募活动
CONFIG_LIST_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/all_backend_api"
,
"feed_request.yaml"
)
CONFIG_LIST_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/all_backend_api"
,
"feed_request.yaml"
)
CONFIG_LIST
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/test_backend_data/feed_data"
,
"config_list.yaml"
)
CONFIG_LIST
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/test_backend_data/feed_data"
,
"config_list.yaml"
)
#社区tabfeed流
#社区tabfeed流
COMMUNITY_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/all_backend_api"
,
"feed_request.yaml"
)
COMMUNITY_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/all_backend_api"
,
"feed_request.yaml"
)
COMMUNITY
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/test_backend_data/feed_data"
,
"community.yaml"
)
COMMUNITY
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/test_backend_data/feed_data"
,
"community.yaml"
)
#品类聚合页面标签和专场
#品类聚合页面标签和专场
POLYMER_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/all_backend_api"
,
"janus_request.yaml"
)
POLYMER_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/all_backend_api"
,
"janus_request.yaml"
)
POLYMER
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/test_backend_data/janus_data"
,
"polymer.yaml"
)
POLYMER
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/test_backend_data/janus_data"
,
"polymer.yaml"
)
THIRD_PHONE_LOGIN_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/all_backend_api"
,
"thirdphonelogin_request"
)
THIRD_PHONE_LOGIN_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/all_backend_api"
,
"thirdphonelogin_request"
)
THIRD_PHONE_LOGIN
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/test_backend_data/account_data"
,
"login_thirdphone.yaml"
)
THIRD_PHONE_LOGIN
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/test_backend_data/account_data"
,
"login_thirdphone.yaml"
)
#医生医院sug列表
#医生医院sug列表
KEYWORDTIP_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/all_backend_api"
,
"janus_request.yaml"
)
KEYWORDTIP_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/all_backend_api"
,
"janus_request.yaml"
)
KEYWORDTIP
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/test_backend_data/janus_data"
,
"keyword_tip.yaml"
)
KEYWORDTIP
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/test_backend_data/janus_data"
,
"keyword_tip.yaml"
)
#搜索首页-更美热门榜
#搜索首页-更美热门榜
HOT_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/all_backend_api"
,
"search_request.yaml"
)
HOT_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/all_backend_api"
,
"search_request.yaml"
)
HOT
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/test_backend_data/search_data"
,
"hot.yaml"
)
HOT
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/test_backend_data/search_data"
,
"hot.yaml"
)
#回答详情页点赞
#回答详情页点赞
VOTE
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/test_backend_data/answer_data"
,
"vote.yaml"
)
VOTE
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/test_backend_data/answer_data"
,
"vote.yaml"
)
#回答详情页取消点赞
#回答详情页取消点赞
CANCEL_VOTE
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/test_backend_data/answer_data"
,
"cancel_vote.yaml"
)
CANCEL_VOTE
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/test_backend_data/answer_data"
,
"cancel_vote.yaml"
)
#回答详情页- 一/二级评论
#回答详情页- 一/二级评论
QUESTION_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/all_backend_api"
,
"question_request.yaml"
)
QUESTION_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/all_backend_api"
,
"question_request.yaml"
)
REPLY_ANSWER
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/test_backend_data/question_data"
,
"reply_answer.yaml"
)
REPLY_ANSWER
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/test_backend_data/question_data"
,
"reply_answer.yaml"
)
#回答详情页
#回答详情页
DETAIL_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/all_backend_api"
,
"answer_request.yaml"
)
DETAIL_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/all_backend_api"
,
"answer_request.yaml"
)
DETAIL
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/test_backend_data/answer_data"
,
"detail.yaml"
)
DETAIL
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/test_backend_data/answer_data"
,
"detail.yaml"
)
#品类聚合页面医生tab列表
#品类聚合页面医生tab列表
HOSPITAL_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/all_backend_api"
,
"search_request.yaml"
)
HOSPITAL_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/all_backend_api"
,
"search_request.yaml"
)
HOSPITAL
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/test_backend_data/search_data"
,
"hospital.yaml"
)
HOSPITAL
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/test_backend_data/search_data"
,
"hospital.yaml"
)
#城市筛选器
#城市筛选器
FILTER_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/all_backend_api"
,
"filter_request.yaml"
)
FILTER_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/all_backend_api"
,
"filter_request.yaml"
)
FILTER
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/test_backend_data/filter_data"
,
"service_home_city_v2.yaml"
)
FILTER
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/test_backend_data/filter_data"
,
"service_home_city_v2.yaml"
)
#医生后台-全部私信列表
#医生后台-全部私信列表
CONVERSATION
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/test_doctor_data/web_data"
,
"conversation.yaml"
)
CONVERSATION
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/test_doctor_data/web_data"
,
"conversation.yaml"
)
#医生后台-未读私信列表
#医生后台-未读私信列表
CONVERSATIONUNREADLIST
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/test_doctor_data/web_data"
,
"conversation_unread_list.yaml"
)
CONVERSATIONUNREADLIST
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/test_doctor_data/web_data"
,
"conversation_unread_list.yaml"
)
#医生后台-发送商品按钮
#医生后台-发送商品按钮
SERVICE
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/test_doctor_data/web_data"
,
"service.yaml"
)
SERVICE
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/test_doctor_data/web_data"
,
"service.yaml"
)
#医生后台-发送案例
#医生后台-发送案例
CONVERSATIONDIARY
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/test_doctor_data/web_data"
,
"conversation_diary.yaml"
)
CONVERSATIONDIARY
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/test_doctor_data/web_data"
,
"conversation_diary.yaml"
)
#医生后台-发送优惠券
#医生后台-发送优惠券
CONVERSATIONCOUPON
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/test_doctor_data/web_data"
,
"conversation_coupon.yaml"
)
CONVERSATIONCOUPON
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/test_doctor_data/web_data"
,
"conversation_coupon.yaml"
)
#医生后台-发送私信
#医生后台-发送私信
CONVERSATIONUSERID
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/test_doctor_data/web_data"
,
"conversation_user_id.yaml"
)
CONVERSATIONUSERID
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/test_doctor_data/web_data"
,
"conversation_user_id.yaml"
)
#医生后台-服务资源
#医生后台-服务资源
ADTYPELIST
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/test_doctor_data/web_data"
,
"artemis_ad_type_list.yaml"
)
ADTYPELIST
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/test_doctor_data/web_data"
,
"artemis_ad_type_list.yaml"
)
#医生后台-我的购物车
#医生后台-我的购物车
ADADDSHOPPINGCARTINFO
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/test_doctor_data/web2_data"
,
"artemis_ad_add_shopping_cart_info.yaml"
)
ADADDSHOPPINGCARTINFO
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/test_doctor_data/web2_data"
,
"artemis_ad_add_shopping_cart_info.yaml"
)
#医生后台-我的服务订单
#医生后台-我的服务订单
ORDERLIST
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/test_doctor_data/web_data"
,
"artemis_order_list.yaml"
)
ORDERLIST
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/test_doctor_data/web_data"
,
"artemis_order_list.yaml"
)
#医生后台-我的服务订单-已上线订单
#医生后台-我的服务订单-已上线订单
ORDERIDDETAIL
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/test_doctor_data/web_data"
,
"artemis_order_id_detail.yaml"
)
ORDERIDDETAIL
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/test_doctor_data/web_data"
,
"artemis_order_id_detail.yaml"
)
#医生后台-我的服务订单-已购买订单
#医生后台-我的服务订单-已购买订单
VALUEORDERIDDETAIL
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/test_doctor_data/web2_data"
,
"artemis_add_value_order_id_detail.yaml"
)
VALUEORDERIDDETAIL
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/test_doctor_data/web2_data"
,
"artemis_add_value_order_id_detail.yaml"
)
#医生后台-点点通商品-概览
#医生后台-点点通商品-概览
CPCHOMEPAGE
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/test_doctor_data/web_data"
,
"cpc_homepage.yaml"
)
CPCHOMEPAGE
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/test_doctor_data/web_data"
,
"cpc_homepage.yaml"
)
#更美次卡橱窗组件商品
#更美次卡橱窗组件商品
VISUAL_BEAUTY_CARD_SERVICES_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/all_backend_api"
,
"visual_beauty_card.yaml"
)
VISUAL_BEAUTY_CARD_SERVICES_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/all_backend_api"
,
"visual_beauty_card.yaml"
)
VISUAL_BEAUTY_CARD_SERVICES
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/test_backend_data/visual_beauty_card_data"
,
"visual_beauty_card_services.yaml"
)
VISUAL_BEAUTY_CARD_SERVICES
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/test_backend_data/visual_beauty_card_data"
,
"visual_beauty_card_services.yaml"
)
#次卡商品列表组件筛选器
#次卡商品列表组件筛选器
BEAUTYCARD_FILTERS_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/all_backend_api"
,
"visual_beauty_card.yaml"
)
BEAUTYCARD_FILTERS_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/all_backend_api"
,
"visual_beauty_card.yaml"
)
BEAUTYCARD_FILTERS
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/test_backend_data/visual_beauty_card_data"
,
"beautycard_filters.yaml"
)
BEAUTYCARD_FILTERS
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/test_backend_data/visual_beauty_card_data"
,
"beautycard_filters.yaml"
)
#次卡商品列表组件商品
#次卡商品列表组件商品
BEAUTYCARD_SKUS_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/all_backend_api"
,
"visual_beauty_card.yaml"
)
BEAUTYCARD_SKUS_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/all_backend_api"
,
"visual_beauty_card.yaml"
)
BEAUTYCARD_SKUS
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/test_backend_data/visual_beauty_card_data"
,
"beautycard_skus.yaml"
)
BEAUTYCARD_SKUS
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/test_backend_data/visual_beauty_card_data"
,
"beautycard_skus.yaml"
)
#百科详情页-项目聚合百科
#百科详情页-项目聚合百科
SUBWIKI_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/all_backend_api"
,
"hybrid_request.yaml"
)
SUBWIKI_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/all_backend_api"
,
"hybrid_request.yaml"
)
SUBWIKI
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/test_backend_data/hybrid_data"
,
"sub_wiki.yaml"
)
SUBWIKI
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/test_backend_data/hybrid_data"
,
"sub_wiki.yaml"
)
#百科详情页-项目百科
#百科详情页-项目百科
BASEWIKI_ITEM_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/all_backend_api"
,
"hybrid_request.yaml"
)
BASEWIKI_ITEM_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/all_backend_api"
,
"hybrid_request.yaml"
)
BASEWIKI_ITEM
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/test_backend_data/hybrid_data"
,
"basewiki_item.yaml"
)
BASEWIKI_ITEM
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/test_backend_data/hybrid_data"
,
"basewiki_item.yaml"
)
#百科详情页-药品(仪器、材料)百科
#百科详情页-药品(仪器、材料)百科
BASEWIKI_PRODUCT_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/all_backend_api"
,
"hybrid_request.yaml"
)
BASEWIKI_PRODUCT_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/all_backend_api"
,
"hybrid_request.yaml"
)
BASEWIKI_PRODUCT
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/test_backend_data/hybrid_data"
,
"basewiki_product.yaml"
)
BASEWIKI_PRODUCT
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/test_backend_data/hybrid_data"
,
"basewiki_product.yaml"
)
#百科详情页-品牌百科
#百科详情页-品牌百科
BRAND_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/all_backend_api"
,
"hybrid_request.yaml"
)
BRAND_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/all_backend_api"
,
"hybrid_request.yaml"
)
BRAND
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/test_backend_data/hybrid_data"
,
"brand.yaml"
)
BRAND
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/test_backend_data/hybrid_data"
,
"brand.yaml"
)
#普通美购提交订单页
#普通美购提交订单页
PREVIEW_V1
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/all_backend_api"
,
"settlement_request.yaml"
)
PREVIEW_V1
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/all_backend_api"
,
"settlement_request.yaml"
)
WECHAT_PAY
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/all_backend_api"
,
"pay_request.yaml"
)
WECHAT_PAY
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/all_backend_api"
,
"pay_request.yaml"
)
PREVIEW
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/test_backend_data/settlement_data"
,
"preview_v1.yaml"
)
PREVIEW
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/test_backend_data/settlement_data"
,
"preview_v1.yaml"
)
PAY_V1
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/test_backend_data/settlement_data"
,
"pay_v1.yaml"
)
PAY_V1
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/test_backend_data/settlement_data"
,
"pay_v1.yaml"
)
CREATE
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/test_backend_data/settlement_data"
,
"create_v1.yaml"
)
CREATE
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/test_backend_data/settlement_data"
,
"create_v1.yaml"
)
PAY
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/test_backend_data/settlement_data"
,
"pay.yaml"
)
PAY
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/test_backend_data/settlement_data"
,
"pay.yaml"
)
SETTLEMENTDETAIL
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/test_backend_data/settlement_data"
,
"settlement_detail.yaml"
)
SETTLEMENTDETAIL
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/test_backend_data/settlement_data"
,
"settlement_detail.yaml"
)
WECHARTPAYDATA
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/test_backend_data/pay_data"
,
"wechat_prepay.yaml"
)
WECHARTPAYDATA
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/test_backend_data/pay_data"
,
"wechat_prepay.yaml"
)
ALIPAYDATA
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/test_backend_data/pay_data"
,
"alipay_prepay.yaml"
)
ALIPAYDATA
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/test_backend_data/pay_data"
,
"alipay_prepay.yaml"
)
JUMPDATA
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/test_backend_data/pay_data"
,
"jump.yaml"
)
JUMPDATA
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/test_backend_data/pay_data"
,
"jump.yaml"
)
SETTLEMENTDELETE
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/test_backend_data/settlement_data"
,
"settlement_delete.yaml"
)
SETTLEMENTDELETE
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/test_backend_data/settlement_data"
,
"settlement_delete.yaml"
)
#OM后台-登录
#OM后台-登录
OMLOGIN_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/all_om_api"
,
"login_request.yaml"
)
OMLOGIN_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/all_om_api"
,
"login_request.yaml"
)
OMLOGIN
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/test_om_data/om_login_data"
,
"om_login.yaml"
)
OMLOGIN
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/test_om_data/om_login_data"
,
"om_login.yaml"
)
#更美次卡-获取已添加页面次卡spu/sku列表
#更美次卡-获取已添加页面次卡spu/sku列表
GET_RELATED_BC_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/all_om_api"
,
"beautycard_request.yaml"
)
GET_RELATED_BC_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/all_om_api"
,
"beautycard_request.yaml"
)
GET_RELATED_BC
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/test_om_data/beautycard_data"
,
"get_related_bc.yaml"
)
GET_RELATED_BC
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/test_om_data/beautycard_data"
,
"get_related_bc.yaml"
)
#更美次卡-删除/批量删除已添加页面次卡
#更美次卡-删除/批量删除已添加页面次卡
DELETE_RELATED_BC_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/all_om_api"
,
"beautycard_request.yaml"
)
DELETE_RELATED_BC_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/all_om_api"
,
"beautycard_request.yaml"
)
DELETE_RELATED_BC
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/test_om_data/beautycard_data"
,
"delete_related_bc.yaml"
)
DELETE_RELATED_BC
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/test_om_data/beautycard_data"
,
"delete_related_bc.yaml"
)
#更美次卡-已添加页面全部导出
#更美次卡-已添加页面全部导出
EXPORT_RELATED_BC_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/all_om_api"
,
"beautycard_request.yaml"
)
EXPORT_RELATED_BC_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/all_om_api"
,
"beautycard_request.yaml"
)
EXPORT_RELATED_BC
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/test_om_data/beautycard_data"
,
"export_related_bc.yaml"
)
EXPORT_RELATED_BC
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/test_om_data/beautycard_data"
,
"export_related_bc.yaml"
)
#更美次卡-已添加页面全部导出
#更美次卡-已添加页面全部导出
UPDATE_BC_RANK_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/all_om_api"
,
"beautycard_request.yaml"
)
UPDATE_BC_RANK_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/all_om_api"
,
"beautycard_request.yaml"
)
UPDATE_BC_RANK
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/test_om_data/beautycard_data"
,
"update_bc_rank.yaml"
)
UPDATE_BC_RANK
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/test_om_data/beautycard_data"
,
"update_bc_rank.yaml"
)
#更美次卡-按次卡sku_id导入,导入校验
#更美次卡-按次卡sku_id导入,导入校验
CHECK_SKU_IDS_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/all_om_api"
,
"beautycard_request.yaml"
)
CHECK_SKU_IDS_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/all_om_api"
,
"beautycard_request.yaml"
)
CHECK_SKU_IDS
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/test_om_data/beautycard_data"
,
"check_sku_ids.yaml"
)
CHECK_SKU_IDS
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/test_om_data/beautycard_data"
,
"check_sku_ids.yaml"
)
#更美次卡-按次卡spu_id导入,导入校验
#更美次卡-按次卡spu_id导入,导入校验
CHECK_SPU_IDS_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/all_om_api"
,
"beautycard_request.yaml"
)
CHECK_SPU_IDS_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/all_om_api"
,
"beautycard_request.yaml"
)
CHECK_SPU_IDS
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/test_om_data/beautycard_data"
,
"check_spu_ids.yaml"
)
CHECK_SPU_IDS
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/test_om_data/beautycard_data"
,
"check_spu_ids.yaml"
)
#次卡商详页
#次卡商详页
BEAUTY_CARD_DETAIL_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/all_backend_api"
,
"janus_request.yaml"
)
BEAUTY_CARD_DETAIL_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/all_backend_api"
,
"janus_request.yaml"
)
BEAUTY_CARD_DETAIL
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/test_backend_data/janus_data"
,
"beauty_card_detail.yaml"
)
BEAUTY_CARD_DETAIL
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/test_backend_data/janus_data"
,
"beauty_card_detail.yaml"
)
#次卡商详页-适应机构列表
#次卡商详页-适应机构列表
SERVICE_HOSPITAL_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/all_backend_api"
,
"janus_request.yaml"
)
SERVICE_HOSPITAL_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/all_backend_api"
,
"janus_request.yaml"
)
SERVICE_HOSPITAL
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/test_backend_data/janus_data"
,
"service_hospital.yaml"
)
SERVICE_HOSPITAL
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/test_backend_data/janus_data"
,
"service_hospital.yaml"
)
#免费招募背景图片
#免费招募背景图片
FREE_RECRUIT_BANNER_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/all_backend_api"
,
"feed_request.yaml"
)
FREE_RECRUIT_BANNER_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/all_backend_api"
,
"feed_request.yaml"
)
FREE_RECRUIT_BANNER
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/test_backend_data/feed_data"
,
"free_recruit_banner.yaml"
)
FREE_RECRUIT_BANNER
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/test_backend_data/feed_data"
,
"free_recruit_banner.yaml"
)
#免费招募活动列表
#免费招募活动列表
FREE_RECRUIT_LIST_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/all_backend_api"
,
"feed_request.yaml"
)
FREE_RECRUIT_LIST_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/all_backend_api"
,
"feed_request.yaml"
)
FREE_RECRUIT_LIST
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/test_backend_data/feed_data"
,
"free_recruit_list.yaml"
)
FREE_RECRUIT_LIST
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/test_backend_data/feed_data"
,
"free_recruit_list.yaml"
)
#直播-点击【设置封面】
#直播-点击【设置封面】
PAGE_RULES_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/all_backend_api"
,
"janus_request.yaml"
)
PAGE_RULES_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/all_backend_api"
,
"janus_request.yaml"
)
PAGE_RULES
=
os
.
path
.
join
(
BASE_DIR
,
"
backend_auto
/test_backend_data/janus_data"
,
"page_rules.yaml"
)
PAGE_RULES
=
os
.
path
.
join
(
BASE_DIR
,
"
on_line_product
/test_backend_data/janus_data"
,
"page_rules.yaml"
)
if
__name__
==
'__main__'
:
if
__name__
==
'__main__'
:
print
(
"=========="
,
LIVEYAML_CONFIG
)
print
(
"=========="
,
LIVEYAML_CONFIG
)
test_backend_case/answer_case/test_cancel_vote.py
deleted
100644 → 0
View file @
eab09f01
import
pytest
from
ids_list
import
get_ids
import
path_setting
from
in_common.base_request
import
BaseRequest
from
all_backend_api.answer_request
import
answer_request
class
TestCancelVote
:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
CANCEL_VOTE
)
cancelvote_case
,
cancelvote_data
=
get_ids
(
data
,
"cancel_vote"
)
@pytest.mark.parametrize
(
"param"
,
cancelvote_data
,
ids
=
cancelvote_case
)
def
test_cancel_vote
(
self
,
param
):
r
=
answer_request
()
.
cancel_vote
(
param
[
"answer_id"
])
if
r
[
"error"
]
==
1
:
assert
r
[
"message"
]
==
param
[
"assert"
]
test_backend_case/answer_case/test_vote.py
View file @
70ce86db
...
@@ -9,6 +9,7 @@ class TestVote:
...
@@ -9,6 +9,7 @@ class TestVote:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
VOTE
)
data
=
BaseRequest
()
.
api_load
(
path_setting
.
VOTE
)
vote_case
,
vote_data
=
get_ids
(
data
,
"vote"
)
vote_case
,
vote_data
=
get_ids
(
data
,
"vote"
)
@pytest.mark.skip
@pytest.mark.parametrize
(
"param"
,
vote_data
,
ids
=
vote_case
)
@pytest.mark.parametrize
(
"param"
,
vote_data
,
ids
=
vote_case
)
def
test_vote
(
self
,
param
):
def
test_vote
(
self
,
param
):
r
=
answer_request
()
.
vote
(
param
[
"answer_id"
])
r
=
answer_request
()
.
vote
(
param
[
"answer_id"
])
...
...
test_backend_case/common_case/test_reply.py
View file @
70ce86db
...
@@ -13,22 +13,13 @@ class TestReply:
...
@@ -13,22 +13,13 @@ class TestReply:
@pytest.mark.parametrize
(
"param"
,
diary_common_reply_data
,
ids
=
diary_common_reply_case
)
@pytest.mark.parametrize
(
"param"
,
diary_common_reply_data
,
ids
=
diary_common_reply_case
)
def
test_reply
(
self
,
param
):
def
test_reply
(
self
,
param
):
# 日记贴的评论列表
# 日记贴的评论列表
r
=
common_request
()
.
diary_common_reply
(
param
[
"id"
],
param
[
"type"
])
r
=
common_request
()
.
diary_common_reply
(
param
[
"id"
],
param
[
"type"
]
,
param
[
"data_type"
],
param
[
"offset"
],
param
[
"start_num"
]
)
# print(r)
# print(r)
if
r
[
"error"
]
==
0
:
if
r
[
"error"
]
==
0
:
assert
r
[
"error"
]
==
param
[
"assert1"
]
assert
r
[
"error"
]
==
param
[
"assert1"
]
# 先判断有没有评论,然后判断里面需要的那些字段,如点赞字段,评论总数等,不传值,传空值
# 先判断有没有评论,然后判断里面需要的那些字段,如点赞字段,评论总数等,不传值,传空值
if
r
[
"data"
][
"reply_data"
]:
if
r
[
"data"
][
"reply_data"
]:
assert
r
[
"data"
][
"reply_data"
][
0
][
"user_id"
]
is
not
None
and
r
[
"data"
][
"reply_data"
][
0
][
"user_id"
]
is
not
""
# 用户id
assert
r
[
"data"
][
"reply_data"
][
0
][
"user"
][
"user_portrait"
]
is
not
None
and
r
[
"data"
][
"reply_data"
][
0
][
"user"
][
"user_portrait"
]
is
not
""
# 用户头像
assert
r
[
"data"
][
"reply_data"
][
0
][
"user_portrait"
]
is
not
None
and
r
[
"data"
][
"reply_data"
][
0
][
"user_portrait"
]
is
not
""
# 用户头像
assert
r
[
"data"
][
"reply_data"
][
0
][
"gm_url"
]
is
not
None
and
r
[
"data"
][
"reply_data"
][
0
][
"gm_url"
]
is
not
""
# 头像跳转链接
assert
r
[
"data"
][
"reply_data"
][
0
][
"user_nickname"
]
is
not
None
and
r
[
"data"
][
"reply_data"
][
0
][
"user_nickname"
]
is
not
""
# 用户名
assert
r
[
"data"
][
"reply_data"
][
0
][
"content"
]
is
not
None
and
r
[
"data"
][
"reply_data"
][
0
][
"content"
]
is
not
""
# 评论内容
assert
r
[
"data"
][
"reply_data"
][
0
][
"reply_count"
]
is
not
None
and
r
[
"data"
][
"reply_data"
][
0
][
"reply_count"
]
is
not
""
# 评论总数
assert
r
[
"data"
][
"reply_data"
][
0
][
"reply_id"
]
is
not
None
and
r
[
"data"
][
"reply_data"
][
0
][
"reply_id"
]
is
not
""
# 评论id
assert
r
[
"data"
][
"reply_data"
][
0
][
"is_voted"
]
is
not
None
and
r
[
"data"
][
"reply_data"
][
0
][
"is_voted"
]
is
not
""
# 是否点赞
assert
r
[
"data"
][
"reply_data"
][
0
][
"_type"
]
==
param
[
"type"
]
# 校验评论列表返回类型
...
...
test_backend_case/common_case/test_reply_sub_reply.py
View file @
70ce86db
...
@@ -12,21 +12,10 @@ class TestRrplySubReply:
...
@@ -12,21 +12,10 @@ class TestRrplySubReply:
@pytest.mark.parametrize
(
"param"
,
topic_sub_common_data
,
ids
=
topic_sub_common_case
)
@pytest.mark.parametrize
(
"param"
,
topic_sub_common_data
,
ids
=
topic_sub_common_case
)
def
test_reply_sub_reply
(
self
,
param
):
def
test_reply_sub_reply
(
self
,
param
):
# print(2)
r
=
common_request
()
.
topic_sub_common
(
param
[
"id"
],
param
[
"type"
],
param
[
"reply_id"
],
param
[
"start_num"
],
param
[
"offset"
])
r
=
common_request
()
.
topic_sub_common
(
param
[
"id"
],
param
[
"type"
],
param
[
"reply_id"
])
# print(r)
if
r
[
"error"
]
==
0
:
if
r
[
"error"
]
==
0
:
assert
r
[
"error"
]
==
param
[
"assert1"
]
assert
r
[
"error"
]
==
param
[
"assert1"
]
# 先判断有没有评论,然后判断里面需要的那些字段,如点赞字段,评论总数等,不传值,传空值
if
r
[
"data"
]:
assert
r
[
"data"
][
0
][
"at_user_id"
]
is
not
None
and
r
[
"data"
][
0
][
"at_user_id"
]
is
not
""
# 用户id
assert
r
[
"data"
][
0
][
"comment_user_gm_url"
]
is
not
None
and
r
[
"data"
][
0
][
"comment_user_gm_url"
]
is
not
""
# 点击评论跳转链接
assert
r
[
"data"
][
0
][
"at_user_gm_url"
]
is
not
None
and
r
[
"data"
][
0
][
"at_user_gm_url"
]
is
not
""
# 用户名跳转链接
assert
r
[
"data"
][
0
][
"nickname"
]
is
not
None
and
r
[
"data"
][
0
][
"nickname"
]
is
not
""
# 用户名
assert
r
[
"data"
][
0
][
"content"
]
is
not
None
and
r
[
"data"
][
0
][
"content"
]
is
not
""
# 评论内容
assert
r
[
"data"
][
0
][
"comment_user_id"
]
is
not
None
and
r
[
"data"
][
0
][
"comment_user_id"
]
is
not
""
# 评论人
assert
r
[
"data"
][
0
][
"comment_id"
]
is
not
None
and
r
[
"data"
][
0
][
"comment_id"
]
is
not
""
# 评论id
assert
r
[
"data"
][
"reply_data"
][
0
][
"_type"
]
==
param
[
"type"
]
# 校验评论列表返回类型
...
...
test_backend_case/diary_case/test_favor.py
deleted
100644 → 0
View file @
eab09f01
import
pytest
from
ids_list
import
get_ids
import
path_setting
from
in_common.base_request
import
BaseRequest
from
all_backend_api.diary_request
import
diary_request
class
TestFavor
:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
DIARY_FAVOR
)
diary_favor_case
,
diary_favor_data
=
get_ids
(
data
,
"diary_favor"
)
@pytest.mark.parametrize
(
"param"
,
diary_favor_data
,
ids
=
diary_favor_case
)
def
test_favor
(
self
,
param
):
r
=
diary_request
()
.
diary_isfavor
()
# print(r)
if
r
[
"error"
]
==
0
:
assert
r
[
"message"
]
==
param
[
"assert"
]
if
r
[
"error"
]
==
1
:
assert
r
[
"message"
]
==
param
[
"assert2"
]
r
=
diary_request
()
.
diary_cancelfavor
()
# print(r)
if
r
[
"error"
]
==
0
:
assert
r
[
"message"
]
==
param
[
"assert3"
]
if
r
[
"error"
]
==
1
:
assert
r
[
"message"
]
==
param
[
"assert2"
]
test_backend_case/diary_case/test_operation.py
View file @
70ce86db
...
@@ -11,9 +11,9 @@ class TestDiaryOperation:
...
@@ -11,9 +11,9 @@ class TestDiaryOperation:
diary_operation_case
,
diary_operation_data
=
get_ids
(
data
,
"diary_operation"
)
diary_operation_case
,
diary_operation_data
=
get_ids
(
data
,
"diary_operation"
)
@pytest.mark.parametrize
(
"param"
,
diary_operation_data
,
ids
=
diary_operation_case
)
@pytest.mark.parametrize
(
"param"
,
diary_operation_data
,
ids
=
diary_operation_case
)
def
test_diary_operation
(
self
,
param
):
def
test_diary_operation
(
self
,
param
):
r
=
diary_request
()
.
diary_operation
(
param
[
"
diary_id"
],
param
[
"title"
],
param
[
"operation_timestamp"
],
param
[
"doctor_name"
],
param
[
"hospital_name
"
])
r
=
diary_request
()
.
diary_operation
(
param
[
"
start_num"
],
param
[
"count
"
])
result
=
diary_request
()
.
diary_additional_info
()
# result = diary_request().diary_operation
()
if
r
esult
[
"error"
]
==
1
:
if
r
[
"error"
]
==
1
:
assert
r
[
"message"
]
==
param
[
"assert"
]
assert
r
[
"message"
]
==
param
[
"assert"
]
# if r["error"] == 1:
# if r["error"] == 1:
# assert r["message"] ==param["assert2"]
# assert r["message"] ==param["assert2"]
...
...
test_backend_case/diary_case/test_pre_create_topic.py
0 → 100644
View file @
70ce86db
import
pytest
from
ids_list
import
get_ids
import
path_setting
from
in_common.base_request
import
BaseRequest
from
all_backend_api.diary_request
import
diary_request
class
TestDiaryPreCreateTop
:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
DIARY_PRE_CREATE_TOPIC_DATE
)
diary_pre_create_topic_case
,
diary_pre_create_topic_data
=
get_ids
(
data
,
"pre_create_topic"
)
@pytest.mark.parametrize
(
"param"
,
diary_pre_create_topic_data
,
ids
=
diary_pre_create_topic_case
)
def
test_diary_pre_create_topic
(
self
,
param
):
r
=
diary_request
()
.
diary_pre_create_topic
(
param
[
"diary_id"
])
# result = diary_request().diary_operation()
if
r
[
"error"
]
==
1
:
assert
r
[
"message"
]
==
param
[
"assert"
]
# if r["error"] == 1:
# assert r["message"] ==param["assert2"]
#
test_backend_case/diary_case/test_service.py
View file @
70ce86db
...
@@ -7,34 +7,18 @@ from all_backend_api.diary_request import diary_request
...
@@ -7,34 +7,18 @@ from all_backend_api.diary_request import diary_request
class
TestDiaryService
:
class
TestDiaryService
:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
DIARY_
DATA
)
data
=
BaseRequest
()
.
api_load
(
path_setting
.
DIARY_
SERVICE
)
diary_
data_case
,
diary_data_data
=
get_ids
(
data
,
"diary_data
"
)
diary_
service_case
,
diary_service_data
=
get_ids
(
data
,
"diary_service
"
)
@pytest.mark.parametrize
(
"param"
,
diary_
data_data
,
ids
=
diary_data
_case
)
@pytest.mark.parametrize
(
"param"
,
diary_
service_data
,
ids
=
diary_service
_case
)
def
test_diary_service
(
self
,
param
):
def
test_diary_service
(
self
,
param
):
# print(2)
# print(2)
r
=
diary_request
()
.
diary_
data
(
param
[
"current_city_id"
],
param
[
"diary_referrer"
],
param
[
"sort"
],
param
[
"count"
],
param
[
"start_num
"
])
r
=
diary_request
()
.
diary_
service
(
param
[
"diary_id"
],
param
[
"service_id
"
])
# print(r)
# print(r)
if
r
[
"error"
]
==
0
:
if
r
[
"error"
]
==
0
:
assert
r
[
"error"
]
==
param
[
"assert"
]
assert
r
[
"error"
]
==
param
[
"assert"
]
# 先判断有没有日记,然后判断日记本里面需要的那些字段,如点赞字段,日记总数等,不传值,传空值
# 先判断有没有日记,然后判断日记本里面需要的那些字段,如点赞字段,日记总数等,不传值,传空值
if
r
[
"data"
]:
assert
r
[
"data"
][
0
][
"post_date"
]
is
not
None
and
r
[
"data"
][
0
][
"post_date"
]
is
not
""
#c创建时间
assert
r
[
"data"
][
0
][
"diary_num"
]
is
not
None
and
r
[
"data"
][
0
][
"diary_num"
]
is
not
""
#日记总数
assert
r
[
"data"
][
0
][
"view_count"
]
is
not
None
and
r
[
"data"
][
0
][
"view_count"
]
is
not
""
#浏览次数
assert
r
[
"data"
][
0
][
"is_liked"
]
is
not
None
and
r
[
"data"
][
0
][
"is_liked"
]
is
not
""
#是否点赞
assert
r
[
"data"
][
0
][
"operation_day"
]
is
not
None
and
r
[
"data"
][
0
][
"operation_day"
]
is
not
""
#术后多少天
assert
r
[
"data"
][
0
][
"vote_count"
]
is
not
None
and
r
[
"data"
][
0
][
"vote_count"
]
is
not
""
#点赞总数
assert
r
[
"data"
][
0
][
"reply_count"
]
is
not
None
and
r
[
"data"
][
0
][
"reply_count"
]
is
not
""
#评论总数
assert
r
[
"data"
][
0
][
"id"
]
is
not
None
and
r
[
"data"
][
0
][
"id"
]
is
not
""
#日记贴id
# 判断评论列表里面的用户信息是否为空,先判断有没有评论
if
r
[
"data"
][
0
][
"comments"
]:
assert
r
[
"data"
][
0
][
"comments"
][
0
][
"user_id"
]
is
not
None
and
r
[
"data"
][
0
][
"comments"
][
0
][
"user_id"
]
is
not
""
#用户id
assert
r
[
"data"
][
0
][
"comments"
][
0
][
"nick_name"
]
is
not
None
and
r
[
"data"
][
0
][
"comments"
][
0
][
"nick_name"
]
is
not
""
#用户名
assert
r
[
"data"
][
0
][
"comments"
][
0
][
"gm_url"
]
is
not
None
and
r
[
"data"
][
0
][
"comments"
][
0
][
"gm_url"
]
is
not
""
#点击头像跳转链接
# assert(r[""])
if
r
[
"error"
]
==
1
:
if
r
[
"error"
]
==
1
:
assert
r
[
"error"
]
==
param
[
"assert"
]
assert
r
[
"error"
]
==
param
[
"assert"
]
...
...
test_backend_case/diary_case/test_update.py
deleted
100644 → 0
View file @
eab09f01
import
pytest
from
ids_list
import
get_ids
import
path_setting
from
in_common.base_request
import
BaseRequest
from
all_backend_api.diary_request
import
diary_request
class
TestDiaryUpdate
:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
DIARY_UPDATE
)
diary_update_case
,
diary_update_data
=
get_ids
(
data
,
"diary_update"
)
@pytest.mark.parametrize
(
"param"
,
diary_update_data
,
ids
=
diary_update_case
)
def
test_diary_update
(
self
,
param
):
r
=
diary_request
()
.
diary_update
(
param
[
"topic_list"
])
# print(r)
# if r["error"] == 0:
# assert r["message"] == param["assert"]
if
r
[
"error"
]
==
1
:
assert
r
[
"message"
]
==
param
[
"assert"
]
# 收藏之后取消收藏
# r1 = diary_isfavor_request().diary_cancelfavor()
# if r["error"] == 0:
# assert r["error"] == param["assert"]
test_backend_case/eyelids_case/test_diary_cards.py
View file @
70ce86db
...
@@ -10,7 +10,7 @@ class TestDiaryCards:
...
@@ -10,7 +10,7 @@ class TestDiaryCards:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
EYELIDS_DIARY_CARDS_DATA
)
data
=
BaseRequest
()
.
api_load
(
path_setting
.
EYELIDS_DIARY_CARDS_DATA
)
eyelidsDiaryCards_case
,
eyelidsDiaryCards_data
=
get_ids
(
data
,
"diary_cards"
)
eyelidsDiaryCards_case
,
eyelidsDiaryCards_data
=
get_ids
(
data
,
"diary_cards"
)
@pytest.mark.skip
(
"跳过目前测试环境没有数据-------------------"
)
#
@pytest.mark.skip("跳过目前测试环境没有数据-------------------")
@pytest.mark.parametrize
(
"param"
,
eyelidsDiaryCards_data
,
ids
=
eyelidsDiaryCards_case
)
@pytest.mark.parametrize
(
"param"
,
eyelidsDiaryCards_data
,
ids
=
eyelidsDiaryCards_case
)
def
test_diary_cards
(
self
,
param
):
def
test_diary_cards
(
self
,
param
):
r
=
eyelids_request
()
.
diary_cards
(
param
[
"current_city_id"
],
param
[
"page"
],
param
[
"page_size"
],
param
[
"tag_names"
])
r
=
eyelids_request
()
.
diary_cards
(
param
[
"current_city_id"
],
param
[
"page"
],
param
[
"page_size"
],
param
[
"tag_names"
])
...
...
test_backend_case/face_case/test_plastic_feeds.py
View file @
70ce86db
...
@@ -10,7 +10,7 @@ class TestPlasticFeeds:
...
@@ -10,7 +10,7 @@ class TestPlasticFeeds:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
FACE_PLASTIC_FEEDS_DATA
)
data
=
BaseRequest
()
.
api_load
(
path_setting
.
FACE_PLASTIC_FEEDS_DATA
)
plasticfeeds_case
,
plasticfeeds_data
=
get_ids
(
data
,
"plastic_feeds"
)
plasticfeeds_case
,
plasticfeeds_data
=
get_ids
(
data
,
"plastic_feeds"
)
@pytest.mark.skip
(
"跳过,高版本会转化标签,测试环境策略没有数据,线上正常"
)
#
@pytest.mark.skip("跳过,高版本会转化标签,测试环境策略没有数据,线上正常")
@pytest.mark.parametrize
(
"param"
,
plasticfeeds_data
,
ids
=
plasticfeeds_case
)
@pytest.mark.parametrize
(
"param"
,
plasticfeeds_data
,
ids
=
plasticfeeds_case
)
def
test_plastic_feeds
(
self
,
param
):
def
test_plastic_feeds
(
self
,
param
):
r
=
face_request
()
.
plastic_feeds
(
param
[
"tag_id"
],
param
[
"face_id"
],
param
[
"tag_id_list"
],
param
[
"page_size"
],
param
[
"version"
])
r
=
face_request
()
.
plastic_feeds
(
param
[
"tag_id"
],
param
[
"face_id"
],
param
[
"tag_id_list"
],
param
[
"page_size"
],
param
[
"version"
])
...
...
test_backend_case/gmai_case/test_eyelids_plastic.py
deleted
100644 → 0
View file @
eab09f01
import
pytest
from
ids_list
import
get_ids
import
path_setting
from
in_common.base_request
import
BaseRequest
from
all_backend_api.gmai_request
import
gmai_request
# 模拟双眼皮效果
class
TestEyelidsPlastic
:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
GMAI_EYELIDS_PLASTIC_DATA
)
eyelidsplastic_case
,
eyelidsplastic_data
=
get_ids
(
data
,
"eyelids_plastic"
)
@pytest.mark.parametrize
(
"param"
,
eyelidsplastic_data
,
ids
=
eyelidsplastic_case
)
def
test_skinnewReport
(
self
,
param
):
r
=
gmai_request
()
.
eyelids_plastic
(
param
[
"version"
],
param
[
"image_url"
],
param
[
"style_id"
])
assert
r
[
"error"
]
==
0
print
(
"模拟双眼皮效果图片: "
,
r
[
"data"
][
"plastic_image_url"
])
\ No newline at end of file
test_backend_case/gmai_case/test_plastic_analysis_v2.py
deleted
100644 → 0
View file @
eab09f01
import
pytest
from
ids_list
import
get_ids
import
path_setting
from
in_common.base_request
import
BaseRequest
from
all_backend_api.gmai_request
import
gmai_request
# 3D变脸
class
TestPlasticnAnalysisV2
:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
GMAI_PLASTIC_ANALYSIS_V2_DATA
)
plasticanalysisv2_case
,
plasticanalysisv2_data
=
get_ids
(
data
,
"analysis_v2"
)
@pytest.mark.parametrize
(
"param"
,
plasticanalysisv2_data
,
ids
=
plasticanalysisv2_case
)
def
test_plastic_analysis_v3
(
self
,
param
):
r
=
gmai_request
()
.
plastic_analystic_v2
(
param
[
"device_id"
],
param
[
"image_url"
],
param
[
"landmark"
],
param
[
"cheek_style_classify_id"
])
if
r
[
"error"
]
==
0
:
faces
=
r
[
"data"
][
"faces"
]
assert
len
(
faces
)
>
0
,
f
'3D变脸没有返回风格脸,请查看 {len(faces)}'
# 分析信息,取默认第一条
card_info
=
faces
[
0
][
"card_info"
]
analyze
=
card_info
.
get
(
"analyze"
)
level
=
card_info
.
get
(
"level"
)
# content = card_info.get("content")
print
(
analyze
,
level
)
test_backend_case/gmai_case/test_plastic_analysis_v3.py
deleted
100644 → 0
View file @
eab09f01
import
pytest
from
ids_list
import
get_ids
import
path_setting
from
in_common.base_request
import
BaseRequest
from
all_backend_api.gmai_request
import
gmai_request
# AI测颜值,目前测试环境没有召回日记,先保证请求成功
class
TestPlasticnAnalysisV3
:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
GMAI_PLASTIC_ANALYSIS_V3_DATA
)
plasticanalysisv3_case
,
plasticanalysisv3_data
=
get_ids
(
data
,
"analysis_v3"
)
@pytest.mark.parametrize
(
"param"
,
plasticanalysisv3_data
,
ids
=
plasticanalysisv3_case
)
def
test_plastic_analysis_v3
(
self
,
param
):
r
=
gmai_request
()
.
plastic_analysis_v3
(
param
[
"device_id"
],
param
[
"image_url"
],
param
[
"landmark"
]
,
param
[
"cheek_style_classify_id"
])
assert
r
[
"error"
]
==
0
\ No newline at end of file
test_backend_case/gmai_case/test_simulate_analyze.py
deleted
100644 → 0
View file @
eab09f01
import
pytest
from
ids_list
import
get_ids
import
path_setting
from
in_common.base_request
import
BaseRequest
from
all_backend_api.gmai_request
import
gmai_request
# 模拟发型,眉毛,美瞳
class
TestSimulateAnalyze
:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
GMAI_SIMULATE_ANALYZE_DATA
)
simulateanalyze_case
,
simulateanalyze_data
=
get_ids
(
data
,
"simulate_analyze"
)
@pytest.mark.parametrize
(
"param"
,
simulateanalyze_data
,
ids
=
simulateanalyze_case
)
def
test_plastic_analysis_v3
(
self
,
param
):
r
=
gmai_request
()
.
simulate_analyze
(
param
[
"device_id"
],
param
[
"image_url"
],
param
[
"style_id"
]
,
param
[
"type_id"
])
assert
r
[
"error"
]
==
0
print
(
"效果图: "
,
r
[
"data"
][
"plastic_image_url"
])
\ No newline at end of file
test_backend_case/gmai_case/test_skin_newreport.py
deleted
100644 → 0
View file @
eab09f01
import
pytest
from
ids_list
import
get_ids
import
path_setting
from
in_common.base_request
import
BaseRequest
from
all_backend_api.gmai_request
import
gmai_request
# 测肤结果页
class
TestSkinNewReport
:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
GMAI_SKIN_NEWREPORT_DATA
)
skinnewReport_case
,
skinnewReport_data
=
get_ids
(
data
,
"skin_newReport"
)
@pytest.mark.parametrize
(
"param"
,
skinnewReport_data
,
ids
=
skinnewReport_case
)
def
test_skinnewReport
(
self
,
param
):
r
=
gmai_request
()
.
skin_newReport
(
param
[
"version"
],
param
[
"image_url"
])
if
r
[
"error"
]
==
0
:
data
=
r
.
get
(
"data"
)
# 大家都在买
packages
=
data
.
get
(
"packages"
)
assert
len
(
packages
)
==
6
# 皮肤检测结果
disadvantage_tabs
=
data
.
get
(
"disadvantage_tabs"
)
result_word
=
disadvantage_tabs
[
0
]
.
get
(
"result_word"
)
assert
result_word
==
"色素型黑眼圈"
test_backend_case/hospitals_case/test_detail.py
View file @
70ce86db
...
@@ -15,12 +15,7 @@ class TestDetail:
...
@@ -15,12 +15,7 @@ class TestDetail:
r
=
hospitals_request
()
.
detail
()
r
=
hospitals_request
()
.
detail
()
assert
r
[
"error"
]
==
param
[
"assert_error"
]
assert
r
[
"error"
]
==
param
[
"assert_error"
]
assert
r
[
"data"
][
"base_info"
][
"hospital_name"
]
==
param
[
"assert"
]
assert
r
[
"data"
][
"base_info"
][
"good_at"
][
0
]
==
param
[
"assert1"
]
assert
r
[
"data"
][
"base_info"
][
"hospital_type"
]
==
param
[
"assert2"
]
assert
r
[
"data"
][
"buy_related"
][
"gifts"
][
0
][
"gift_id"
]
==
param
[
"assert3"
]
assert
r
[
"data"
][
"tab"
]
==
param
[
"assert4"
]
assert
r
[
"data"
][
"image_header_area"
][
"hospital_images"
][
0
]
==
param
[
"assert5"
]
...
...
test_backend_case/hospitals_case/test_doctor.py
View file @
70ce86db
...
@@ -15,11 +15,6 @@ class TestDoctor:
...
@@ -15,11 +15,6 @@ class TestDoctor:
r
=
hospitals_request
()
.
doctor
()
r
=
hospitals_request
()
.
doctor
()
assert
r
[
"error"
]
==
param
[
"assert_error"
]
assert
r
[
"error"
]
==
param
[
"assert_error"
]
assert
r
[
"data"
][
0
][
"id"
]
==
param
[
"assert_id"
]
assert
r
[
"data"
][
0
][
"doctor_name"
]
==
param
[
"assert_name"
]
assert
r
[
"data"
][
0
][
"good_at"
][
0
]
==
param
[
"assert_good_at"
]
assert
r
[
"data"
][
0
][
"cases"
][
0
][
"name"
]
==
param
[
"assert_cases"
]
assert
r
[
"data"
][
0
][
"title"
]
==
param
[
"assert_title"
]
...
...
test_backend_case/hybrid_case/test_api_topic_vote.py
View file @
70ce86db
...
@@ -12,46 +12,13 @@ class TestDiaryVote:
...
@@ -12,46 +12,13 @@ class TestDiaryVote:
@pytest.mark.parametrize
(
"param"
,
diary_vote_data
,
ids
=
diary_vote_case
)
@pytest.mark.parametrize
(
"param"
,
diary_vote_data
,
ids
=
diary_vote_case
)
def
test_api_topic_vote
(
self
,
param
):
def
test_api_topic_vote
(
self
,
param
):
# print(111)
# print(diary_vote_case)
r
=
hybrid_api_topic_request
()
.
diary_detail
(
param
[
"topic_id"
])
r
=
hybrid_api_topic_request
()
.
diary_detail
(
param
[
"topic_id"
])
# print(r)
# 可以多加一个d代表详情页
if
r
[
"error"
]
==
0
:
assert
r
[
"error"
]
==
param
[
"assert1"
]
assert
r
[
"error"
]
==
param
[
"assert1"
]
# 如果没有点过赞,就先校验点赞之后再取消点赞。【最后保持取消点赞的状态】
if
not
r
[
"data"
][
"data"
][
"is_liked"
]:
# print(222)
vote
=
hybrid_api_topic_request
()
.
diary_vote
(
param
[
"id"
])
assert
vote
[
"error"
]
==
0
# 校验二次点赞无效
vote
=
hybrid_api_topic_request
()
.
diary_vote
(
param
[
"id"
])
assert
vote
[
"message"
]
==
param
[
"assert3"
]
assert
vote
[
"error"
]
==
1
# 取消点赞,回到取消点赞的状态
canclevote
=
hybrid_api_topic_request
()
.
diary_canclevote
(
param
[
"id"
])
assert
canclevote
[
"error"
]
==
0
else
:
# 如果是已经点过赞的状态就直接取消点赞
# print(111)
canclevote
=
hybrid_api_topic_request
()
.
diary_canclevote
(
param
[
"id"
])
assert
canclevote
[
"error"
]
==
0
# if r["error"] == 1:
# assert r["message"] ==param["assert2"]
# 收藏之后取消收藏
# r1 = diary_isfavor_request().diary_cancelfavor()
# if r["error"] == 0:
# assert r["error"] == param["assert"]
test_backend_case/hybrid_case/test_basewiki_item.py
deleted
100644 → 0
View file @
eab09f01
import
pytest
from
bs4
import
BeautifulSoup
import
path_setting
from
all_backend_api.hybrid_request
import
hybrid_request
from
ids_list
import
get_ids
from
in_common.base_request
import
BaseRequest
#百科详情页-项目百科,水光针
class
TestBaseWikiItem
:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
BASEWIKI_ITEM
)
basewiki_item_case
,
basewiki_item_data
=
get_ids
(
data
,
"basewiki_item"
)
@pytest.mark.parametrize
(
"param"
,
basewiki_item_data
,
ids
=
basewiki_item_case
)
def
test_basewiki_item
(
self
,
param
):
r
=
hybrid_request
()
.
basewiki_item
(
param
[
"version"
])
soup
=
BeautifulSoup
(
r
,
'lxml'
)
# html.parser是解析器,也可是lxml
assert
soup
.
title
.
string
==
param
[
"assert"
]
print
(
'进入项目百科-水光针的百科详情页'
)
\ No newline at end of file
test_backend_case/hybrid_case/test_basewiki_product.py
View file @
70ce86db
...
@@ -14,6 +14,6 @@ class TestBaseWikiProduct:
...
@@ -14,6 +14,6 @@ class TestBaseWikiProduct:
@pytest.mark.parametrize
(
"param"
,
basewiki_product_data
,
ids
=
basewiki_product_case
)
@pytest.mark.parametrize
(
"param"
,
basewiki_product_data
,
ids
=
basewiki_product_case
)
def
test_basewiki_product
(
self
,
param
):
def
test_basewiki_product
(
self
,
param
):
r
=
hybrid_request
()
.
basewiki_product
(
param
[
"version"
])
r
=
hybrid_request
()
.
basewiki_product
(
param
[
"version"
])
soup
=
BeautifulSoup
(
r
,
'
lxml
'
)
# html.parser是解析器,也可是lxml
soup
=
BeautifulSoup
(
r
,
'
html.parser
'
)
# html.parser是解析器,也可是lxml
assert
soup
.
title
.
string
==
param
[
"assert"
]
assert
soup
.
title
.
string
==
param
[
"assert"
]
print
(
'进入项目百科-菲洛嘉的百科详情页'
)
print
(
'进入项目百科-菲洛嘉的百科详情页'
)
\ No newline at end of file
test_backend_case/hybrid_case/test_brand.py
View file @
70ce86db
...
@@ -14,6 +14,6 @@ class TestBrand:
...
@@ -14,6 +14,6 @@ class TestBrand:
@pytest.mark.parametrize
(
"param"
,
brand_data
,
ids
=
brand_case
)
@pytest.mark.parametrize
(
"param"
,
brand_data
,
ids
=
brand_case
)
def
test_brand
(
self
,
param
):
def
test_brand
(
self
,
param
):
r
=
hybrid_request
()
.
brand
(
param
[
"version"
])
r
=
hybrid_request
()
.
brand
(
param
[
"version"
])
soup
=
BeautifulSoup
(
r
,
'
lxml
'
)
# html.parser是解析器,也可是lxml
soup
=
BeautifulSoup
(
r
,
'
html.parser
'
)
# html.parser是解析器,也可是lxml
assert
soup
.
title
.
string
==
param
[
"assert"
]
assert
soup
.
title
.
string
==
param
[
"assert"
]
print
(
'进入项目百科-得玛莎的百科详情页'
)
print
(
'进入项目百科-得玛莎的百科详情页'
)
\ No newline at end of file
test_backend_case/hybrid_case/test_diary_album.py
View file @
70ce86db
...
@@ -14,9 +14,8 @@ class TestDiaryAlbum:
...
@@ -14,9 +14,8 @@ class TestDiaryAlbum:
def
test_diary_album
(
self
,
param
):
def
test_diary_album
(
self
,
param
):
r
=
hybrid_diary_request
()
.
diary_album
()
r
=
hybrid_diary_request
()
.
diary_album
()
# print(r)
# print(r)
if
r
[
"error"
]
==
0
:
assert
r
[
"error"
]
==
param
[
"assert"
]
assert
r
[
"data"
][
2
][
"images"
][
0
][
"is_cover"
]
==
param
[
"assert"
]
assert
r
[
"data"
][
0
][
"images"
][
0
][
"is_cover"
]
==
param
[
"assert2"
]
...
...
test_backend_case/hybrid_case/test_sub_wiki.py
View file @
70ce86db
...
@@ -14,6 +14,6 @@ class TestSubWiki:
...
@@ -14,6 +14,6 @@ class TestSubWiki:
@pytest.mark.parametrize
(
"param"
,
subwiki_data
,
ids
=
subwiki_case
)
@pytest.mark.parametrize
(
"param"
,
subwiki_data
,
ids
=
subwiki_case
)
def
test_sub_wiki
(
self
,
param
):
def
test_sub_wiki
(
self
,
param
):
r
=
hybrid_request
()
.
sub_wiki
(
param
[
"version"
],
param
[
"current_city_id"
])
r
=
hybrid_request
()
.
sub_wiki
(
param
[
"version"
],
param
[
"current_city_id"
])
soup
=
BeautifulSoup
(
r
,
'
lxml
'
)
# html.parser是解析器,也可是lxml
soup
=
BeautifulSoup
(
r
,
'
html.parser
'
)
# html.parser是解析器,也可是lxml
assert
soup
.
title
.
string
==
param
[
"assert"
]
assert
soup
.
title
.
string
==
param
[
"assert"
]
print
(
'进入项目聚合百科-玻尿酸的百科详情页'
)
print
(
'进入项目聚合百科-玻尿酸的百科详情页'
)
\ No newline at end of file
test_backend_case/hybrid_get_gift_case/test_get_gift_data.py
deleted
100644 → 0
View file @
eab09f01
import
pytest
from
all_backend_api.hybrid_get_gift_request
import
hybrid_get_gift_request
from
ids_list
import
get_ids
import
path_setting
from
in_common.base_request
import
BaseRequest
class
TestGiftListData
:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
GET_GIFT_DATA
)
get_gift_data_case
,
get_gift_data_data
=
get_ids
(
data
,
"get_gift_data"
)
@pytest.mark.parametrize
(
"param"
,
get_gift_data_data
,
ids
=
get_gift_data_case
)
def
test_get_gift_data
(
self
,
param
):
r
=
hybrid_get_gift_request
()
.
get_gift_data
(
param
[
"gift_id"
])
if
r
[
"error"
]
==
1
:
assert
r
[
"message"
]
==
param
[
"assert_message"
]
test_backend_case/im_case/test_auto_msg.py
deleted
100644 → 0
View file @
eab09f01
import
pytest
from
ids_list
import
get_ids
import
path_setting
from
in_common.base_request
import
BaseRequest
from
all_backend_api.im_request
import
im_request
class
TestAutoMsg
:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
AUTO_MSG
)
automsg_case
,
automsg_data
=
get_ids
(
data
,
"auto_msg"
)
@pytest.mark.parametrize
(
"param"
,
automsg_data
,
ids
=
automsg_case
)
def
test_auto_msg
(
self
,
param
):
r
=
im_request
()
.
auto_msg
(
param
[
"trace_id"
],
param
[
"conversation_id"
])
if
r
[
"error"
]
==
0
:
assert
r
[
"data"
][
"send_result"
]
==
param
[
"assert"
]
test_backend_case/im_case/test_conversation_detail.py
View file @
70ce86db
...
@@ -13,7 +13,5 @@ class TestConversationDetail:
...
@@ -13,7 +13,5 @@ class TestConversationDetail:
@pytest.mark.parametrize
(
"param"
,
conversationdetail_data
,
ids
=
conversationdetail_case
)
@pytest.mark.parametrize
(
"param"
,
conversationdetail_data
,
ids
=
conversationdetail_case
)
def
test_conversation_detail
(
self
,
param
):
def
test_conversation_detail
(
self
,
param
):
r
=
im_request
()
.
conversation_detail
(
param
[
"current_city_id"
],
param
[
"begin_msg_id"
],
param
[
"conversation_type"
],
param
[
"end_msg_id"
],
param
[
"referrer"
])
r
=
im_request
()
.
conversation_detail
(
param
[
"current_city_id"
],
param
[
"begin_msg_id"
],
param
[
"conversation_type"
],
param
[
"end_msg_id"
],
param
[
"referrer"
])
if
r
[
"error"
]
==
0
:
assert
r
[
"error"
]
==
0
msg_list
=
r
.
get
(
"data"
)
.
get
(
"msg_list"
,[])
assert
len
(
msg_list
)
>
param
[
"assert"
]
test_backend_case/im_case/test_send_msg.py
deleted
100644 → 0
View file @
eab09f01
import
pytest
from
ids_list
import
get_ids
import
path_setting
from
in_common.base_request
import
BaseRequest
from
all_backend_api.im_request
import
im_request
class
TestSendMsg
:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
SEND_MSG
)
sendmsg_case
,
sendmsg_data
=
get_ids
(
data
,
"send_msg"
)
@pytest.mark.parametrize
(
"param"
,
sendmsg_data
,
ids
=
sendmsg_case
)
def
test_send_msg
(
self
,
param
):
r
=
im_request
()
.
send_msg
(
param
[
"conversation_id"
],
param
[
"is_system"
],
param
[
"referrer"
],
param
[
"referrer_id"
],
param
[
"msg_type"
],
param
[
"content"
],
param
[
"extra"
])
print
(
r
)
if
r
[
"error"
]
==
0
:
assert
r
[
"data"
][
"conversation_type"
]
==
param
[
"assert_conversation_type"
]
assert
r
[
"data"
][
"message_type"
]
==
param
[
"assert_message_type"
]
if
r
[
"error"
]
==
1
:
assert
r
[
"message"
]
==
param
[
"assert_message"
]
test_backend_case/janus_case/test_beauty_card_order_confirm.py
deleted
100644 → 0
View file @
eab09f01
import
pytest
from
all_backend_api.janus_request
import
janus_request
from
ids_list
import
get_ids
import
path_setting
from
in_common.base_request
import
BaseRequest
class
TestBeautyCardOrderConfirm
:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
BEAUTY_CARD_ORDER_CONFIRM
)
beauty_card_order_confirm_case
,
beauty_card_order_confirm_data
=
get_ids
(
data
,
"beauty_card_order_confirm"
)
@pytest.mark.parametrize
(
"param"
,
beauty_card_order_confirm_data
,
ids
=
beauty_card_order_confirm_case
)
def
test_beauty_card_order_confirm
(
self
,
param
):
r
=
janus_request
()
.
beauty_card_order_confirm
(
param
[
"sku_id"
],
param
[
"number"
],
param
[
"use_bc_coupon"
],
param
[
"bc_coupon_id"
])
if
r
[
"error"
]
==
0
:
assert
r
[
"error"
]
==
param
[
"assert_error"
]
test_backend_case/janus_case/test_beauty_card_order_detail_used.py
View file @
70ce86db
...
@@ -10,6 +10,7 @@ class TestBeautyCardOrderDetailUsed:
...
@@ -10,6 +10,7 @@ class TestBeautyCardOrderDetailUsed:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
BEAUTY_CARD_ORDER_DETAIL_DATA
)
data
=
BaseRequest
()
.
api_load
(
path_setting
.
BEAUTY_CARD_ORDER_DETAIL_DATA
)
beauty_card_order_detail_used_case
,
beauty_card_order_detail_used_data
=
get_ids
(
data
,
"beauty_card_order_detail_used"
)
beauty_card_order_detail_used_case
,
beauty_card_order_detail_used_data
=
get_ids
(
data
,
"beauty_card_order_detail_used"
)
@pytest.mark.skip
@pytest.mark.parametrize
(
"param"
,
beauty_card_order_detail_used_data
,
ids
=
beauty_card_order_detail_used_case
)
@pytest.mark.parametrize
(
"param"
,
beauty_card_order_detail_used_data
,
ids
=
beauty_card_order_detail_used_case
)
def
test_beauty_card_order_detail_used
(
self
,
param
):
def
test_beauty_card_order_detail_used
(
self
,
param
):
r
=
janus_request
()
.
beauty_card_order_detail
(
param
[
"order_id"
])
r
=
janus_request
()
.
beauty_card_order_detail
(
param
[
"order_id"
])
...
...
test_backend_case/janus_case/test_beauty_card_order_detail_using.py
View file @
70ce86db
...
@@ -10,6 +10,7 @@ class TestBeautyCardOrderDetailUsing:
...
@@ -10,6 +10,7 @@ class TestBeautyCardOrderDetailUsing:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
BEAUTY_CARD_ORDER_DETAIL_DATA
)
data
=
BaseRequest
()
.
api_load
(
path_setting
.
BEAUTY_CARD_ORDER_DETAIL_DATA
)
beauty_card_order_detail_using_case
,
beauty_card_order_detail_using_data
=
get_ids
(
data
,
"beauty_card_order_detail_using"
)
beauty_card_order_detail_using_case
,
beauty_card_order_detail_using_data
=
get_ids
(
data
,
"beauty_card_order_detail_using"
)
@pytest.mark.skip
@pytest.mark.parametrize
(
"param"
,
beauty_card_order_detail_using_data
,
ids
=
beauty_card_order_detail_using_case
)
@pytest.mark.parametrize
(
"param"
,
beauty_card_order_detail_using_data
,
ids
=
beauty_card_order_detail_using_case
)
def
test_beauty_card_order_detail_used
(
self
,
param
):
def
test_beauty_card_order_detail_used
(
self
,
param
):
r
=
janus_request
()
.
beauty_card_order_detail
(
param
[
"order_id"
])
r
=
janus_request
()
.
beauty_card_order_detail
(
param
[
"order_id"
])
...
...
test_backend_case/janus_case/test_beauty_card_order_detail_waituse.py
View file @
70ce86db
...
@@ -10,6 +10,7 @@ class TestBeautyCardOrderDetailWaitUse:
...
@@ -10,6 +10,7 @@ class TestBeautyCardOrderDetailWaitUse:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
BEAUTY_CARD_ORDER_DETAIL_DATA
)
data
=
BaseRequest
()
.
api_load
(
path_setting
.
BEAUTY_CARD_ORDER_DETAIL_DATA
)
beauty_card_order_detail_waituse_case
,
beauty_card_order_detail_waituse_data
=
get_ids
(
data
,
"beauty_card_order_detail_waituse"
)
beauty_card_order_detail_waituse_case
,
beauty_card_order_detail_waituse_data
=
get_ids
(
data
,
"beauty_card_order_detail_waituse"
)
@pytest.mark.skip
@pytest.mark.parametrize
(
"param"
,
beauty_card_order_detail_waituse_data
,
ids
=
beauty_card_order_detail_waituse_case
)
@pytest.mark.parametrize
(
"param"
,
beauty_card_order_detail_waituse_data
,
ids
=
beauty_card_order_detail_waituse_case
)
def
test_beauty_card_order_detail_used
(
self
,
param
):
def
test_beauty_card_order_detail_used
(
self
,
param
):
r
=
janus_request
()
.
beauty_card_order_detail
(
param
[
"order_id"
])
r
=
janus_request
()
.
beauty_card_order_detail
(
param
[
"order_id"
])
...
...
test_backend_case/janus_case/test_beauty_card_order_submit.py
View file @
70ce86db
...
@@ -10,6 +10,7 @@ class TestBeautyCardOrderSubmit:
...
@@ -10,6 +10,7 @@ class TestBeautyCardOrderSubmit:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
BEAUTY_CARD_ORDER_SUBMIT
)
data
=
BaseRequest
()
.
api_load
(
path_setting
.
BEAUTY_CARD_ORDER_SUBMIT
)
beauty_card_order_submit_case
,
beauty_card_order_submit_data
=
get_ids
(
data
,
"beauty_card_order_submit"
)
beauty_card_order_submit_case
,
beauty_card_order_submit_data
=
get_ids
(
data
,
"beauty_card_order_submit"
)
@pytest.mark.skip
@pytest.mark.parametrize
(
"param"
,
beauty_card_order_submit_data
,
ids
=
beauty_card_order_submit_case
)
@pytest.mark.parametrize
(
"param"
,
beauty_card_order_submit_data
,
ids
=
beauty_card_order_submit_case
)
def
test_beauty_card_order_submit
(
self
,
param
):
def
test_beauty_card_order_submit
(
self
,
param
):
r
=
janus_request
()
.
beauty_card_order_submit
(
param
[
"phone"
],
param
[
"sku_id"
],
param
[
"number"
],
r
=
janus_request
()
.
beauty_card_order_submit
(
param
[
"phone"
],
param
[
"sku_id"
],
param
[
"number"
],
...
...
test_backend_case/janus_case/test_beauty_card_payment_delete.py
View file @
70ce86db
...
@@ -10,6 +10,7 @@ class TestBeautyCardPaymentDelete:
...
@@ -10,6 +10,7 @@ class TestBeautyCardPaymentDelete:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
BEAUTY_CARD_PAYMENT_DELETE
)
data
=
BaseRequest
()
.
api_load
(
path_setting
.
BEAUTY_CARD_PAYMENT_DELETE
)
beauty_card_payment_delete_case
,
beauty_card_payment_delete_data
=
get_ids
(
data
,
"beauty_card_payment_delete"
)
beauty_card_payment_delete_case
,
beauty_card_payment_delete_data
=
get_ids
(
data
,
"beauty_card_payment_delete"
)
@pytest.mark.skip
@pytest.mark.parametrize
(
"param"
,
beauty_card_payment_delete_data
,
ids
=
beauty_card_payment_delete_case
)
@pytest.mark.parametrize
(
"param"
,
beauty_card_payment_delete_data
,
ids
=
beauty_card_payment_delete_case
)
def
test_beauty_card_payment_delete
(
self
,
param
):
def
test_beauty_card_payment_delete
(
self
,
param
):
payment
=
janus_request
()
.
beauty_card_order_submit
(
"12345678912"
,
"10176"
,
1
,
1
,
0
,
0
)
payment
=
janus_request
()
.
beauty_card_order_submit
(
"12345678912"
,
"10176"
,
1
,
1
,
0
,
0
)
...
...
test_backend_case/janus_case/test_beauty_card_payment_detail.py
View file @
70ce86db
...
@@ -10,6 +10,7 @@ class TestBeautyCardPaymentDetail:
...
@@ -10,6 +10,7 @@ class TestBeautyCardPaymentDetail:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
BEAUTY_CARD_PAYMENT_DETAIL
)
data
=
BaseRequest
()
.
api_load
(
path_setting
.
BEAUTY_CARD_PAYMENT_DETAIL
)
beauty_card_payment_detail_case
,
beauty_card_payment_detail_data
=
get_ids
(
data
,
"beauty_card_payment_detail"
)
beauty_card_payment_detail_case
,
beauty_card_payment_detail_data
=
get_ids
(
data
,
"beauty_card_payment_detail"
)
@pytest.mark.skip
@pytest.mark.parametrize
(
"param"
,
beauty_card_payment_detail_data
,
ids
=
beauty_card_payment_detail_case
)
@pytest.mark.parametrize
(
"param"
,
beauty_card_payment_detail_data
,
ids
=
beauty_card_payment_detail_case
)
def
test_beauty_card_payment_detail
(
self
,
param
):
def
test_beauty_card_payment_detail
(
self
,
param
):
payment
=
janus_request
()
.
beauty_card_order_submit
(
"12345678912"
,
"10176"
,
1
,
1
,
0
,
0
)
payment
=
janus_request
()
.
beauty_card_order_submit
(
"12345678912"
,
"10176"
,
1
,
1
,
0
,
0
)
...
...
test_backend_case/janus_case/test_beauty_card_payment_method.py
View file @
70ce86db
...
@@ -10,6 +10,7 @@ class TestBeautyCardPaymentMethod:
...
@@ -10,6 +10,7 @@ class TestBeautyCardPaymentMethod:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
BEAUTY_CARD_PAYMENT_METHOD
)
data
=
BaseRequest
()
.
api_load
(
path_setting
.
BEAUTY_CARD_PAYMENT_METHOD
)
beauty_card_payment_method_case
,
beauty_card_payment_method_data
=
get_ids
(
data
,
"beauty_card_payment_method"
)
beauty_card_payment_method_case
,
beauty_card_payment_method_data
=
get_ids
(
data
,
"beauty_card_payment_method"
)
@pytest.mark.skip
@pytest.mark.parametrize
(
"param"
,
beauty_card_payment_method_data
,
ids
=
beauty_card_payment_method_case
)
@pytest.mark.parametrize
(
"param"
,
beauty_card_payment_method_data
,
ids
=
beauty_card_payment_method_case
)
def
test_beauty_card_payment_method
(
self
,
param
):
def
test_beauty_card_payment_method
(
self
,
param
):
payment
=
janus_request
()
.
beauty_card_order_submit
(
"12345678912"
,
"10176"
,
1
,
1
,
0
,
0
)
payment
=
janus_request
()
.
beauty_card_order_submit
(
"12345678912"
,
"10176"
,
1
,
1
,
0
,
0
)
...
...
test_backend_case/janus_case/test_beauty_card_prepay_alipay.py
View file @
70ce86db
...
@@ -10,6 +10,7 @@ class TestBeautyCardPrepayAlipay:
...
@@ -10,6 +10,7 @@ class TestBeautyCardPrepayAlipay:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
BEAUTY_CARD_PREPAY_ALIPAY
)
data
=
BaseRequest
()
.
api_load
(
path_setting
.
BEAUTY_CARD_PREPAY_ALIPAY
)
beauty_card_prepay_alipay_case
,
beauty_card_prepay_alipay_data
=
get_ids
(
data
,
"beauty_card_prepay_alipay"
)
beauty_card_prepay_alipay_case
,
beauty_card_prepay_alipay_data
=
get_ids
(
data
,
"beauty_card_prepay_alipay"
)
@pytest.mark.skip
@pytest.mark.parametrize
(
"param"
,
beauty_card_prepay_alipay_data
,
ids
=
beauty_card_prepay_alipay_case
)
@pytest.mark.parametrize
(
"param"
,
beauty_card_prepay_alipay_data
,
ids
=
beauty_card_prepay_alipay_case
)
def
test_beauty_card_prepay_alipay
(
self
,
param
):
def
test_beauty_card_prepay_alipay
(
self
,
param
):
payment
=
janus_request
()
.
beauty_card_order_submit
(
"12345678912"
,
"10176"
,
1
,
1
,
0
,
0
)
payment
=
janus_request
()
.
beauty_card_order_submit
(
"12345678912"
,
"10176"
,
1
,
1
,
0
,
0
)
...
...
test_backend_case/janus_case/test_beauty_card_prepay_wechat.py
View file @
70ce86db
...
@@ -10,6 +10,7 @@ class TestBeautyCardPrepayWechat:
...
@@ -10,6 +10,7 @@ class TestBeautyCardPrepayWechat:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
BEAUTY_CARD_PREPAY_WECHAT
)
data
=
BaseRequest
()
.
api_load
(
path_setting
.
BEAUTY_CARD_PREPAY_WECHAT
)
beauty_card_prepay_wechat_case
,
beauty_card_prepay_wechat_data
=
get_ids
(
data
,
"beauty_card_prepay_wechat"
)
beauty_card_prepay_wechat_case
,
beauty_card_prepay_wechat_data
=
get_ids
(
data
,
"beauty_card_prepay_wechat"
)
@pytest.mark.skip
@pytest.mark.parametrize
(
"param"
,
beauty_card_prepay_wechat_data
,
ids
=
beauty_card_prepay_wechat_case
)
@pytest.mark.parametrize
(
"param"
,
beauty_card_prepay_wechat_data
,
ids
=
beauty_card_prepay_wechat_case
)
def
test_beauty_card_prepay_wechat
(
self
,
param
):
def
test_beauty_card_prepay_wechat
(
self
,
param
):
payment
=
janus_request
()
.
beauty_card_order_submit
(
"12345678912"
,
"10176"
,
1
,
1
,
0
,
0
)
payment
=
janus_request
()
.
beauty_card_order_submit
(
"12345678912"
,
"10176"
,
1
,
1
,
0
,
0
)
...
...
test_backend_case/janus_case/test_beauty_card_refund_info.py
View file @
70ce86db
...
@@ -10,6 +10,7 @@ class TestBeautyCardRefundInfo:
...
@@ -10,6 +10,7 @@ class TestBeautyCardRefundInfo:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
BEAUTY_CARD_REFUND_INFO
)
data
=
BaseRequest
()
.
api_load
(
path_setting
.
BEAUTY_CARD_REFUND_INFO
)
beauty_card_refund_info_case
,
beauty_card_refund_info_data
=
get_ids
(
data
,
"beauty_card_refund_info"
)
beauty_card_refund_info_case
,
beauty_card_refund_info_data
=
get_ids
(
data
,
"beauty_card_refund_info"
)
@pytest.mark.skip
@pytest.mark.parametrize
(
"param"
,
beauty_card_refund_info_data
,
ids
=
beauty_card_refund_info_case
)
@pytest.mark.parametrize
(
"param"
,
beauty_card_refund_info_data
,
ids
=
beauty_card_refund_info_case
)
def
test_beauty_card_refund_info
(
self
,
param
):
def
test_beauty_card_refund_info
(
self
,
param
):
r
=
janus_request
()
.
beauty_card_refund_info
(
param
[
"order_id"
])
r
=
janus_request
()
.
beauty_card_refund_info
(
param
[
"order_id"
])
...
...
test_backend_case/janus_case/test_beauty_card_refund_submit.py
View file @
70ce86db
...
@@ -10,6 +10,7 @@ class TestBeautyCardRefundSubmit:
...
@@ -10,6 +10,7 @@ class TestBeautyCardRefundSubmit:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
BEAUTY_CARD_REFUND_SUBMIT
)
data
=
BaseRequest
()
.
api_load
(
path_setting
.
BEAUTY_CARD_REFUND_SUBMIT
)
beauty_card_refund_submit_case
,
beauty_card_refund_submit_data
=
get_ids
(
data
,
"beauty_card_refund_submit"
)
beauty_card_refund_submit_case
,
beauty_card_refund_submit_data
=
get_ids
(
data
,
"beauty_card_refund_submit"
)
@pytest.mark.skip
@pytest.mark.parametrize
(
"param"
,
beauty_card_refund_submit_data
,
ids
=
beauty_card_refund_submit_case
)
@pytest.mark.parametrize
(
"param"
,
beauty_card_refund_submit_data
,
ids
=
beauty_card_refund_submit_case
)
def
test_beauty_card_refund_submit
(
self
,
param
):
def
test_beauty_card_refund_submit
(
self
,
param
):
r
=
janus_request
()
.
beauty_card_refund_submit
(
param
[
"order_id"
],
param
[
"reason_id"
],
param
[
"reason_text"
],
r
=
janus_request
()
.
beauty_card_refund_submit
(
param
[
"order_id"
],
param
[
"reason_id"
],
param
[
"reason_text"
],
...
...
test_backend_case/janus_case/test_beauty_card_update_phone.py
View file @
70ce86db
...
@@ -10,6 +10,7 @@ class TestBeautyCardUpdatePhone:
...
@@ -10,6 +10,7 @@ class TestBeautyCardUpdatePhone:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
BEAUTY_CARD_UPDATE_PHONE
)
data
=
BaseRequest
()
.
api_load
(
path_setting
.
BEAUTY_CARD_UPDATE_PHONE
)
beauty_card_update_phone_case
,
beauty_card_update_phone_data
=
get_ids
(
data
,
"beauty_card_update_phone"
)
beauty_card_update_phone_case
,
beauty_card_update_phone_data
=
get_ids
(
data
,
"beauty_card_update_phone"
)
@pytest.mark.skip
@pytest.mark.parametrize
(
"param"
,
beauty_card_update_phone_data
,
ids
=
beauty_card_update_phone_case
)
@pytest.mark.parametrize
(
"param"
,
beauty_card_update_phone_data
,
ids
=
beauty_card_update_phone_case
)
def
test_beauty_card_update_phone
(
self
,
param
):
def
test_beauty_card_update_phone
(
self
,
param
):
r
=
janus_request
()
.
beauty_card_update_phone
(
param
[
"authorize_phone"
],
param
[
"authorize_phone_type"
],
param
[
"vfc_code"
])
r
=
janus_request
()
.
beauty_card_update_phone
(
param
[
"authorize_phone"
],
param
[
"authorize_phone_type"
],
param
[
"vfc_code"
])
...
...
test_backend_case/janus_case/test_content_v7.py
View file @
70ce86db
...
@@ -10,6 +10,7 @@ class TestContentV7:
...
@@ -10,6 +10,7 @@ class TestContentV7:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
CONTENTV7
)
data
=
BaseRequest
()
.
api_load
(
path_setting
.
CONTENTV7
)
contentv7_case
,
contentv7_data
=
get_ids
(
data
,
"content_v7"
)
contentv7_case
,
contentv7_data
=
get_ids
(
data
,
"content_v7"
)
@pytest.mark.skip
@pytest.mark.parametrize
(
"param"
,
contentv7_data
,
ids
=
contentv7_case
)
@pytest.mark.parametrize
(
"param"
,
contentv7_data
,
ids
=
contentv7_case
)
def
test_content_v7
(
self
,
param
):
def
test_content_v7
(
self
,
param
):
print
(
param
[
'query'
])
print
(
param
[
'query'
])
...
...
test_backend_case/janus_case/test_hospital_search.py
View file @
70ce86db
...
@@ -10,6 +10,7 @@ class TestHospitalSearch:
...
@@ -10,6 +10,7 @@ class TestHospitalSearch:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
HOSPITALSEARCH
)
data
=
BaseRequest
()
.
api_load
(
path_setting
.
HOSPITALSEARCH
)
hospitalsearch_case
,
hospitalsearch_data
=
get_ids
(
data
,
"hospital_search"
)
hospitalsearch_case
,
hospitalsearch_data
=
get_ids
(
data
,
"hospital_search"
)
@pytest.mark.skip
@pytest.mark.parametrize
(
"param"
,
hospitalsearch_data
,
ids
=
hospitalsearch_case
)
@pytest.mark.parametrize
(
"param"
,
hospitalsearch_data
,
ids
=
hospitalsearch_case
)
def
test_hospital_search
(
self
,
param
):
def
test_hospital_search
(
self
,
param
):
print
(
param
[
'query'
])
print
(
param
[
'query'
])
...
...
test_backend_case/janus_case/test_keyword_tip.py
View file @
70ce86db
...
@@ -10,6 +10,7 @@ class TestKeywordTip:
...
@@ -10,6 +10,7 @@ class TestKeywordTip:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
KEYWORDTIP
)
data
=
BaseRequest
()
.
api_load
(
path_setting
.
KEYWORDTIP
)
keywordtip_case
,
keywordtip_data
=
get_ids
(
data
,
"keyword_tip"
)
keywordtip_case
,
keywordtip_data
=
get_ids
(
data
,
"keyword_tip"
)
@pytest.mark.skip
@pytest.mark.parametrize
(
"param"
,
keywordtip_data
,
ids
=
keywordtip_case
)
@pytest.mark.parametrize
(
"param"
,
keywordtip_data
,
ids
=
keywordtip_case
)
def
test_keyword_tip
(
self
,
param
):
def
test_keyword_tip
(
self
,
param
):
print
(
param
[
'query'
])
print
(
param
[
'query'
])
...
...
test_backend_case/janus_case/test_mine_guess_you_like.py
View file @
70ce86db
...
@@ -10,6 +10,7 @@ class TestMineGuessYouLike:
...
@@ -10,6 +10,7 @@ class TestMineGuessYouLike:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
JANUS_MINE_GUESS_YOU_LIKE
)
data
=
BaseRequest
()
.
api_load
(
path_setting
.
JANUS_MINE_GUESS_YOU_LIKE
)
mine_guess_you_like_case
,
mine_guess_you_like_data
=
get_ids
(
data
,
"mine_guess_you_like"
)
mine_guess_you_like_case
,
mine_guess_you_like_data
=
get_ids
(
data
,
"mine_guess_you_like"
)
@pytest.mark.skip
@pytest.mark.parametrize
(
"param"
,
mine_guess_you_like_data
,
ids
=
mine_guess_you_like_case
)
@pytest.mark.parametrize
(
"param"
,
mine_guess_you_like_data
,
ids
=
mine_guess_you_like_case
)
def
test_mine_guess_you_like
(
self
,
param
):
def
test_mine_guess_you_like
(
self
,
param
):
r
=
janus_request
()
.
mine_guess_you_like
()
r
=
janus_request
()
.
mine_guess_you_like
()
...
...
test_backend_case/janus_case/test_page_rules.py
View file @
70ce86db
...
@@ -10,6 +10,7 @@ class TestPageRules:
...
@@ -10,6 +10,7 @@ class TestPageRules:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
PAGE_RULES
)
data
=
BaseRequest
()
.
api_load
(
path_setting
.
PAGE_RULES
)
page_rules_case
,
page_rules_data
=
get_ids
(
data
,
"page_rules"
)
page_rules_case
,
page_rules_data
=
get_ids
(
data
,
"page_rules"
)
@pytest.mark.skip
@pytest.mark.parametrize
(
"param"
,
page_rules_data
,
ids
=
page_rules_case
)
@pytest.mark.parametrize
(
"param"
,
page_rules_data
,
ids
=
page_rules_case
)
def
test_page_rules
(
self
,
param
):
def
test_page_rules
(
self
,
param
):
r
=
janus_request
()
.
page_rules
(
param
[
"version"
],
param
[
"current_city_id"
],
param
[
"page_name"
])
r
=
janus_request
()
.
page_rules
(
param
[
"version"
],
param
[
"current_city_id"
],
param
[
"page_name"
])
...
...
test_backend_case/janus_case/test_polymer.py
View file @
70ce86db
...
@@ -10,6 +10,7 @@ class TestPolymer:
...
@@ -10,6 +10,7 @@ class TestPolymer:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
POLYMER
)
data
=
BaseRequest
()
.
api_load
(
path_setting
.
POLYMER
)
polymer_case
,
polymer_data
=
get_ids
(
data
,
"polymer"
)
polymer_case
,
polymer_data
=
get_ids
(
data
,
"polymer"
)
@pytest.mark.skip
@pytest.mark.parametrize
(
"param"
,
polymer_data
,
ids
=
polymer_case
)
@pytest.mark.parametrize
(
"param"
,
polymer_data
,
ids
=
polymer_case
)
def
test_polymer
(
self
,
param
):
def
test_polymer
(
self
,
param
):
r
=
janus_request
()
.
polymer
(
param
[
"version"
],
param
[
"category_polymer_id"
],
param
[
"device_id"
])
r
=
janus_request
()
.
polymer
(
param
[
"version"
],
param
[
"category_polymer_id"
],
param
[
"device_id"
])
...
...
test_backend_case/janus_case/test_product_coupon_my_list.py
View file @
70ce86db
...
@@ -10,6 +10,7 @@ class TestProductCouponMyList:
...
@@ -10,6 +10,7 @@ class TestProductCouponMyList:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
PRODUCT_COUPON_MY_LIST
)
data
=
BaseRequest
()
.
api_load
(
path_setting
.
PRODUCT_COUPON_MY_LIST
)
product_coupon_my_list_case
,
product_coupon_my_list_data
=
get_ids
(
data
,
"product_coupon_my_list"
)
product_coupon_my_list_case
,
product_coupon_my_list_data
=
get_ids
(
data
,
"product_coupon_my_list"
)
@pytest.mark.skip
@pytest.mark.parametrize
(
"param"
,
product_coupon_my_list_data
,
ids
=
product_coupon_my_list_case
)
@pytest.mark.parametrize
(
"param"
,
product_coupon_my_list_data
,
ids
=
product_coupon_my_list_case
)
def
test_product_coupon_my_list
(
self
,
param
):
def
test_product_coupon_my_list
(
self
,
param
):
r
=
janus_request
()
.
product_coupon_my_list
(
param
[
"start_num"
],
param
[
"tab_id"
])
r
=
janus_request
()
.
product_coupon_my_list
(
param
[
"start_num"
],
param
[
"tab_id"
])
...
...
test_backend_case/janus_case/test_product_detail.py
View file @
70ce86db
...
@@ -10,6 +10,7 @@ class TestProductDetail:
...
@@ -10,6 +10,7 @@ class TestProductDetail:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
JANUS_PRODUCT_DETAIL
)
data
=
BaseRequest
()
.
api_load
(
path_setting
.
JANUS_PRODUCT_DETAIL
)
product_detail_case
,
product_detail_data
=
get_ids
(
data
,
"product_detail"
)
product_detail_case
,
product_detail_data
=
get_ids
(
data
,
"product_detail"
)
@pytest.mark.skip
@pytest.mark.parametrize
(
"param"
,
product_detail_data
,
ids
=
product_detail_case
)
@pytest.mark.parametrize
(
"param"
,
product_detail_data
,
ids
=
product_detail_case
)
def
test_product_detail
(
self
,
param
):
def
test_product_detail
(
self
,
param
):
r
=
janus_request
()
.
product_detail
(
param
[
"service_id"
],
param
[
"service_item_id"
],
param
[
"version"
])
r
=
janus_request
()
.
product_detail
(
param
[
"service_id"
],
param
[
"service_item_id"
],
param
[
"version"
])
...
...
test_backend_case/janus_case/test_product_my_list.py
View file @
70ce86db
...
@@ -10,6 +10,7 @@ class TestProductMyLiSt:
...
@@ -10,6 +10,7 @@ class TestProductMyLiSt:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
JANUS_PRODUCT_MY_LIST_DATA
)
data
=
BaseRequest
()
.
api_load
(
path_setting
.
JANUS_PRODUCT_MY_LIST_DATA
)
product_my_list_detail_case
,
product_my_list_detail_data
=
get_ids
(
data
,
"product_my_list"
)
product_my_list_detail_case
,
product_my_list_detail_data
=
get_ids
(
data
,
"product_my_list"
)
@pytest.mark.skip
@pytest.mark.parametrize
(
"param"
,
product_my_list_detail_data
,
ids
=
product_my_list_detail_case
)
@pytest.mark.parametrize
(
"param"
,
product_my_list_detail_data
,
ids
=
product_my_list_detail_case
)
def
test_product_my_list
(
self
,
param
):
def
test_product_my_list
(
self
,
param
):
r
=
janus_request
()
.
product_my_list
(
param
[
"start_num"
],
param
[
"tab_id"
])
r
=
janus_request
()
.
product_my_list
(
param
[
"start_num"
],
param
[
"tab_id"
])
...
...
test_backend_case/janus_case/test_service_hospital.py
View file @
70ce86db
...
@@ -10,6 +10,7 @@ class TestServiceHospital:
...
@@ -10,6 +10,7 @@ class TestServiceHospital:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
SERVICE_HOSPITAL
)
data
=
BaseRequest
()
.
api_load
(
path_setting
.
SERVICE_HOSPITAL
)
service_hospital_case
,
service_hospital_data
=
get_ids
(
data
,
"service_hospital"
)
service_hospital_case
,
service_hospital_data
=
get_ids
(
data
,
"service_hospital"
)
@pytest.mark.skip
@pytest.mark.parametrize
(
"param"
,
service_hospital_data
,
ids
=
service_hospital_case
)
@pytest.mark.parametrize
(
"param"
,
service_hospital_data
,
ids
=
service_hospital_case
)
def
test_service_hospital
(
self
,
param
):
def
test_service_hospital
(
self
,
param
):
r
=
janus_request
()
.
service_hospital
(
param
[
"offset"
],
param
[
"sku_id"
],
param
[
"size"
],
param
[
"version"
],
param
[
"current_city_id"
],
param
[
"lat"
],
param
[
"lng"
])
r
=
janus_request
()
.
service_hospital
(
param
[
"offset"
],
param
[
"sku_id"
],
param
[
"size"
],
param
[
"version"
],
param
[
"current_city_id"
],
param
[
"lat"
],
param
[
"lng"
])
...
...
test_backend_case/janus_case/test_sku_info.py
View file @
70ce86db
...
@@ -10,6 +10,7 @@ class TestSkuInfo:
...
@@ -10,6 +10,7 @@ class TestSkuInfo:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
JANUS_SKU_INFO
)
data
=
BaseRequest
()
.
api_load
(
path_setting
.
JANUS_SKU_INFO
)
sku_info_case
,
sku_info_data
=
get_ids
(
data
,
"sku_info"
)
sku_info_case
,
sku_info_data
=
get_ids
(
data
,
"sku_info"
)
@pytest.mark.skip
@pytest.mark.parametrize
(
"param"
,
sku_info_data
,
ids
=
sku_info_case
)
@pytest.mark.parametrize
(
"param"
,
sku_info_data
,
ids
=
sku_info_case
)
def
test_sku_info
(
self
,
param
):
def
test_sku_info
(
self
,
param
):
r
=
janus_request
()
.
sku_info
(
param
[
"service_id"
],
param
[
"service_item_id"
])
r
=
janus_request
()
.
sku_info
(
param
[
"service_id"
],
param
[
"service_item_id"
])
...
...
test_backend_case/janus_case/test_tag_service.py
View file @
70ce86db
...
@@ -10,6 +10,7 @@ class TestTagService:
...
@@ -10,6 +10,7 @@ class TestTagService:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
TAG_SERVICE
)
data
=
BaseRequest
()
.
api_load
(
path_setting
.
TAG_SERVICE
)
tagservice_case
,
tagservice_data
=
get_ids
(
data
,
"tag_service"
)
tagservice_case
,
tagservice_data
=
get_ids
(
data
,
"tag_service"
)
@pytest.mark.skip
@pytest.mark.parametrize
(
"param"
,
tagservice_data
,
ids
=
tagservice_case
)
@pytest.mark.parametrize
(
"param"
,
tagservice_data
,
ids
=
tagservice_case
)
def
test_tag_service
(
self
,
param
):
def
test_tag_service
(
self
,
param
):
r
=
janus_request
()
.
tag_service
(
param
[
"size"
],
param
[
"tag_ids"
],
param
[
"offset"
],
param
[
"tag_id"
],
param
[
"version"
],
param
[
"device_id"
])
r
=
janus_request
()
.
tag_service
(
param
[
"size"
],
param
[
"tag_ids"
],
param
[
"offset"
],
param
[
"tag_id"
],
param
[
"version"
],
param
[
"device_id"
])
...
...
test_backend_case/live_case/test_danmu_v2.py
View file @
70ce86db
...
@@ -9,6 +9,7 @@ class TestDanmuV2:
...
@@ -9,6 +9,7 @@ class TestDanmuV2:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
DANMU_V2
)
data
=
BaseRequest
()
.
api_load
(
path_setting
.
DANMU_V2
)
danmuv2_case
,
danmuv2_data
=
get_ids
(
data
,
"danmu_v2"
)
danmuv2_case
,
danmuv2_data
=
get_ids
(
data
,
"danmu_v2"
)
@pytest.mark.skip
@pytest.mark.parametrize
(
"param"
,
danmuv2_data
,
ids
=
danmuv2_case
)
@pytest.mark.parametrize
(
"param"
,
danmuv2_data
,
ids
=
danmuv2_case
)
def
test_danmu_v2
(
self
,
param
):
def
test_danmu_v2
(
self
,
param
):
print
(
param
)
print
(
param
)
...
...
test_backend_case/live_case/test_pushlive_info.py
View file @
70ce86db
...
@@ -9,6 +9,7 @@ class TestPushLiveInfo:
...
@@ -9,6 +9,7 @@ class TestPushLiveInfo:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
PUSH_LIVE_INFO
)
data
=
BaseRequest
()
.
api_load
(
path_setting
.
PUSH_LIVE_INFO
)
pushliveinfo_case
,
pushliveinfo_data
=
get_ids
(
data
,
"push_live_info"
)
pushliveinfo_case
,
pushliveinfo_data
=
get_ids
(
data
,
"push_live_info"
)
@pytest.mark.skip
@pytest.mark.parametrize
(
"param"
,
pushliveinfo_data
,
ids
=
pushliveinfo_case
)
@pytest.mark.parametrize
(
"param"
,
pushliveinfo_data
,
ids
=
pushliveinfo_case
)
def
test_pushlive_info
(
self
,
param
):
def
test_pushlive_info
(
self
,
param
):
...
...
test_backend_case/my_conversation_case/test_my_conversation.py
View file @
70ce86db
...
@@ -10,7 +10,7 @@ class TestMyConversation:
...
@@ -10,7 +10,7 @@ class TestMyConversation:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
MY_CONVERSATION
)
data
=
BaseRequest
()
.
api_load
(
path_setting
.
MY_CONVERSATION
)
my_conversation_case
,
my_conversation_data
=
get_ids
(
data
,
"my_conversation"
)
my_conversation_case
,
my_conversation_data
=
get_ids
(
data
,
"my_conversation"
)
@pytest.mark.skip
@pytest.mark.parametrize
(
"param"
,
my_conversation_data
,
ids
=
my_conversation_case
)
@pytest.mark.parametrize
(
"param"
,
my_conversation_data
,
ids
=
my_conversation_case
)
def
test_my_conversation
(
self
,
param
):
def
test_my_conversation
(
self
,
param
):
'''私信列表'''
'''私信列表'''
...
...
test_backend_case/notification_case/test_readall.py
View file @
70ce86db
...
@@ -10,6 +10,7 @@ class TestReadall:
...
@@ -10,6 +10,7 @@ class TestReadall:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
READALL
)
data
=
BaseRequest
()
.
api_load
(
path_setting
.
READALL
)
readall_case
,
readall_data
=
get_ids
(
data
,
"readall"
)
readall_case
,
readall_data
=
get_ids
(
data
,
"readall"
)
@pytest.mark.skip
@pytest.mark.parametrize
(
"param"
,
readall_data
,
ids
=
readall_case
)
@pytest.mark.parametrize
(
"param"
,
readall_data
,
ids
=
readall_case
)
def
test_readall
(
self
,
param
):
def
test_readall
(
self
,
param
):
r
=
notification_request
()
.
readall
(
param
[
"uqid"
],
param
[
"trace_id"
],
param
[
"ua"
])
r
=
notification_request
()
.
readall
(
param
[
"uqid"
],
param
[
"trace_id"
],
param
[
"ua"
])
...
...
test_backend_case/notification_case/test_unread.py
View file @
70ce86db
...
@@ -10,6 +10,7 @@ class TestUnread:
...
@@ -10,6 +10,7 @@ class TestUnread:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
UNREAD
)
data
=
BaseRequest
()
.
api_load
(
path_setting
.
UNREAD
)
unread_case
,
unread_data
=
get_ids
(
data
,
"unread"
)
unread_case
,
unread_data
=
get_ids
(
data
,
"unread"
)
@pytest.mark.skip
@pytest.mark.parametrize
(
"param"
,
unread_data
,
ids
=
unread_case
)
@pytest.mark.parametrize
(
"param"
,
unread_data
,
ids
=
unread_case
)
def
test_unread
(
self
,
param
):
def
test_unread
(
self
,
param
):
r
=
notification_request
()
.
unread
(
param
[
"uqid"
],
param
[
"trace_id"
])
r
=
notification_request
()
.
unread
(
param
[
"uqid"
],
param
[
"trace_id"
])
...
...
test_backend_case/oneimage_case/test_recomend_services.py
View file @
70ce86db
...
@@ -10,6 +10,7 @@ class TestRecomendServices:
...
@@ -10,6 +10,7 @@ class TestRecomendServices:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
ONEIMAGE_RECOMEND_SERVICES_DATA
)
data
=
BaseRequest
()
.
api_load
(
path_setting
.
ONEIMAGE_RECOMEND_SERVICES_DATA
)
recomendservice_case
,
recomendservice_data
=
get_ids
(
data
,
"recomend_services"
)
recomendservice_case
,
recomendservice_data
=
get_ids
(
data
,
"recomend_services"
)
@pytest.mark.skip
# @pytest.mark.skip("跳过测颜值根据五官推荐美购,目前数据是参数是线上的-------------------")
# @pytest.mark.skip("跳过测颜值根据五官推荐美购,目前数据是参数是线上的-------------------")
@pytest.mark.parametrize
(
"param"
,
recomendservice_data
,
ids
=
recomendservice_case
)
@pytest.mark.parametrize
(
"param"
,
recomendservice_data
,
ids
=
recomendservice_case
)
def
test_recomend_services
(
self
,
param
):
def
test_recomend_services
(
self
,
param
):
...
...
test_backend_case/oneimage_case/test_share_v4.py
View file @
70ce86db
...
@@ -13,6 +13,7 @@ class TestShareV4:
...
@@ -13,6 +13,7 @@ class TestShareV4:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
ONEIMAGE_SHARE_V4_DATA
)
data
=
BaseRequest
()
.
api_load
(
path_setting
.
ONEIMAGE_SHARE_V4_DATA
)
sharev4_case
,
sharev4_data
=
get_ids
(
data
,
"share_v4"
)
sharev4_case
,
sharev4_data
=
get_ids
(
data
,
"share_v4"
)
@pytest.mark.skip
# @pytest.mark.skip("跳过,测颜值结果v4,目前数据是线上的-------------------")
# @pytest.mark.skip("跳过,测颜值结果v4,目前数据是线上的-------------------")
@pytest.mark.parametrize
(
"param"
,
sharev4_data
,
ids
=
sharev4_case
)
@pytest.mark.parametrize
(
"param"
,
sharev4_data
,
ids
=
sharev4_case
)
def
test_share_v4
(
self
,
param
):
def
test_share_v4
(
self
,
param
):
...
...
test_backend_case/orders_case/test_my_status.py
View file @
70ce86db
...
@@ -10,6 +10,7 @@ class TestMyStatus:
...
@@ -10,6 +10,7 @@ class TestMyStatus:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
ORDER_MY_STATUS
)
data
=
BaseRequest
()
.
api_load
(
path_setting
.
ORDER_MY_STATUS
)
my_status_case
,
my_status_data
=
get_ids
(
data
,
"my_status"
)
my_status_case
,
my_status_data
=
get_ids
(
data
,
"my_status"
)
@pytest.mark.skip
@pytest.mark.parametrize
(
"param"
,
my_status_data
,
ids
=
my_status_case
)
@pytest.mark.parametrize
(
"param"
,
my_status_data
,
ids
=
my_status_case
)
def
test_my_status
(
self
,
param
):
def
test_my_status
(
self
,
param
):
r
=
orders_request
()
.
my_status
()
r
=
orders_request
()
.
my_status
()
...
...
test_backend_case/orders_case/test_orders_my_v2_waituse.py
View file @
70ce86db
...
@@ -10,6 +10,7 @@ class TestOrdersMyV2Waituse:
...
@@ -10,6 +10,7 @@ class TestOrdersMyV2Waituse:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
ORDERS_MY_V2_DATA
)
data
=
BaseRequest
()
.
api_load
(
path_setting
.
ORDERS_MY_V2_DATA
)
my_order_waituse_case
,
my_order_waituse_data
=
get_ids
(
data
,
"waituse"
)
my_order_waituse_case
,
my_order_waituse_data
=
get_ids
(
data
,
"waituse"
)
@pytest.mark.skip
@pytest.mark.parametrize
(
"param"
,
my_order_waituse_data
,
ids
=
my_order_waituse_case
)
@pytest.mark.parametrize
(
"param"
,
my_order_waituse_data
,
ids
=
my_order_waituse_case
)
def
test_orders_waituse
(
self
,
param
):
def
test_orders_waituse
(
self
,
param
):
r
=
orders_request
()
.
my_v2
(
param
[
"start_num"
],
param
[
"status"
],
param
[
"version"
])
r
=
orders_request
()
.
my_v2
(
param
[
"start_num"
],
param
[
"status"
],
param
[
"version"
])
...
...
test_backend_case/pay_case/test_alipay_prepay.py
View file @
70ce86db
...
@@ -11,6 +11,7 @@ class TestAlipayPay:
...
@@ -11,6 +11,7 @@ class TestAlipayPay:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
ALIPAYDATA
)
data
=
BaseRequest
()
.
api_load
(
path_setting
.
ALIPAYDATA
)
alipay_case
,
alipay_data
=
get_ids
(
data
,
"alipay_prepay"
)
alipay_case
,
alipay_data
=
get_ids
(
data
,
"alipay_prepay"
)
@pytest.mark.skip
@pytest.mark.parametrize
(
"param"
,
alipay_data
,
ids
=
alipay_case
)
@pytest.mark.parametrize
(
"param"
,
alipay_data
,
ids
=
alipay_case
)
def
test_alipay_prepay
(
self
,
param
):
def
test_alipay_prepay
(
self
,
param
):
create_resp
=
settlement_request
()
.
create_v1
(
param
[
"service_item_id"
],
param
[
"number"
],
param
[
"platform_coupon_id"
],
param
[
"use_point"
],
create_resp
=
settlement_request
()
.
create_v1
(
param
[
"service_item_id"
],
param
[
"number"
],
param
[
"platform_coupon_id"
],
param
[
"use_point"
],
...
...
test_backend_case/pay_case/test_jump.py
View file @
70ce86db
...
@@ -11,6 +11,7 @@ class TestJump:
...
@@ -11,6 +11,7 @@ class TestJump:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
JUMPDATA
)
data
=
BaseRequest
()
.
api_load
(
path_setting
.
JUMPDATA
)
jump_case
,
jump_data
=
get_ids
(
data
,
"jump"
)
jump_case
,
jump_data
=
get_ids
(
data
,
"jump"
)
@pytest.mark.skip
@pytest.mark.parametrize
(
"param"
,
jump_data
,
ids
=
jump_case
)
@pytest.mark.parametrize
(
"param"
,
jump_data
,
ids
=
jump_case
)
def
test_jump
(
self
,
param
):
def
test_jump
(
self
,
param
):
create_resp
=
settlement_request
()
.
create_v1
(
param
[
"service_item_id"
],
param
[
"number"
],
param
[
"platform_coupon_id"
],
param
[
"use_point"
],
create_resp
=
settlement_request
()
.
create_v1
(
param
[
"service_item_id"
],
param
[
"number"
],
param
[
"platform_coupon_id"
],
param
[
"use_point"
],
...
...
test_backend_case/pay_case/test_wechat_prepay.py
View file @
70ce86db
...
@@ -11,6 +11,7 @@ class TestWechatPrepay:
...
@@ -11,6 +11,7 @@ class TestWechatPrepay:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
WECHARTPAYDATA
)
data
=
BaseRequest
()
.
api_load
(
path_setting
.
WECHARTPAYDATA
)
wechart_case
,
wechart_data
=
get_ids
(
data
,
"wechart_pay"
)
wechart_case
,
wechart_data
=
get_ids
(
data
,
"wechart_pay"
)
@pytest.mark.skip
@pytest.mark.parametrize
(
"param"
,
wechart_data
,
ids
=
wechart_case
)
@pytest.mark.parametrize
(
"param"
,
wechart_data
,
ids
=
wechart_case
)
def
test_wechart_prepay
(
self
,
param
):
def
test_wechart_prepay
(
self
,
param
):
create_resp
=
settlement_request
()
.
create_v1
(
param
[
"service_item_id"
],
param
[
"number"
],
param
[
"platform_coupon_id"
],
param
[
"use_point"
],
create_resp
=
settlement_request
()
.
create_v1
(
param
[
"service_item_id"
],
param
[
"number"
],
param
[
"platform_coupon_id"
],
param
[
"use_point"
],
...
...
test_backend_case/personal_case/test_personal_recommends.py
View file @
70ce86db
...
@@ -9,6 +9,7 @@ class TestPersonalRecommends:
...
@@ -9,6 +9,7 @@ class TestPersonalRecommends:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
PERSONAL_RECOMMENDS
)
data
=
BaseRequest
()
.
api_load
(
path_setting
.
PERSONAL_RECOMMENDS
)
personal_recommends_case
,
personal_recommends_data
=
get_ids
(
data
,
"personal_recommends"
)
personal_recommends_case
,
personal_recommends_data
=
get_ids
(
data
,
"personal_recommends"
)
@pytest.mark.skip
@pytest.mark.parametrize
(
"param"
,
personal_recommends_data
,
ids
=
personal_recommends_case
)
@pytest.mark.parametrize
(
"param"
,
personal_recommends_data
,
ids
=
personal_recommends_case
)
def
test_personal_recommends
(
self
,
param
):
def
test_personal_recommends
(
self
,
param
):
r
=
personal_recommends_request
()
.
personal_recommends
(
param
[
"current_city_id"
],
param
[
"id"
],
param
[
"from_type"
]
)
r
=
personal_recommends_request
()
.
personal_recommends
(
param
[
"current_city_id"
],
param
[
"id"
],
param
[
"from_type"
]
)
...
...
test_backend_case/private_conversation/test_private_conversation.py
View file @
70ce86db
...
@@ -10,6 +10,7 @@ class TestPrivateConversation:
...
@@ -10,6 +10,7 @@ class TestPrivateConversation:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
PRIVATE_CONVERSATION
)
data
=
BaseRequest
()
.
api_load
(
path_setting
.
PRIVATE_CONVERSATION
)
privateconversation_case
,
privateconversation_data
=
get_ids
(
data
,
"private_conversation"
)
privateconversation_case
,
privateconversation_data
=
get_ids
(
data
,
"private_conversation"
)
@pytest.mark.skip
@pytest.mark.parametrize
(
"param"
,
privateconversation_data
,
ids
=
privateconversation_case
)
@pytest.mark.parametrize
(
"param"
,
privateconversation_data
,
ids
=
privateconversation_case
)
def
test_private_conversation
(
self
,
param
):
def
test_private_conversation
(
self
,
param
):
r
=
private_conversation_request
()
.
private_conversation
(
param
[
"content"
],
param
[
"target_uid"
],
r
=
private_conversation_request
()
.
private_conversation
(
param
[
"content"
],
param
[
"target_uid"
],
...
...
test_backend_case/qa_case/test_favor.py
View file @
70ce86db
...
@@ -10,6 +10,7 @@ class TestFavor:
...
@@ -10,6 +10,7 @@ class TestFavor:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
QA_FAVOR
)
data
=
BaseRequest
()
.
api_load
(
path_setting
.
QA_FAVOR
)
test_case
,
test_data
=
get_ids
(
data
,
"favor"
)
test_case
,
test_data
=
get_ids
(
data
,
"favor"
)
@pytest.mark.skip
@pytest.mark.parametrize
(
"param"
,
test_data
,
ids
=
test_case
)
@pytest.mark.parametrize
(
"param"
,
test_data
,
ids
=
test_case
)
def
test_favor
(
self
,
param
):
def
test_favor
(
self
,
param
):
r
=
qa_request
()
.
favor
(
param
[
"answer_id"
])
r
=
qa_request
()
.
favor
(
param
[
"answer_id"
])
...
...
test_backend_case/question_case/test_reply_answer.py
View file @
70ce86db
...
@@ -9,6 +9,7 @@ class TestReplyAnswer:
...
@@ -9,6 +9,7 @@ class TestReplyAnswer:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
REPLY_ANSWER
)
data
=
BaseRequest
()
.
api_load
(
path_setting
.
REPLY_ANSWER
)
replyanswer_case
,
replyanswer_data
=
get_ids
(
data
,
"reply_answer"
)
replyanswer_case
,
replyanswer_data
=
get_ids
(
data
,
"reply_answer"
)
@pytest.mark.skip
@pytest.mark.parametrize
(
"param"
,
replyanswer_data
,
ids
=
replyanswer_case
)
@pytest.mark.parametrize
(
"param"
,
replyanswer_data
,
ids
=
replyanswer_case
)
def
test_reply_answer
(
self
,
param
):
def
test_reply_answer
(
self
,
param
):
r
=
question_request
()
.
reply_answer
(
param
[
"current_city_id"
],
param
[
"answer_id"
],
param
[
"content"
],
param
[
"user_id"
])
r
=
question_request
()
.
reply_answer
(
param
[
"current_city_id"
],
param
[
"answer_id"
],
param
[
"content"
],
param
[
"user_id"
])
...
...
test_backend_case/scan_case/test_diary_cards.py
View file @
70ce86db
...
@@ -10,6 +10,7 @@ class TestScanDiaryCards:
...
@@ -10,6 +10,7 @@ class TestScanDiaryCards:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
SCAN_DIARY_CARDS_DATA
)
data
=
BaseRequest
()
.
api_load
(
path_setting
.
SCAN_DIARY_CARDS_DATA
)
scandiarycards_case
,
scandiarycards_data
=
get_ids
(
data
,
"diary_cards"
)
scandiarycards_case
,
scandiarycards_data
=
get_ids
(
data
,
"diary_cards"
)
@pytest.mark.skip
@pytest.mark.parametrize
(
"param"
,
scandiarycards_data
,
ids
=
scandiarycards_case
)
@pytest.mark.parametrize
(
"param"
,
scandiarycards_data
,
ids
=
scandiarycards_case
)
def
test_diary_cards
(
self
,
param
):
def
test_diary_cards
(
self
,
param
):
r
=
scan_request
()
.
scan_diary_cards
(
param
[
"current_city_id"
],
param
[
"page"
],
param
[
"count"
],
param
[
"feature_results"
],
param
[
"feed_type"
])
r
=
scan_request
()
.
scan_diary_cards
(
param
[
"current_city_id"
],
param
[
"page"
],
param
[
"count"
],
param
[
"feature_results"
],
param
[
"feed_type"
])
...
...
test_backend_case/search_case/test_content_v6.py
View file @
70ce86db
...
@@ -13,6 +13,7 @@ class TestContentV6:
...
@@ -13,6 +13,7 @@ class TestContentV6:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
CONTENTV6
)
data
=
BaseRequest
()
.
api_load
(
path_setting
.
CONTENTV6
)
contentv6_case
,
contentv6_data
=
get_ids
(
data
,
"content_v6"
)
contentv6_case
,
contentv6_data
=
get_ids
(
data
,
"content_v6"
)
@pytest.mark.skip
@pytest.mark.parametrize
(
"param"
,
contentv6_data
,
ids
=
contentv6_case
)
@pytest.mark.parametrize
(
"param"
,
contentv6_data
,
ids
=
contentv6_case
)
def
test_content_v6
(
self
,
param
):
def
test_content_v6
(
self
,
param
):
print
(
param
[
'query'
])
print
(
param
[
'query'
])
...
...
test_backend_case/search_case/test_hospital.py
View file @
70ce86db
...
@@ -10,6 +10,7 @@ class TestHospital:
...
@@ -10,6 +10,7 @@ class TestHospital:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
HOSPITAL
)
data
=
BaseRequest
()
.
api_load
(
path_setting
.
HOSPITAL
)
hospital_case
,
hospital_data
=
get_ids
(
data
,
"hospital"
)
hospital_case
,
hospital_data
=
get_ids
(
data
,
"hospital"
)
@pytest.mark.skip
@pytest.mark.parametrize
(
"param"
,
hospital_data
,
ids
=
hospital_case
)
@pytest.mark.parametrize
(
"param"
,
hospital_data
,
ids
=
hospital_case
)
def
test_hospital
(
self
,
param
):
def
test_hospital
(
self
,
param
):
r
=
search_request
()
.
hospital
(
param
[
"cp_id"
],
param
[
"tag_id"
],
param
[
"q"
],
param
[
"count"
],
param
[
"device_id"
])
r
=
search_request
()
.
hospital
(
param
[
"cp_id"
],
param
[
"tag_id"
],
param
[
"q"
],
param
[
"count"
],
param
[
"device_id"
])
...
...
test_backend_case/search_case/test_hot.py
View file @
70ce86db
...
@@ -10,6 +10,7 @@ class TestHot:
...
@@ -10,6 +10,7 @@ class TestHot:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
HOT
)
data
=
BaseRequest
()
.
api_load
(
path_setting
.
HOT
)
hot_case
,
hot_data
=
get_ids
(
data
,
"hot"
)
hot_case
,
hot_data
=
get_ids
(
data
,
"hot"
)
@pytest.mark.skip
@pytest.mark.parametrize
(
"param"
,
hot_data
,
ids
=
hot_case
)
@pytest.mark.parametrize
(
"param"
,
hot_data
,
ids
=
hot_case
)
def
test_hot
(
self
,
param
):
def
test_hot
(
self
,
param
):
r
=
search_request
()
.
hot
(
param
[
"version"
])
r
=
search_request
()
.
hot
(
param
[
"version"
])
...
...
test_backend_case/search_case/test_keywords.py
View file @
70ce86db
...
@@ -10,6 +10,7 @@ class TestKeywords:
...
@@ -10,6 +10,7 @@ class TestKeywords:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
KEYWORDS
)
data
=
BaseRequest
()
.
api_load
(
path_setting
.
KEYWORDS
)
keywords_case
,
keywords_data
=
get_ids
(
data
,
"keywords"
)
keywords_case
,
keywords_data
=
get_ids
(
data
,
"keywords"
)
@pytest.mark.skip
@pytest.mark.parametrize
(
"param"
,
keywords_data
,
ids
=
keywords_case
)
@pytest.mark.parametrize
(
"param"
,
keywords_data
,
ids
=
keywords_case
)
def
test_keywords
(
self
,
param
):
def
test_keywords
(
self
,
param
):
r
=
search_request
()
.
keywords
(
param
[
"current_city_id"
],
param
[
"search_tab"
])
r
=
search_request
()
.
keywords
(
param
[
"current_city_id"
],
param
[
"search_tab"
])
...
...
test_backend_case/service_case/test_home_v5.py
View file @
70ce86db
...
@@ -10,7 +10,7 @@ class TestHomeV5:
...
@@ -10,7 +10,7 @@ class TestHomeV5:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
HOME_V5
)
data
=
BaseRequest
()
.
api_load
(
path_setting
.
HOME_V5
)
homev5_case
,
homev5_data
=
get_ids
(
data
,
"home_v5"
)
homev5_case
,
homev5_data
=
get_ids
(
data
,
"home_v5"
)
@pytest.mark.skip
@pytest.mark.parametrize
(
"param"
,
homev5_data
,
ids
=
homev5_case
)
@pytest.mark.parametrize
(
"param"
,
homev5_data
,
ids
=
homev5_case
)
def
test_home_v5
(
self
,
param
):
def
test_home_v5
(
self
,
param
):
r
=
service_request
()
.
home_v5
()
r
=
service_request
()
.
home_v5
()
...
...
test_backend_case/service_case/test_service_favor.py
View file @
70ce86db
...
@@ -10,6 +10,7 @@ class TestServiceFavor:
...
@@ -10,6 +10,7 @@ class TestServiceFavor:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
SERVICE_FAVOR
)
data
=
BaseRequest
()
.
api_load
(
path_setting
.
SERVICE_FAVOR
)
service_favor_case
,
service_favor_data
=
get_ids
(
data
,
"service_favor"
)
service_favor_case
,
service_favor_data
=
get_ids
(
data
,
"service_favor"
)
@pytest.mark.skip
@pytest.mark.parametrize
(
"param"
,
service_favor_data
,
ids
=
service_favor_case
)
@pytest.mark.parametrize
(
"param"
,
service_favor_data
,
ids
=
service_favor_case
)
def
test_service_favor
(
self
,
param
):
def
test_service_favor
(
self
,
param
):
r
=
service_request
()
.
service_favor
()
r
=
service_request
()
.
service_favor
()
...
...
test_backend_case/services_case/test_share_data.py
View file @
70ce86db
...
@@ -10,6 +10,7 @@ class TestShareData:
...
@@ -10,6 +10,7 @@ class TestShareData:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
SERVICES_SHARE_DATA
)
data
=
BaseRequest
()
.
api_load
(
path_setting
.
SERVICES_SHARE_DATA
)
share_data_case
,
share_data_data
=
get_ids
(
data
,
"share_data"
)
share_data_case
,
share_data_data
=
get_ids
(
data
,
"share_data"
)
@pytest.mark.skip
@pytest.mark.parametrize
(
"param"
,
share_data_data
,
ids
=
share_data_case
)
@pytest.mark.parametrize
(
"param"
,
share_data_data
,
ids
=
share_data_case
)
def
test_share_data
(
self
,
param
):
def
test_share_data
(
self
,
param
):
r
=
services_request
()
.
share_data
(
param
[
"p_id"
],
param
[
"u_id"
])
r
=
services_request
()
.
share_data
(
param
[
"p_id"
],
param
[
"u_id"
])
...
...
test_backend_case/settlement_case/test_create_v1.py
View file @
70ce86db
...
@@ -11,6 +11,7 @@ class TestCreateV1:
...
@@ -11,6 +11,7 @@ class TestCreateV1:
create_case
,
create_data
=
get_ids
(
data
,
"create_v1"
)
create_case
,
create_data
=
get_ids
(
data
,
"create_v1"
)
print
(
create_data
)
print
(
create_data
)
@pytest.mark.skip
@pytest.mark.parametrize
(
"param"
,
create_data
,
ids
=
create_case
)
@pytest.mark.parametrize
(
"param"
,
create_data
,
ids
=
create_case
)
def
test_create_v1
(
self
,
param
):
def
test_create_v1
(
self
,
param
):
r
=
settlement_request
()
.
create_v1
(
param
[
"service_item_id"
],
param
[
"number"
],
param
[
"platform_coupon_id"
],
r
=
settlement_request
()
.
create_v1
(
param
[
"service_item_id"
],
param
[
"number"
],
param
[
"platform_coupon_id"
],
...
...
test_backend_case/settlement_case/test_pay.py
View file @
70ce86db
...
@@ -10,6 +10,7 @@ class TestPay:
...
@@ -10,6 +10,7 @@ class TestPay:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
PAY
)
data
=
BaseRequest
()
.
api_load
(
path_setting
.
PAY
)
pay_case
,
pay_data
=
get_ids
(
data
,
"pay"
)
pay_case
,
pay_data
=
get_ids
(
data
,
"pay"
)
@pytest.mark.skip
@pytest.mark.parametrize
(
"param"
,
pay_data
,
ids
=
pay_case
)
@pytest.mark.parametrize
(
"param"
,
pay_data
,
ids
=
pay_case
)
def
test_pay
(
self
,
param
):
def
test_pay
(
self
,
param
):
pay_r
=
settlement_request
()
.
create_v1
(
param
[
"service_item_id"
],
param
[
"number"
],
param
[
"platform_coupon_id"
],
param
[
"use_point"
],
param
[
"is_doctor_see"
],
param
[
"doctor_coupon_id"
],
param
[
"insurance_info"
],
param
[
"is_create_groupbuy"
])
pay_r
=
settlement_request
()
.
create_v1
(
param
[
"service_item_id"
],
param
[
"number"
],
param
[
"platform_coupon_id"
],
param
[
"use_point"
],
param
[
"is_doctor_see"
],
param
[
"doctor_coupon_id"
],
param
[
"insurance_info"
],
param
[
"is_create_groupbuy"
])
...
...
test_backend_case/settlement_case/test_pay_v1.py
View file @
70ce86db
...
@@ -10,6 +10,7 @@ class TestPayV1:
...
@@ -10,6 +10,7 @@ class TestPayV1:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
PAY_V1
)
data
=
BaseRequest
()
.
api_load
(
path_setting
.
PAY_V1
)
pay_case
,
pay_data
=
get_ids
(
data
,
"pay_v1"
)
pay_case
,
pay_data
=
get_ids
(
data
,
"pay_v1"
)
@pytest.mark.skip
@pytest.mark.parametrize
(
"param"
,
pay_data
,
ids
=
pay_case
)
@pytest.mark.parametrize
(
"param"
,
pay_data
,
ids
=
pay_case
)
def
test_pay_v1
(
self
,
param
):
def
test_pay_v1
(
self
,
param
):
r
=
settlement_request
()
.
pay_v1
(
param
[
"actual_pay"
],
param
[
"payment_final_price"
],
param
[
"is_contains_groupbuy_order"
],
param
[
"mul_orders_number"
])
r
=
settlement_request
()
.
pay_v1
(
param
[
"actual_pay"
],
param
[
"payment_final_price"
],
param
[
"is_contains_groupbuy_order"
],
param
[
"mul_orders_number"
])
...
...
test_backend_case/settlement_case/test_preview_v1.py
View file @
70ce86db
...
@@ -10,6 +10,7 @@ class TestPreviewV1:
...
@@ -10,6 +10,7 @@ class TestPreviewV1:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
PREVIEW
)
data
=
BaseRequest
()
.
api_load
(
path_setting
.
PREVIEW
)
preview_case
,
preview_data
=
get_ids
(
data
,
"preview_v1"
)
preview_case
,
preview_data
=
get_ids
(
data
,
"preview_v1"
)
@pytest.mark.skip
@pytest.mark.parametrize
(
"param"
,
preview_data
,
ids
=
preview_case
)
@pytest.mark.parametrize
(
"param"
,
preview_data
,
ids
=
preview_case
)
def
test_preview_v1
(
self
,
param
):
def
test_preview_v1
(
self
,
param
):
r
=
settlement_request
()
.
preview_v1
(
param
[
"current_city_id"
],
param
[
"service_item_id"
],
param
[
"number"
],
param
[
"use_platform_coupon"
],
param
[
"use_doctor_coupon"
],
param
[
"use_coupon_grey"
],
param
[
"is_create_groupbuy"
])
r
=
settlement_request
()
.
preview_v1
(
param
[
"current_city_id"
],
param
[
"service_item_id"
],
param
[
"number"
],
param
[
"use_platform_coupon"
],
param
[
"use_doctor_coupon"
],
param
[
"use_coupon_grey"
],
param
[
"is_create_groupbuy"
])
...
...
test_backend_case/settlement_case/test_settlement_delete.py
View file @
70ce86db
...
@@ -11,6 +11,7 @@ class TestSettlementDelete:
...
@@ -11,6 +11,7 @@ class TestSettlementDelete:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
SETTLEMENTDELETE
)
data
=
BaseRequest
()
.
api_load
(
path_setting
.
SETTLEMENTDELETE
)
delete_case
,
delete_data
=
get_ids
(
data
,
"settlement_delete"
)
delete_case
,
delete_data
=
get_ids
(
data
,
"settlement_delete"
)
@pytest.mark.skip
@pytest.mark.parametrize
(
"param"
,
delete_data
,
ids
=
delete_case
)
@pytest.mark.parametrize
(
"param"
,
delete_data
,
ids
=
delete_case
)
def
test_settlement_delete
(
self
,
param
):
def
test_settlement_delete
(
self
,
param
):
r
=
orders_request
()
.
my_v2
(
param
[
"start_num"
],
param
[
"status"
],
param
[
"version"
])
r
=
orders_request
()
.
my_v2
(
param
[
"start_num"
],
param
[
"status"
],
param
[
"version"
])
...
...
test_backend_case/settlement_case/test_settlement_detail.py
View file @
70ce86db
...
@@ -10,6 +10,7 @@ class TestSettlementDetail:
...
@@ -10,6 +10,7 @@ class TestSettlementDetail:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
SETTLEMENTDETAIL
)
data
=
BaseRequest
()
.
api_load
(
path_setting
.
SETTLEMENTDETAIL
)
detail_case
,
detail_data
=
get_ids
(
data
,
"settlement_detail"
)
detail_case
,
detail_data
=
get_ids
(
data
,
"settlement_detail"
)
@pytest.mark.skip
@pytest.mark.parametrize
(
"param"
,
detail_data
,
ids
=
detail_case
)
@pytest.mark.parametrize
(
"param"
,
detail_data
,
ids
=
detail_case
)
def
test_settlement_detail
(
self
,
param
):
def
test_settlement_detail
(
self
,
param
):
r
=
settlement_request
()
.
detail
(
param
[
"id"
])
r
=
settlement_request
()
.
detail
(
param
[
"id"
])
...
...
test_backend_case/shopcart_case/test_add.py
View file @
70ce86db
...
@@ -10,6 +10,7 @@ class TestAdd:
...
@@ -10,6 +10,7 @@ class TestAdd:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
SHOPCART_ADD
)
data
=
BaseRequest
()
.
api_load
(
path_setting
.
SHOPCART_ADD
)
add_case
,
add_data
=
get_ids
(
data
,
"add"
)
add_case
,
add_data
=
get_ids
(
data
,
"add"
)
@pytest.mark.skip
@pytest.mark.parametrize
(
"param"
,
add_data
,
ids
=
add_case
)
@pytest.mark.parametrize
(
"param"
,
add_data
,
ids
=
add_case
)
def
test_add
(
self
,
param
):
def
test_add
(
self
,
param
):
r
=
shopcart_request
()
.
add
(
param
[
"from_live"
],
param
[
"number"
],
param
[
"service_item_id"
])
r
=
shopcart_request
()
.
add
(
param
[
"from_live"
],
param
[
"number"
],
param
[
"service_item_id"
])
...
...
test_backend_case/shopcart_case/test_list.py
View file @
70ce86db
...
@@ -10,6 +10,7 @@ class TestList:
...
@@ -10,6 +10,7 @@ class TestList:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
SHOPCART_LIST
)
data
=
BaseRequest
()
.
api_load
(
path_setting
.
SHOPCART_LIST
)
list_case
,
list_data
=
get_ids
(
data
,
"list"
)
list_case
,
list_data
=
get_ids
(
data
,
"list"
)
@pytest.mark.skip
@pytest.mark.parametrize
(
"param"
,
list_data
,
ids
=
list_case
)
@pytest.mark.parametrize
(
"param"
,
list_data
,
ids
=
list_case
)
def
test_list
(
self
,
param
):
def
test_list
(
self
,
param
):
r
=
shopcart_request
()
.
list
()
r
=
shopcart_request
()
.
list
()
...
...
test_backend_case/skin_case/test_recommend_service.py
View file @
70ce86db
...
@@ -10,6 +10,7 @@ class TestSkinRecommendServices:
...
@@ -10,6 +10,7 @@ class TestSkinRecommendServices:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
SKIN_RECOMMEND_SERVICE_DATA
)
data
=
BaseRequest
()
.
api_load
(
path_setting
.
SKIN_RECOMMEND_SERVICE_DATA
)
skin_recommend_service_case
,
skin_recommend_service_data
=
get_ids
(
data
,
"recommend_service"
)
skin_recommend_service_case
,
skin_recommend_service_data
=
get_ids
(
data
,
"recommend_service"
)
@pytest.mark.skip
@pytest.mark.parametrize
(
"param"
,
skin_recommend_service_data
,
ids
=
skin_recommend_service_case
)
@pytest.mark.parametrize
(
"param"
,
skin_recommend_service_data
,
ids
=
skin_recommend_service_case
)
def
test_recommend_services
(
self
,
param
):
def
test_recommend_services
(
self
,
param
):
r
=
skin_request
()
.
skin_recommend_service
(
param
[
"device_id"
],
param
[
"current_city_id"
],
param
[
"appeal_tag_ids"
],
r
=
skin_request
()
.
skin_recommend_service
(
param
[
"device_id"
],
param
[
"current_city_id"
],
param
[
"appeal_tag_ids"
],
...
...
test_backend_case/topic_case/test_topic_reply_create.py
View file @
70ce86db
...
@@ -11,6 +11,7 @@ class TestTopicReplyCreate:
...
@@ -11,6 +11,7 @@ class TestTopicReplyCreate:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
TOPIC_REPLY_CREATE
)
data
=
BaseRequest
()
.
api_load
(
path_setting
.
TOPIC_REPLY_CREATE
)
topic_reply_create_case
,
topic_reply_create_data
=
get_ids
(
data
,
"reply_create"
)
topic_reply_create_case
,
topic_reply_create_data
=
get_ids
(
data
,
"reply_create"
)
@pytest.mark.skip
@pytest.mark.parametrize
(
"param"
,
topic_reply_create_data
,
ids
=
topic_reply_create_case
)
@pytest.mark.parametrize
(
"param"
,
topic_reply_create_data
,
ids
=
topic_reply_create_case
)
def
test_topic_reply_create
(
self
,
param
):
def
test_topic_reply_create
(
self
,
param
):
r
=
topic_reply_create_request
()
.
topic_reply_create
(
param
[
"content"
],
param
[
"channel"
]
)
r
=
topic_reply_create_request
()
.
topic_reply_create
(
param
[
"content"
],
param
[
"channel"
]
)
...
...
test_backend_case/topic_case/test_topic_reply_vote.py
View file @
70ce86db
...
@@ -10,6 +10,7 @@ class TestTopicReplyVote:
...
@@ -10,6 +10,7 @@ class TestTopicReplyVote:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
TOPIC_REPLY_VOTE
)
data
=
BaseRequest
()
.
api_load
(
path_setting
.
TOPIC_REPLY_VOTE
)
topic_reply_vote_case
,
topic_reply_vote_data
=
get_ids
(
data
,
"topic_reply_vote"
)
topic_reply_vote_case
,
topic_reply_vote_data
=
get_ids
(
data
,
"topic_reply_vote"
)
@pytest.mark.skip
@pytest.mark.parametrize
(
"param"
,
topic_reply_vote_data
,
ids
=
topic_reply_vote_case
)
@pytest.mark.parametrize
(
"param"
,
topic_reply_vote_data
,
ids
=
topic_reply_vote_case
)
def
test_topic_reply_vote
(
self
,
param
):
def
test_topic_reply_vote
(
self
,
param
):
r
=
topicreply_vote_request
()
.
topic_reply_vote
(
param
[
"id"
])
r
=
topicreply_vote_request
()
.
topic_reply_vote
(
param
[
"id"
])
...
...
test_backend_case/topic_case/test_v1.py
View file @
70ce86db
...
@@ -10,6 +10,7 @@ class TestTopicDetail:
...
@@ -10,6 +10,7 @@ class TestTopicDetail:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
TOPIC_DETAIL
)
data
=
BaseRequest
()
.
api_load
(
path_setting
.
TOPIC_DETAIL
)
topic_detail_case
,
topic_detail_data
=
get_ids
(
data
,
"topic_detail"
)
topic_detail_case
,
topic_detail_data
=
get_ids
(
data
,
"topic_detail"
)
@pytest.mark.skip
@pytest.mark.parametrize
(
"param"
,
topic_detail_data
,
ids
=
topic_detail_case
)
@pytest.mark.parametrize
(
"param"
,
topic_detail_data
,
ids
=
topic_detail_case
)
def
test_v1
(
self
,
param
):
def
test_v1
(
self
,
param
):
r
=
topic_request
()
.
topic_detail
(
param
[
"topic_id"
])
r
=
topic_request
()
.
topic_detail
(
param
[
"topic_id"
])
...
...
test_backend_case/topic_case/test_vote.py
View file @
70ce86db
...
@@ -11,6 +11,7 @@ class TestVote:
...
@@ -11,6 +11,7 @@ class TestVote:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
TOPIC_VOTE
)
data
=
BaseRequest
()
.
api_load
(
path_setting
.
TOPIC_VOTE
)
topic_vote_case
,
topic_vote_data
=
get_ids
(
data
,
"topic_vote"
)
topic_vote_case
,
topic_vote_data
=
get_ids
(
data
,
"topic_vote"
)
@pytest.mark.skip
@pytest.mark.parametrize
(
"param"
,
topic_vote_data
,
ids
=
topic_vote_case
)
@pytest.mark.parametrize
(
"param"
,
topic_vote_data
,
ids
=
topic_vote_case
)
def
test_vote
(
self
,
param
):
def
test_vote
(
self
,
param
):
r
=
topic_request
()
.
topic_detail
(
param
[
"topic_id"
])
r
=
topic_request
()
.
topic_detail
(
param
[
"topic_id"
])
...
...
test_backend_case/tractate_case/test_detail.py
View file @
70ce86db
...
@@ -9,6 +9,7 @@ class TestTractateDetail:
...
@@ -9,6 +9,7 @@ class TestTractateDetail:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
TRACTATE_DETAIL
)
data
=
BaseRequest
()
.
api_load
(
path_setting
.
TRACTATE_DETAIL
)
tractate_detail_case
,
tractate_detail_data
=
get_ids
(
data
,
"tractate_detail"
)
tractate_detail_case
,
tractate_detail_data
=
get_ids
(
data
,
"tractate_detail"
)
@pytest.mark.skip
@pytest.mark.parametrize
(
"param"
,
tractate_detail_data
,
ids
=
tractate_detail_case
)
@pytest.mark.parametrize
(
"param"
,
tractate_detail_data
,
ids
=
tractate_detail_case
)
def
test_detail
(
self
,
param
):
def
test_detail
(
self
,
param
):
r
=
tractate_request
()
.
tractate_detail
(
param
[
"current_city_id"
],
param
[
"tractate_id"
],
param
[
"data_type"
]
)
r
=
tractate_request
()
.
tractate_detail
(
param
[
"current_city_id"
],
param
[
"tractate_id"
],
param
[
"data_type"
]
)
...
...
test_backend_case/tractate_case/test_favor.py
View file @
70ce86db
...
@@ -10,6 +10,7 @@ class TestFavor:
...
@@ -10,6 +10,7 @@ class TestFavor:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
TRACTATE_FAVOR
)
data
=
BaseRequest
()
.
api_load
(
path_setting
.
TRACTATE_FAVOR
)
test_case
,
test_data
=
get_ids
(
data
,
"favor"
)
test_case
,
test_data
=
get_ids
(
data
,
"favor"
)
@pytest.mark.skip
@pytest.mark.parametrize
(
"param"
,
test_data
,
ids
=
test_case
)
@pytest.mark.parametrize
(
"param"
,
test_data
,
ids
=
test_case
)
def
test_favor
(
self
,
param
):
def
test_favor
(
self
,
param
):
r
=
tractate_request
()
.
favor
(
param
[
"tractate_id"
],
param
[
"data_type"
])
r
=
tractate_request
()
.
favor
(
param
[
"tractate_id"
],
param
[
"data_type"
])
...
...
test_backend_case/tractate_case/test_publish_reply.py
View file @
70ce86db
...
@@ -10,6 +10,7 @@ class TestPublishReply:
...
@@ -10,6 +10,7 @@ class TestPublishReply:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
TRACTATE_PUBLISH_REPLY
)
data
=
BaseRequest
()
.
api_load
(
path_setting
.
TRACTATE_PUBLISH_REPLY
)
test_case
,
test_data
=
get_ids
(
data
,
"publish_reply"
)
test_case
,
test_data
=
get_ids
(
data
,
"publish_reply"
)
@pytest.mark.skip
@pytest.mark.parametrize
(
"param"
,
test_data
,
ids
=
test_case
)
@pytest.mark.parametrize
(
"param"
,
test_data
,
ids
=
test_case
)
def
test_publish_reply
(
self
,
param
):
def
test_publish_reply
(
self
,
param
):
r
=
tractate_request
()
.
publish_reply
(
param
[
"tractate_id"
],
param
[
"data_type"
],
param
[
"reply_id"
],
param
[
"content"
])
r
=
tractate_request
()
.
publish_reply
(
param
[
"tractate_id"
],
param
[
"data_type"
],
param
[
"reply_id"
],
param
[
"content"
])
...
...
test_backend_case/tractate_case/test_related_service.py
View file @
70ce86db
...
@@ -9,6 +9,7 @@ class TestRelatedService:
...
@@ -9,6 +9,7 @@ class TestRelatedService:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
TRACTATE_RELATED_SERVICE
)
data
=
BaseRequest
()
.
api_load
(
path_setting
.
TRACTATE_RELATED_SERVICE
)
related_service_case
,
related_service_data
=
get_ids
(
data
,
"related_service"
)
related_service_case
,
related_service_data
=
get_ids
(
data
,
"related_service"
)
@pytest.mark.skip
@pytest.mark.parametrize
(
"param"
,
related_service_data
,
ids
=
related_service_case
)
@pytest.mark.parametrize
(
"param"
,
related_service_data
,
ids
=
related_service_case
)
def
test_related_service
(
self
,
param
):
def
test_related_service
(
self
,
param
):
r
=
tractate_request
()
.
tractate_related_service
(
param
[
"current_city_id"
],
param
[
"tractate_id"
],
param
[
"data_type"
]
)
r
=
tractate_request
()
.
tractate_related_service
(
param
[
"current_city_id"
],
param
[
"tractate_id"
],
param
[
"data_type"
]
)
...
...
test_backend_case/tractate_case/test_reply.py
View file @
70ce86db
...
@@ -9,6 +9,7 @@ class TestReply:
...
@@ -9,6 +9,7 @@ class TestReply:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
TRACTATE_REPLY
)
data
=
BaseRequest
()
.
api_load
(
path_setting
.
TRACTATE_REPLY
)
test_case
,
test_data
=
get_ids
(
data
,
"reply"
)
test_case
,
test_data
=
get_ids
(
data
,
"reply"
)
@pytest.mark.skip
@pytest.mark.parametrize
(
"param"
,
test_data
,
ids
=
test_case
)
@pytest.mark.parametrize
(
"param"
,
test_data
,
ids
=
test_case
)
def
test_reply
(
self
,
param
):
def
test_reply
(
self
,
param
):
r
=
tractate_request
()
.
reply
(
param
[
"current_city_id"
],
param
[
"id"
],
param
[
"data_type"
]
)
r
=
tractate_request
()
.
reply
(
param
[
"current_city_id"
],
param
[
"id"
],
param
[
"data_type"
]
)
...
...
test_backend_case/tractate_case/test_vote.py
View file @
70ce86db
...
@@ -11,6 +11,7 @@ class TestVote:
...
@@ -11,6 +11,7 @@ class TestVote:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
TRACTATE_VOTE
)
data
=
BaseRequest
()
.
api_load
(
path_setting
.
TRACTATE_VOTE
)
test_case
,
test_data
=
get_ids
(
data
,
"tractate_vote"
)
test_case
,
test_data
=
get_ids
(
data
,
"tractate_vote"
)
@pytest.mark.skip
@pytest.mark.parametrize
(
"param"
,
test_data
,
ids
=
test_case
)
@pytest.mark.parametrize
(
"param"
,
test_data
,
ids
=
test_case
)
def
test_vote
(
self
,
param
):
def
test_vote
(
self
,
param
):
r
=
tractate_request
()
.
tractate_detail
(
param
[
"current_city_id"
],
param
[
"tractate_id"
],
param
[
"data_type"
])
r
=
tractate_request
()
.
tractate_detail
(
param
[
"current_city_id"
],
param
[
"tractate_id"
],
param
[
"data_type"
])
...
...
test_backend_case/user_case/test_answer.py
View file @
70ce86db
...
@@ -10,6 +10,7 @@ class TestAnswer:
...
@@ -10,6 +10,7 @@ class TestAnswer:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
USER_ANSWER
)
data
=
BaseRequest
()
.
api_load
(
path_setting
.
USER_ANSWER
)
answer_case
,
answer_data
=
get_ids
(
data
,
"answer"
)
answer_case
,
answer_data
=
get_ids
(
data
,
"answer"
)
@pytest.mark.skip
@pytest.mark.parametrize
(
"param"
,
answer_data
,
ids
=
answer_case
)
@pytest.mark.parametrize
(
"param"
,
answer_data
,
ids
=
answer_case
)
def
test_answer
(
self
,
param
):
def
test_answer
(
self
,
param
):
r
=
user_request
()
.
answer
(
param
[
"user"
])
r
=
user_request
()
.
answer
(
param
[
"user"
])
...
...
test_backend_case/user_case/test_personal_center.py
View file @
70ce86db
...
@@ -10,6 +10,7 @@ class TestPersonalCenter:
...
@@ -10,6 +10,7 @@ class TestPersonalCenter:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
PERSONAL_CENTER
)
data
=
BaseRequest
()
.
api_load
(
path_setting
.
PERSONAL_CENTER
)
personalcenter_case
,
personalcenter_data
=
get_ids
(
data
,
"personal_center"
)
personalcenter_case
,
personalcenter_data
=
get_ids
(
data
,
"personal_center"
)
@pytest.mark.skip
@pytest.mark.parametrize
(
"param"
,
personalcenter_data
,
ids
=
personalcenter_case
)
@pytest.mark.parametrize
(
"param"
,
personalcenter_data
,
ids
=
personalcenter_case
)
def
test_personal_center
(
self
,
param
):
def
test_personal_center
(
self
,
param
):
r
=
user_request
()
.
personal_center
()
r
=
user_request
()
.
personal_center
()
...
...
test_backend_case/user_case/test_topic_favor.py
View file @
70ce86db
...
@@ -10,6 +10,7 @@ class TestTopicFavor:
...
@@ -10,6 +10,7 @@ class TestTopicFavor:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
TOPIC_FAVOR
)
data
=
BaseRequest
()
.
api_load
(
path_setting
.
TOPIC_FAVOR
)
topic_favor_case
,
topic_favor_data
=
get_ids
(
data
,
"favor"
)
topic_favor_case
,
topic_favor_data
=
get_ids
(
data
,
"favor"
)
@pytest.mark.skip
@pytest.mark.parametrize
(
"param"
,
topic_favor_data
,
ids
=
topic_favor_case
)
@pytest.mark.parametrize
(
"param"
,
topic_favor_data
,
ids
=
topic_favor_case
)
def
test_topic_favor
(
self
,
param
):
def
test_topic_favor
(
self
,
param
):
# 收藏校验
# 收藏校验
...
...
test_backend_case/visual_beauty_card_case/test_beautycard_filters.py
View file @
70ce86db
...
@@ -10,6 +10,7 @@ class TestBeautyCardFilters:
...
@@ -10,6 +10,7 @@ class TestBeautyCardFilters:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
BEAUTYCARD_FILTERS
)
data
=
BaseRequest
()
.
api_load
(
path_setting
.
BEAUTYCARD_FILTERS
)
beautycard_filters_case
,
beautycard_filters_data
=
get_ids
(
data
,
"beautycard_filters"
)
beautycard_filters_case
,
beautycard_filters_data
=
get_ids
(
data
,
"beautycard_filters"
)
@pytest.mark.skip
@pytest.mark.parametrize
(
"param"
,
beautycard_filters_data
,
ids
=
beautycard_filters_case
)
@pytest.mark.parametrize
(
"param"
,
beautycard_filters_data
,
ids
=
beautycard_filters_case
)
def
test_beautycard_filters
(
self
,
param
):
def
test_beautycard_filters
(
self
,
param
):
print
(
'次卡商品列表筛选器'
)
print
(
'次卡商品列表筛选器'
)
...
...
test_backend_case/visual_beauty_card_case/test_beautycard_skus.py
View file @
70ce86db
...
@@ -10,6 +10,7 @@ class TestBeautyCardSkus:
...
@@ -10,6 +10,7 @@ class TestBeautyCardSkus:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
BEAUTYCARD_SKUS
)
data
=
BaseRequest
()
.
api_load
(
path_setting
.
BEAUTYCARD_SKUS
)
beautycard_skus_case
,
beautycard_skus_data
=
get_ids
(
data
,
"beautycard_skus"
)
beautycard_skus_case
,
beautycard_skus_data
=
get_ids
(
data
,
"beautycard_skus"
)
@pytest.mark.skip
@pytest.mark.parametrize
(
"param"
,
beautycard_skus_data
,
ids
=
beautycard_skus_case
)
@pytest.mark.parametrize
(
"param"
,
beautycard_skus_data
,
ids
=
beautycard_skus_case
)
def
test_beautycard_skus
(
self
,
param
):
def
test_beautycard_skus
(
self
,
param
):
print
(
'次卡商品列表组件商品'
)
print
(
'次卡商品列表组件商品'
)
...
...
test_backend_case/visual_beauty_card_case/test_visual_beauty_card_services.py
View file @
70ce86db
...
@@ -10,6 +10,7 @@ class TestVisualBeautyCardServices:
...
@@ -10,6 +10,7 @@ class TestVisualBeautyCardServices:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
VISUAL_BEAUTY_CARD_SERVICES
)
data
=
BaseRequest
()
.
api_load
(
path_setting
.
VISUAL_BEAUTY_CARD_SERVICES
)
visual_beauty_card_services_case
,
visual_beauty_card_services_data
=
get_ids
(
data
,
"visual_beauty_card_services"
)
visual_beauty_card_services_case
,
visual_beauty_card_services_data
=
get_ids
(
data
,
"visual_beauty_card_services"
)
@pytest.mark.skip
@pytest.mark.parametrize
(
"param"
,
visual_beauty_card_services_data
,
ids
=
visual_beauty_card_services_case
)
@pytest.mark.parametrize
(
"param"
,
visual_beauty_card_services_data
,
ids
=
visual_beauty_card_services_case
)
def
test_visual_beauty_card_services
(
self
,
param
):
def
test_visual_beauty_card_services
(
self
,
param
):
print
(
'次卡橱窗'
)
print
(
'次卡橱窗'
)
...
...
test_backend_data/common_data/reply.yaml
View file @
70ce86db
...
@@ -2,16 +2,18 @@ common_reply:
...
@@ -2,16 +2,18 @@ common_reply:
#日记本列表评论列表--校验
#日记本列表评论列表--校验
-
-
case
:
"
日记本列表评论列表--校验"
case
:
"
日记本列表评论列表--校验"
id
:
21250007
id
:
75636
type
:
2
assert1
:
0
type
:
"
TOPIC"
-
case
:
"
帖子列表评论列表--校验"
id
:
82208
type
:
4
type
:
4
assert1
:
0
assert1
:
0
type
:
"
TRACTATE"
data_type
:
"
user_post"
offset
:
start_num
:
0
# -
# case: "帖子列表评论列表--校验"
# id: 82208
## type: 4
# assert1: 0
# type: "TRACTATE"
...
...
test_backend_data/common_data/sub_common.yaml
View file @
70ce86db
...
@@ -2,24 +2,16 @@ topic_sub_common:
...
@@ -2,24 +2,16 @@ topic_sub_common:
#二级评论列表展示-多数为字段判空校验-因为评论本身并不确定
#二级评论列表展示-多数为字段判空校验-因为评论本身并不确定
-
-
case
:
"
日记贴二级评论列表--展示--用户信息校验"
case
:
"
日记贴二级评论列表--展示--用户信息校验"
id
:
2
1249632
id
:
2
0583023
type
:
2
type
:
2
reply_id
:
35526987
reply_id
:
35348521
start_num
:
0
offset
:
0
assert1
:
0
assert1
:
0
assert2
:
"
请登录后再试"
assert2
:
"
请登录后再试"
assert3
:
"
已经赞过啦"
assert3
:
"
已经赞过啦"
type
:
"
TOPIC"
-
case
:
"
贴子二级评论列表--展示--用户信息校验"
id
:
2087079
type
:
4
reply_id
:
2087079
assert1
:
0
assert2
:
"
请登录后再试"
assert3
:
"
已经赞过啦"
type
:
"
TRACTATE"
...
...
test_backend_data/diary_data/diary_operation.yaml
View file @
70ce86db
...
@@ -2,22 +2,11 @@ diary_operation:
...
@@ -2,22 +2,11 @@ diary_operation:
#修改日记本信息case--
#修改日记本信息case--
-
-
case
:
"
修改信息"
case
:
"
修改信息"
diary_id
:
17586198
count
:
10
title
:
"
上海哈哈哈哈哈哈哈哈哈哈哈虎骨"
start_num
:
0
operation_timestamp
:
1620662400
doctor_name
:
"
也一样"
hospital_name
:
"
一样一样"
assert
:
"
没有权限"
assert
:
"
没有权限"
-
case
:
"
将原来的修改内容修改回去,方便下次接着使用"
diary_id
:
17586198
title
:
"
测试"
operation_timestamp
:
1620662401
doctor_name
:
"
测试"
hospital_name
:
"
测试"
assert
:
"
没有权限"
...
...
test_backend_data/diary_data/diary_pre_create_topic.yaml
0 → 100644
View file @
70ce86db
pre_create_topic
:
-
case
:
"
测试更新日记"
diary_id
:
17878325
assert
:
0
\ No newline at end of file
test_backend_data/diary_data/diary_service.yaml
View file @
70ce86db
...
@@ -2,15 +2,15 @@ diary_service:
...
@@ -2,15 +2,15 @@ diary_service:
#字段正常case
#字段正常case
-
-
case
:
"
有推荐美购的日记--有外显评论"
case
:
"
有推荐美购的日记--有外显评论"
diary_id
:
"
"
diary_id
:
17859564
service_id
:
58
15774
service_id
:
58
24961
assert
:
0
assert
:
0
-
#
-
case
:
"
接口传参数失败,但不报错case"
#
case: "接口传参数失败,但不报错case"
current_city_id
:
"
beijing"
#
current_city_id: "beijing"
diary_referrer
:
"
my_diary"
#
diary_referrer: "my_diary"
sort
:
0
#
sort: 0
count
:
8
#
count: 8
start_num
:
2
#
start_num: 2
assert
:
0
#
assert: 0
test_backend_data/doctor_data/article.yaml
View file @
70ce86db
article
:
article
:
-
-
case
:
"
校验接口返回成功case"
case
:
"
校验接口返回成功case"
doctor_id
:
"
9918ad7eb8f511e58f8200163e000a4a
"
doctor_id
:
"
ef9f8c20b1f211e6906e00163e000d0b
"
assert_error
:
0
assert_error
:
0
\ No newline at end of file
test_backend_data/doctor_data/diary.yaml
View file @
70ce86db
diary
:
diary
:
-
-
case
:
"
校验接口返回成功case"
case
:
"
校验接口返回成功case"
doctor_id
:
5bd9f05cad51403d853ba8c881989e23
doctor_id
:
a1ee69fad0794022b8f2b1517bf46eba
assert_error
:
0
assert_error
:
0
\ No newline at end of file
test_backend_data/hospitals_data/detail.yaml
View file @
70ce86db
...
@@ -3,64 +3,5 @@ detail:
...
@@ -3,64 +3,5 @@ detail:
-
-
case
:
"
校验接口调用成功case"
case
:
"
校验接口调用成功case"
assert_error
:
0
assert_error
:
0
assert
:
"
北京嘉禾医疗美容"
assert1
:
"
私密修复"
assert2
:
"
民营"
assert3
:
56895
assert4
:
{
index
:
true
,
service
:
true
,
doctor
:
true
,
publish
:
false
,
doctor_say
:
false
,
diary
:
true
,
answer
:
false
}
assert5
:
"
https://heras.igengmei.com/doctor/2020/07/29/ef19b5fa94-w"
-
case
:
"
校验医院名称case"
assert_error
:
0
assert
:
"
北京嘉禾医疗美容"
assert1
:
"
私密修复"
assert2
:
"
民营"
assert3
:
56895
assert4
:
{
index
:
true
,
service
:
true
,
doctor
:
true
,
publish
:
false
,
doctor_say
:
false
,
diary
:
true
,
answer
:
false
}
assert5
:
"
https://heras.igengmei.com/doctor/2020/07/29/ef19b5fa94-w"
-
case
:
"
校验明星项目case"
assert_error
:
0
assert
:
"
北京嘉禾医疗美容"
assert1
:
"
私密修复"
assert2
:
"
民营"
assert3
:
56895
assert4
:
{
index
:
true
,
service
:
true
,
doctor
:
true
,
publish
:
false
,
doctor_say
:
false
,
diary
:
true
,
answer
:
false
}
assert5
:
"
https://heras.igengmei.com/doctor/2020/07/29/ef19b5fa94-w"
-
case
:
"
校验医院类型case"
assert_error
:
0
assert
:
"
北京嘉禾医疗美容"
assert1
:
"
私密修复"
assert2
:
"
民营"
assert3
:
56895
assert4
:
{
index
:
true
,
service
:
true
,
doctor
:
true
,
publish
:
false
,
doctor_say
:
false
,
diary
:
true
,
answer
:
false
}
assert5
:
"
https://heras.igengmei.com/doctor/2020/07/29/ef19b5fa94-w"
-
case
:
"
校验优惠券返回case"
assert_error
:
0
assert
:
"
北京嘉禾医疗美容"
assert1
:
"
私密修复"
assert2
:
"
民营"
assert3
:
56895
assert4
:
{
index
:
true
,
service
:
true
,
doctor
:
true
,
publish
:
false
,
doctor_say
:
false
,
diary
:
true
,
answer
:
false
}
assert5
:
"
https://heras.igengmei.com/doctor/2020/07/29/ef19b5fa94-w"
-
case
:
"
校验tab返回case"
assert_error
:
0
assert
:
"
北京嘉禾医疗美容"
assert1
:
"
私密修复"
assert2
:
"
民营"
assert3
:
56895
assert4
:
{
index
:
true
,
service
:
true
,
doctor
:
true
,
publish
:
false
,
doctor_say
:
false
,
diary
:
true
,
answer
:
false
}
assert5
:
"
https://heras.igengmei.com/doctor/2020/07/29/ef19b5fa94-w"
-
case
:
"
校验医院图片case"
assert_error
:
0
assert
:
"
北京嘉禾医疗美容"
assert1
:
"
私密修复"
assert2
:
"
民营"
assert3
:
56895
assert4
:
{
index
:
true
,
service
:
true
,
doctor
:
true
,
publish
:
false
,
doctor_say
:
false
,
diary
:
true
,
answer
:
false
}
assert5
:
"
https://heras.igengmei.com/doctor/2020/07/29/ef19b5fa94-w"
test_backend_data/hospitals_data/doctor.yaml
View file @
70ce86db
...
@@ -2,48 +2,3 @@ doctor:
...
@@ -2,48 +2,3 @@ doctor:
-
-
case
:
"
校验接口返回成功case"
case
:
"
校验接口返回成功case"
assert_error
:
0
assert_error
:
0
assert_id
:
"
ad99d0b0b6eb4a2c97ffadad48b7cdfd"
assert_name
:
"
赵希军"
assert_good_at
:
"
吸脂瘦身"
assert_cases
:
"
自体脂肪填充面部
80例"
assert_title
:
"
副主任"
-
case
:
"
校验医生id
case"
assert_error
:
0
assert_id
:
"
ad99d0b0b6eb4a2c97ffadad48b7cdfd"
assert_name
:
"
赵希军"
assert_good_at
:
"
吸脂瘦身"
assert_cases
:
"
自体脂肪填充面部
80例"
assert_title
:
"
副主任"
-
case
:
"
校验医生名称case"
assert_error
:
0
assert_id
:
"
ad99d0b0b6eb4a2c97ffadad48b7cdfd"
assert_name
:
"
赵希军"
assert_good_at
:
"
吸脂瘦身"
assert_cases
:
"
自体脂肪填充面部
80例"
assert_title
:
"
副主任"
-
case
:
"
校验医生明星项目case"
assert_error
:
0
assert_id
:
"
ad99d0b0b6eb4a2c97ffadad48b7cdfd"
assert_name
:
"
赵希军"
assert_good_at
:
"
吸脂瘦身"
assert_cases
:
"
自体脂肪填充面部
80例"
assert_title
:
"
副主任"
-
case
:
"
校验医生案例case"
assert_error
:
0
assert_id
:
"
ad99d0b0b6eb4a2c97ffadad48b7cdfd"
assert_name
:
"
赵希军"
assert_good_at
:
"
吸脂瘦身"
assert_cases
:
"
自体脂肪填充面部
80例"
assert_title
:
"
副主任"
-
case
:
"
校验医生title
case"
assert_error
:
0
assert_id
:
"
ad99d0b0b6eb4a2c97ffadad48b7cdfd"
assert_name
:
"
赵希军"
assert_good_at
:
"
吸脂瘦身"
assert_cases
:
"
自体脂肪填充面部
80例"
assert_title
:
"
副主任"
\ No newline at end of file
test_backend_data/hybrid_data/api_topic_vote.yaml
View file @
70ce86db
...
@@ -5,8 +5,7 @@ diary_vote:
...
@@ -5,8 +5,7 @@ diary_vote:
id
:
21249958
id
:
21249958
topic_id
:
21249958
topic_id
:
21249958
assert1
:
0
assert1
:
0
assert2
:
"
请登录后再试"
assert3
:
"
已经赞过啦"
...
...
test_backend_data/hybrid_data/basewiki_item.yaml
View file @
70ce86db
...
@@ -2,5 +2,5 @@ basewiki_item:
...
@@ -2,5 +2,5 @@ basewiki_item:
-
-
#百科详情页-项目百科,水光针
#百科详情页-项目百科,水光针
case
:
"
百科详情页-项目百科,水光针"
case
:
"
百科详情页-项目百科,水光针"
version
:
"
744.0"
version
:
"
7
.
44.0"
assert
:
水光针
assert
:
水光针
\ No newline at end of file
test_backend_data/hybrid_data/basewiki_product.yaml
View file @
70ce86db
...
@@ -2,5 +2,5 @@ basewiki_product:
...
@@ -2,5 +2,5 @@ basewiki_product:
-
-
#百科详情页-药品(仪器、材料)百科,菲洛嘉
#百科详情页-药品(仪器、材料)百科,菲洛嘉
case
:
"
百科详情页-药品(仪器、材料)百科,菲洛嘉"
case
:
"
百科详情页-药品(仪器、材料)百科,菲洛嘉"
version
:
"
744.0"
version
:
"
7
.
44.0"
assert
:
菲洛嘉
assert
:
菲洛嘉
\ No newline at end of file
test_backend_data/hybrid_data/diary_album.yaml
View file @
70ce86db
...
@@ -2,8 +2,8 @@ diary_album:
...
@@ -2,8 +2,8 @@ diary_album:
#进入日记本相册case--无须字段
#进入日记本相册case--无须字段
-
-
case
:
"
进入日记本相册case"
case
:
"
进入日记本相册case"
assert
:
false
assert
:
0
assert2
:
true
#
#
...
...
test_backend_data/janus_data/beauty_card_detail.yaml
View file @
70ce86db
beauty_card_detail
:
beauty_card_detail
:
#次卡商详页
#次卡商详页
-
-
case
:
"
次卡商详页spuid=10
0018
"
case
:
"
次卡商详页spuid=10
25
"
assert
:
0
assert
:
0
spu_id
:
10
0018
spu_id
:
10
25
sku_id
:
1
0046
sku_id
:
1
1110
welfareId
:
10
0018
welfareId
:
10
25
version
:
7.44.0
version
:
7.44.0
current_city_id
:
beijing
current_city_id
:
beijing
lat
:
40.001879
lat
:
40.001879
lng
:
116.487194
lng
:
116.487194
-
-
case
:
"
次卡商详页spuid=10
0021
"
case
:
"
次卡商详页spuid=10
25
"
assert
:
0
assert
:
0
spu_id
:
10
0021
spu_id
:
10
25
sku_id
:
1
0159
sku_id
:
1
1111
welfareId
:
10
0021
welfareId
:
10
25
version
:
7.44.0
version
:
7.44.0
current_city_id
:
beijing
current_city_id
:
beijing
lat
:
40.001879
lat
:
40.001879
...
...
test_doctor_case/__init__.py
deleted
100644 → 0
View file @
eab09f01
test_doctor_case/glmer_case/test_service_detail.py
deleted
100644 → 0
View file @
eab09f01
import
pytest
import
path_setting
from
all_doctor_api.glmer_request
import
glmer_request
from
ids_list
import
get_ids
from
in_common.base_request
import
BaseRequest
class
TestServiceDetail
:
service_detail
=
BaseRequest
()
.
api_load
(
path_setting
.
DETAIL_DATA
)
ServiceDetail_case
,
ServiceDetail_data
=
get_ids
(
service_detail
,
"service_detail"
)
@pytest.mark.parametrize
(
"params"
,
ServiceDetail_data
,
ids
=
ServiceDetail_case
)
def
test_ServiceDetail
(
self
,
params
):
r
=
glmer_request
()
.
service_detail
()
print
(
"------"
,
r
)
if
r
[
"code"
]
==
0
:
assert
r
[
"code"
]
==
params
[
"assert"
]
test_doctor_case/glmer_case/test_service_register.py
deleted
100644 → 0
View file @
eab09f01
import
pytest
import
path_setting
from
all_doctor_api.glmer_request
import
glmer_request
from
ids_list
import
get_ids
from
in_common.base_request
import
BaseRequest
class
TestServiceRegister
:
service_register
=
BaseRequest
()
.
api_load
(
path_setting
.
REGISTER_DATA
)
ServiceRegister_case
,
ServiceRegister_data
=
get_ids
(
service_register
,
"service_register"
)
@pytest.mark.parametrize
(
"params"
,
ServiceRegister_data
,
ids
=
ServiceRegister_case
)
def
test_ServiceRegister
(
self
,
params
):
r
=
glmer_request
()
.
service_register
(
params
[
'name'
],
params
[
'project_type'
],
params
[
'upgrade'
],
params
[
'short_description'
],
params
[
'doctor_id'
],
params
[
'start_time'
],
params
[
'end_time'
],
params
[
'photo_details'
],
params
[
'image_header'
],
params
[
'video_token'
],
params
[
'service_type'
],
params
[
'is_specialreview'
],
params
[
'reservation'
],
params
[
'have_extra_pay'
],
params
[
'is_draft'
],
params
[
'items'
],
params
[
'csrfmiddlewaretoken'
])
if
r
[
"code"
]
==
0
:
assert
r
[
"code"
]
==
params
[
"assert"
]
# elif r["error"] == 1:
# assert r["message"] == params["assert"]
test_doctor_case/glmer_case/test_tag_properties.py
deleted
100644 → 0
View file @
eab09f01
import
pytest
import
path_setting
from
all_doctor_api.glmer_request
import
glmer_request
from
ids_list
import
get_ids
from
in_common.base_request
import
BaseRequest
class
TestTagProperties
:
tag_properties
=
BaseRequest
()
.
api_load
(
path_setting
.
PROPERTIES_DATA
)
TagProperties_case
,
TagProperties_data
=
get_ids
(
tag_properties
,
"tag_properties"
)
@pytest.mark.parametrize
(
"params"
,
TagProperties_data
,
ids
=
TagProperties_case
)
def
test_TagProperties
(
self
,
params
):
r
=
glmer_request
()
.
tag_properties
(
params
[
'catalog_ids'
])
print
(
"------"
,
r
)
if
r
[
"error"
]
==
0
:
assert
r
[
"error"
]
==
params
[
"assert"
]
test_doctor_case/web2_case/__init__.py
deleted
100644 → 0
View file @
eab09f01
test_doctor_case/web2_case/test_artemis_ad_add_shopping_cart_info.py
deleted
100644 → 0
View file @
eab09f01
import
pytest
from
ids_list
import
get_ids
import
path_setting
from
in_common.base_request
import
BaseRequest
from
all_doctor_api.web2_request
import
web2_request
class
TestArtemisAdAddShoppingCartInfo
:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
ADADDSHOPPINGCARTINFO
)
adaddshoppingcartinfo_case
,
adaddshoppingcartinfo_data
=
get_ids
(
data
,
"artemis_ad_add_shopping_cart_info"
)
@pytest.mark.parametrize
(
"param"
,
adaddshoppingcartinfo_data
,
ids
=
adaddshoppingcartinfo_case
)
def
test_artemis_ad_add_shopping_cart_info
(
self
,
param
):
'''我的购物车列表'''
r
=
web2_request
()
.
artemis_ad_add_shopping_cart_info
()
if
r
[
"error"
]
==
0
:
data
=
r
.
get
(
"data"
)
.
get
(
"data"
,
[])
assert
len
(
data
)
>=
param
[
"assert"
]
test_doctor_case/web2_case/test_artemis_add_value_order_id_detail.py
deleted
100644 → 0
View file @
eab09f01
import
pytest
from
ids_list
import
get_ids
import
path_setting
from
in_common.base_request
import
BaseRequest
from
all_doctor_api.web2_request
import
web2_request
class
TestArtemisAddValueOrderIdDetail
:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
VALUEORDERIDDETAIL
)
addvalueorderiddetail_case
,
addvalueorderiddetail_data
=
get_ids
(
data
,
"artemis_add_value_order_id_detail"
)
@pytest.mark.parametrize
(
"param"
,
addvalueorderiddetail_data
,
ids
=
addvalueorderiddetail_case
)
def
test_artemis_add_value_order_id_detail
(
self
,
param
):
'''我的服务订单-已购买'''
r
=
web2_request
()
.
artemis_add_value_order_id_detail
()
if
r
[
"error"
]
==
0
:
assert
r
[
"data"
][
"status"
]
==
param
[
"assert"
]
test_doctor_case/web2_case/test_service_delete.py
deleted
100644 → 0
View file @
eab09f01
import
pytest
import
path_setting
from
all_doctor_api.web2_request
import
web2_request
from
ids_list
import
get_ids
from
in_common.base_request
import
BaseRequest
class
TestServiceDelete
:
service_delete
=
BaseRequest
()
.
api_load
(
path_setting
.
DELETE_DATA
)
ServiceDelete_case
,
ServiceDeletet_data
=
get_ids
(
service_delete
,
"service_delete"
)
@pytest.mark.parametrize
(
"params"
,
ServiceDeletet_data
,
ids
=
ServiceDelete_case
)
def
test_ServiceDelete
(
self
,
params
):
r
=
web2_request
()
.
service_delete
(
params
[
'is_delete'
],
params
[
'service_register_id'
],
params
[
'csrfmiddlewaretoken'
])
print
(
"======"
,
r
)
if
r
[
"error"
]
==
0
:
assert
r
[
"error"
]
==
params
[
"assert"
]
# elif r["error"] == 1:
# assert r["message"] == params["assert"]
test_doctor_case/web2_case/test_service_deletelist.py
deleted
100644 → 0
View file @
eab09f01
import
pytest
import
path_setting
from
all_doctor_api.web2_request
import
web2_request
from
ids_list
import
get_ids
from
in_common.base_request
import
BaseRequest
class
TestServiceDeletelist
:
service_deletelist
=
BaseRequest
()
.
api_load
(
path_setting
.
DELETELIST_DATA
)
ServiceDeletelist_case
,
ServiceDeletelist_data
=
get_ids
(
service_deletelist
,
"service_deletelist"
)
@pytest.mark.parametrize
(
"params"
,
ServiceDeletelist_data
,
ids
=
ServiceDeletelist_case
)
def
test_ServiceDeletelist
(
self
,
params
):
r
=
web2_request
()
.
service_deletelist
(
params
[
'page'
])
print
(
"======"
,
r
)
# if r["error"] == 0:
# assert r["error"] == params["assert"]
test_doctor_case/web2_case/test_service_list.py
deleted
100644 → 0
View file @
eab09f01
import
pytest
import
path_setting
from
all_doctor_api.web2_request
import
web2_request
from
ids_list
import
get_ids
from
in_common.base_request
import
BaseRequest
class
TestServiceList
:
service_list
=
BaseRequest
()
.
api_load
(
path_setting
.
SERVICE_DATA
)
ServiceList_case
,
ServiceList_data
=
get_ids
(
service_list
,
"service_list"
)
@pytest.mark.parametrize
(
"params"
,
ServiceList_data
,
ids
=
ServiceList_case
)
def
test_ServiceList
(
self
,
params
):
r
=
web2_request
()
.
service_list
(
params
[
'page'
],
params
[
'pagesize'
],
params
[
'is_online'
],
params
[
'extra_filter_choice'
])
print
(
"======"
,
r
)
if
r
[
"error"
]
==
0
:
assert
r
[
"data"
][
"page"
]
==
params
[
"assert"
]
elif
r
[
"error"
]
==
1
:
assert
r
[
"message"
]
==
params
[
"assert"
]
# else:
# assert r['error'] == 0
test_doctor_case/web2_case/test_service_review_list.py
deleted
100644 → 0
View file @
eab09f01
import
pytest
import
path_setting
from
all_doctor_api.web2_request
import
web2_request
from
ids_list
import
get_ids
from
in_common.base_request
import
BaseRequest
class
TestServiceReviewList
:
service_review_list
=
BaseRequest
()
.
api_load
(
path_setting
.
SERVICE_REVIEW_DATA
)
ServiceReviewList_case
,
ServiceReviewList_data
=
get_ids
(
service_review_list
,
"service_review_list"
)
@pytest.mark.parametrize
(
"params"
,
ServiceReviewList_data
,
ids
=
ServiceReviewList_case
)
def
test_ServiceReviewList
(
self
,
params
):
r
=
web2_request
()
.
service_review_list
(
params
[
'page'
],
params
[
'pagesize'
],
params
[
'type'
])
print
(
"--------"
,
r
)
if
r
[
"error"
]
==
0
:
assert
r
[
"data"
][
"page"
]
==
params
[
"assert"
]
# elif r["error"] == 1:
# assert r["message"] == params["assert"]
\ No newline at end of file
test_doctor_case/web2_case/test_servicereview_option.py
deleted
100644 → 0
View file @
eab09f01
import
pytest
import
path_setting
from
all_doctor_api.web2_request
import
web2_request
from
ids_list
import
get_ids
from
in_common.base_request
import
BaseRequest
class
TestServicereviewOption
:
servicereview_option
=
BaseRequest
()
.
api_load
(
path_setting
.
SERVICEREVIEW_OPTION_DATA
)
ServicereviewOption_case
,
ServicereviewOption_data
=
get_ids
(
servicereview_option
,
"servicereview_option"
)
@pytest.mark.parametrize
(
"params"
,
ServicereviewOption_data
,
ids
=
ServicereviewOption_case
)
def
test_ServicereviewOption
(
self
,
params
):
r
=
web2_request
()
.
servicereview_option
(
params
[
'id'
],
params
[
'type'
],
params
[
'csrfmiddlewaretoken'
])
print
(
"--------"
,
r
)
if
r
[
"error"
]
==
0
:
assert
r
[
"error"
]
==
params
[
"assert"
]
print
(
"...."
)
# elif r["error"] == 1:
# assert r["data"] == params["assert"]
\ No newline at end of file
test_doctor_case/web2_case/test_tag_all.py
deleted
100644 → 0
View file @
eab09f01
import
pytest
import
path_setting
from
all_doctor_api.web2_request
import
web2_request
from
ids_list
import
get_ids
from
in_common.base_request
import
BaseRequest
class
TestTagAll
:
tag_all
=
BaseRequest
()
.
api_load
(
path_setting
.
TAG_DATA
)
TagAll_case
,
TagAll_data
=
get_ids
(
tag_all
,
"tag_all"
)
@pytest.mark.parametrize
(
"param"
,
TagAll_data
,
ids
=
TagAll_case
)
def
test_TagAll
(
self
,
param
):
r
=
web2_request
()
.
tag_all
()
print
(
"--------"
,
r
)
if
r
[
"error"
]
==
0
:
assert
r
[
"error"
]
==
param
[
"assert"
]
# elif r["error"] == 1:
# assert r["data"] == params["assert"]
\ No newline at end of file
test_doctor_case/web_case/__init__.py
deleted
100644 → 0
View file @
eab09f01
test_doctor_case/web_case/test_account_unreadbadgecount.py
deleted
100644 → 0
View file @
eab09f01
import
pytest
import
path_setting
from
all_doctor_api.web_request
import
web_request
from
ids_list
import
get_ids
from
in_common.base_request
import
BaseRequest
class
TestAccountUnreadbadgecount
:
account_unreadbadgecount
=
BaseRequest
()
.
api_load
(
path_setting
.
ACCOUNT_DATA
)
AccountUnreadbadgecount_case
,
AccountUnreadbadgecount_data
=
get_ids
(
account_unreadbadgecount
,
"account_unreadbadgecount"
)
@pytest.mark.parametrize
(
"param"
,
AccountUnreadbadgecount_data
,
ids
=
AccountUnreadbadgecount_case
)
def
test_AccountUnreadbadgecount
(
self
,
param
):
r
=
web_request
()
.
account_unreadbadgecount
()
print
(
"====="
,
r
)
if
r
[
"error"
]
==
0
:
assert
r
[
"error"
]
==
param
[
"assert"
]
# elif r["error"] == 1:
# assert r["message"] == params["assert"]
\ No newline at end of file
test_doctor_case/web_case/test_artemis_ad_type_list.py
deleted
100644 → 0
View file @
eab09f01
import
pytest
from
ids_list
import
get_ids
import
path_setting
from
in_common.base_request
import
BaseRequest
from
all_doctor_api.web_request
import
web_request
class
TestArtemisAdTypeList
:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
ADTYPELIST
)
adtypelist_case
,
adtypelist_data
=
get_ids
(
data
,
"artemis_ad_type_list"
)
@pytest.mark.parametrize
(
"param"
,
adtypelist_data
,
ids
=
adtypelist_case
)
def
test_artemis_ad_type_list
(
self
,
param
):
'''服务资源列表'''
r
=
web_request
()
.
artemis_ad_type_list
()
if
r
[
"error"
]
==
0
:
adtypes
=
r
.
get
(
"data"
)
.
get
(
"adtypes"
,
[])
assert
len
(
adtypes
)
>=
param
[
"assert"
]
test_doctor_case/web_case/test_artemis_order_id_detail.py
deleted
100644 → 0
View file @
eab09f01
import
pytest
from
ids_list
import
get_ids
import
path_setting
from
in_common.base_request
import
BaseRequest
from
all_doctor_api.web_request
import
web_request
class
TestArtemisOrderIdDetail
:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
ORDERIDDETAIL
)
orderiddetail_case
,
orderiddetail_data
=
get_ids
(
data
,
"artemis_order_id_detail"
)
@pytest.mark.parametrize
(
"param"
,
orderiddetail_data
,
ids
=
orderiddetail_case
)
def
test_artemis_order_id_detail
(
self
,
param
):
'''我的服务订单'''
r
=
web_request
()
.
artemis_order_id_detail
()
if
r
[
"error"
]
==
0
:
assert
r
[
"data"
][
"detail_type"
]
==
param
[
"assert_detail_type"
]
assert
r
[
"data"
][
"status"
]
==
param
[
"assert_status"
]
test_doctor_case/web_case/test_artemis_order_list.py
deleted
100644 → 0
View file @
eab09f01
import
pytest
from
ids_list
import
get_ids
import
path_setting
from
in_common.base_request
import
BaseRequest
from
all_doctor_api.web_request
import
web_request
class
TestArtemisOrderList
:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
ORDERLIST
)
orderlist_case
,
orderlist_data
=
get_ids
(
data
,
"artemis_order_list"
)
@pytest.mark.parametrize
(
"param"
,
orderlist_data
,
ids
=
orderlist_case
)
def
test_artemis_order_list
(
self
,
param
):
'''我的服务订单'''
r
=
web_request
()
.
artemis_order_list
(
param
[
"status"
],
param
[
"page"
])
if
r
[
"error"
]
==
0
:
orders
=
r
.
get
(
"data"
)
.
get
(
"orders"
,
[])
assert
len
(
orders
)
>=
param
[
"assert"
]
test_doctor_case/web_case/test_article_videotoken.py
deleted
100644 → 0
View file @
eab09f01
import
pytest
import
path_setting
from
all_doctor_api.web_request
import
web_request
from
ids_list
import
get_ids
from
in_common.base_request
import
BaseRequest
class
TestArticleVideotoken
:
article_videotoken
=
BaseRequest
()
.
api_load
(
path_setting
.
ARTICLE_DATA
)
ArticleVideotoken_case
,
ArticleVideotoken_data
=
get_ids
(
article_videotoken
,
"article_videotoken"
)
@pytest.mark.parametrize
(
"param"
,
ArticleVideotoken_data
,
ids
=
ArticleVideotoken_case
)
def
test_ArticleVideotokent
(
self
,
param
):
r
=
web_request
()
.
article_videotoken
()
print
(
"======="
,
r
)
if
r
[
"error"
]
==
0
:
assert
r
[
"error"
]
==
param
[
"assert"
]
# elif r["error"] == 1:
# assert r["message"] == params["assert"]
\ No newline at end of file
test_doctor_case/web_case/test_conversation.py
deleted
100644 → 0
View file @
eab09f01
import
pytest
from
ids_list
import
get_ids
import
path_setting
from
in_common.base_request
import
BaseRequest
from
all_doctor_api.web_request
import
web_request
class
TestConversation
:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
CONVERSATION
)
conversation_case
,
conversation_data
=
get_ids
(
data
,
"conversation"
)
@pytest.mark.parametrize
(
"param"
,
conversation_data
,
ids
=
conversation_case
)
def
test_conversation
(
self
,
param
):
'''全部私信列表'''
r
=
web_request
()
.
conversation
(
param
[
"is_star"
],
param
[
"page"
])
if
r
[
"error"
]
==
0
:
conversation
=
r
.
get
(
"data"
)
.
get
(
"conversation"
,
[])
assert
len
(
conversation
)
<=
param
[
"assert"
]
assert
r
[
"data"
][
"size"
]
<=
param
[
"assert_size"
]
test_doctor_case/web_case/test_conversation_coupon.py
deleted
100644 → 0
View file @
eab09f01
import
pytest
from
ids_list
import
get_ids
import
path_setting
from
in_common.base_request
import
BaseRequest
from
all_doctor_api.web_request
import
web_request
class
TestService
:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
CONVERSATIONCOUPON
)
conversationcoupon_case
,
conversationcoupon_data
=
get_ids
(
data
,
"conversation_coupon"
)
@pytest.mark.parametrize
(
"param"
,
conversationcoupon_data
,
ids
=
conversationcoupon_case
)
def
test_conversation_coupon
(
self
,
param
):
'''发送美券按钮'''
r
=
web_request
()
.
conversation_coupon
(
param
[
"doctor_user_id"
])
if
r
[
"error"
]
==
0
:
data1
=
r
.
get
(
"data"
,
[])
assert
len
(
data1
)
>=
param
[
"assert"
]
test_doctor_case/web_case/test_conversation_diary.py
deleted
100644 → 0
View file @
eab09f01
import
pytest
from
ids_list
import
get_ids
import
path_setting
from
in_common.base_request
import
BaseRequest
from
all_doctor_api.web_request
import
web_request
class
TestConversationDiary
:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
CONVERSATIONDIARY
)
conversationdiary_case
,
conversationdiary_data
=
get_ids
(
data
,
"conversation_diary"
)
@pytest.mark.parametrize
(
"param"
,
conversationdiary_data
,
ids
=
conversationdiary_case
)
def
test_conversation_diary
(
self
,
param
):
'''点击发送案例按钮'''
r
=
web_request
()
.
conversation_diary
(
param
[
"doctor_user_id"
])
print
(
r
)
if
r
[
"error"
]
==
0
:
data
=
r
.
get
(
"data"
,
[])
assert
len
(
data
)
>=
param
[
"assert"
]
test_doctor_case/web_case/test_conversation_unread_list.py
deleted
100644 → 0
View file @
eab09f01
import
pytest
from
ids_list
import
get_ids
import
path_setting
from
in_common.base_request
import
BaseRequest
from
all_doctor_api.web_request
import
web_request
class
TestConversationUnreadList
:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
CONVERSATIONUNREADLIST
)
unreadlist_case
,
unreadlist_data
=
get_ids
(
data
,
"conversation_unread_list"
)
@pytest.mark.parametrize
(
"param"
,
unreadlist_data
,
ids
=
unreadlist_case
)
def
test_conversation_unread_list
(
self
,
param
):
'''未读私信列表'''
r
=
web_request
()
.
conversation_unread_list
(
param
[
"page"
])
if
r
[
"error"
]
==
0
:
conversation
=
r
.
get
(
"data"
)
.
get
(
"conversation"
,
[])
assert
len
(
conversation
)
<=
param
[
"assert"
]
assert
r
[
"data"
][
"size"
]
<=
param
[
"assert_size"
]
test_doctor_case/web_case/test_conversation_user_id.py
deleted
100644 → 0
View file @
eab09f01
import
pytest
from
ids_list
import
get_ids
import
path_setting
from
in_common.base_request
import
BaseRequest
from
all_doctor_api.web_request
import
web_request
class
TestConversationUserID
:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
CONVERSATIONUSERID
)
userid_case
,
userid_data
=
get_ids
(
data
,
"conversation_user_id"
)
@pytest.mark.parametrize
(
"param"
,
userid_data
,
ids
=
userid_case
)
def
test_conversation_user_id
(
self
,
param
):
'''发送私信'''
r
=
web_request
()
.
conversation_user_id
(
param
[
"type"
],
param
[
"content"
],
param
[
"doctor_user_id"
],
param
[
"t"
],
param
[
"csrfmiddlewaretoken"
])
print
(
r
)
if
r
[
"error"
]
==
0
:
assert
r
[
"data"
][
"name"
]
==
param
[
"assert_name"
]
assert
r
[
"message"
]
==
param
[
"assert_message"
]
if
r
[
"error"
]
==
300009
:
assert
r
[
"message"
]
==
param
[
"assert_message1"
]
# if r["error"] == 300005:
# assert r["message"] == param["assert_message2"]#assert_message2: "该方法未经授权,无法访问"
test_doctor_case/web_case/test_cpc_homepage.py
deleted
100644 → 0
View file @
eab09f01
import
pytest
from
ids_list
import
get_ids
import
path_setting
from
in_common.base_request
import
BaseRequest
from
all_doctor_api.web_request
import
web_request
class
TestCpcHomepage
:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
CPCHOMEPAGE
)
cpchomepage_case
,
cpchomepage_data
=
get_ids
(
data
,
"cpc_homepage"
)
@pytest.mark.parametrize
(
"param"
,
cpchomepage_data
,
ids
=
cpchomepage_case
)
def
test_cpc_homepage
(
self
,
param
):
'''点点通-概览'''
r
=
web_request
()
.
cpc_homepage
()
if
r
[
"error"
]
==
0
:
if
r
[
"data"
][
"account"
]
<=
"0"
:
assert
r
[
"data"
][
"is_cpc"
]
==
param
[
"assert"
]
else
:
assert
r
[
"data"
][
"is_cpc"
]
==
param
[
"assert1"
]
test_doctor_case/web_case/test_doctor_submechanisms.py
deleted
100644 → 0
View file @
eab09f01
import
pytest
import
path_setting
from
all_doctor_api.web_request
import
web_request
from
ids_list
import
get_ids
from
in_common.base_request
import
BaseRequest
class
TestDoctorSubmechanisms
:
doctor_submechanisms
=
BaseRequest
()
.
api_load
(
path_setting
.
DOCTOR_DATA
)
DoctorSubmechanisms_case
,
DoctorSubmechanisms_data
=
get_ids
(
doctor_submechanisms
,
"doctor_submechanisms"
)
@pytest.mark.parametrize
(
"param"
,
DoctorSubmechanisms_data
,
ids
=
DoctorSubmechanisms_case
)
def
test_DoctorSubmechanisms_data
(
self
,
param
):
r
=
web_request
()
.
doctor_submechanisms
()
print
(
"======="
,
r
)
if
r
[
"error"
]
==
0
:
assert
r
[
"error"
]
==
param
[
"assert"
]
# elif r["error"] == 1:
# assert r["message"] == params["assert"]
\ No newline at end of file
test_doctor_case/web_case/test_service.py
deleted
100644 → 0
View file @
eab09f01
import
pytest
from
ids_list
import
get_ids
import
path_setting
from
in_common.base_request
import
BaseRequest
from
all_doctor_api.web_request
import
web_request
class
TestService
:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
SERVICE
)
service_case
,
service_data
=
get_ids
(
data
,
"service"
)
@pytest.mark.parametrize
(
"param"
,
service_data
,
ids
=
service_case
)
def
test_service
(
self
,
param
):
'''未读私信列表'''
r
=
web_request
()
.
service
()
if
r
[
"error"
]
==
0
:
data
=
r
.
get
(
"data"
)
.
get
(
"data"
,
[])
assert
len
(
data
)
<=
param
[
"assert"
]
assert
r
[
"data"
][
"size"
]
<=
param
[
"assert_size"
]
test_doctor_case/web_case/test_service_all.py
deleted
100644 → 0
View file @
eab09f01
import
pytest
import
path_setting
from
all_doctor_api.web_request
import
web_request
from
ids_list
import
get_ids
from
in_common.base_request
import
BaseRequest
class
TestServiceAll
:
service_all
=
BaseRequest
()
.
api_load
(
path_setting
.
SERVICEALL_DATA
)
ServiceAll_case
,
ServiceAll_data
=
get_ids
(
service_all
,
"service_all"
)
@pytest.mark.parametrize
(
"param"
,
ServiceAll_data
,
ids
=
ServiceAll_case
)
def
test_ServiceAll
(
self
,
param
):
r
=
web_request
()
.
service_all
()
print
(
"====="
,
r
)
if
r
[
"error"
]
==
0
:
assert
r
[
"error"
]
==
param
[
"assert"
]
\ No newline at end of file
test_doctor_case/web_case/test_service_offline.py
deleted
100644 → 0
View file @
eab09f01
import
pytest
import
path_setting
from
all_doctor_api.web_request
import
web_request
from
ids_list
import
get_ids
from
in_common.base_request
import
BaseRequest
class
TestServiceOffline
:
service_offline
=
BaseRequest
()
.
api_load
(
path_setting
.
OFFLINE_DATA
)
ServiceOffline_case
,
ServiceOffline_data
=
get_ids
(
service_offline
,
"service_offline"
)
@pytest.mark.parametrize
(
"params"
,
ServiceOffline_data
,
ids
=
ServiceOffline_case
)
def
test_ServiceOffline_data
(
self
,
params
):
r
=
web_request
()
.
service_offline
(
params
[
'id'
],
params
[
'csrfmiddlewaretoken'
])
print
(
"======="
,
r
)
if
r
[
"error"
]
==
0
:
assert
r
[
"error"
]
==
params
[
"assert"
]
test_doctor_data/__init__.py
deleted
100644 → 0
View file @
eab09f01
test_doctor_data/glmer_data/__init__.py
deleted
100644 → 0
View file @
eab09f01
test_doctor_data/glmer_data/service_detail.yaml
deleted
100644 → 0
View file @
eab09f01
service_detail
:
-
case
:
"
编辑商品-进入商品详情页
"
assert
:
0
test_doctor_data/glmer_data/service_register.yaml
deleted
100644 → 0
View file @
eab09f01
service_register
:
#我的商品菜单下有数据返回1
-
case
:
"
发布(新增)商品-保存商品"
name
:
"
激光溶脂瘦脸"
project_type
:
"
[236]"
upgrade
:
"
true"
short_description
:
"
测试"
doctor_id
:
"
wangyang"
start_time
:
"
1624377600"
end_time
:
"
1627660800"
photo_details
:
"
<p>12</p>"
image_header
:
"
https://heras.igengmei.com/service/2021/06/01/0b9b110e60"
video_token
:
"
UPCOYIJkZOMcdd9FDzpBqYjzWUh55fBpVi3AhWpL:nBdvXYz_CR7wNcuroo3TLyvuQiY=:eyJzY29wZSI6InZpZGVvIiwiZGVhZGxpbmUiOjE2MjI1MTg2NTd9"
service_type
:
"
0"
is_specialreview
:
"
false"
reservation
:
"
1"
have_extra_pay
:
"
false"
is_draft
:
"
0"
items
:
'
[{"gengmei_price":100,"original_price":200,"is_online":true}]'
csrfmiddlewaretoken
:
"
PC8uTySuxipukIMuqNV1OPB376C2ZZ3g"
assert
:
0
test_doctor_data/glmer_data/tag_properties.yaml
deleted
100644 → 0
View file @
eab09f01
tag_properties
:
-
case
:
"
我的商品-编辑可标准化商品
"
catalog_ids
:
"
[115,141]"
assert
:
0
test_doctor_data/web2_data/__init__.py
deleted
100644 → 0
View file @
eab09f01
test_doctor_data/web2_data/artemis_ad_add_shopping_cart_info.yaml
deleted
100644 → 0
View file @
eab09f01
artemis_ad_add_shopping_cart_info
:
#我的购物车case
-
case
:
"
我的购物车"
assert
:
0
test_doctor_data/web2_data/artemis_add_value_order_id_detail.yaml
deleted
100644 → 0
View file @
eab09f01
artemis_add_value_order_id_detail
:
#已购买case
-
case
:
"
已购买"
assert
:
"
已购买"
test_doctor_data/web2_data/service_delete.yaml
deleted
100644 → 0
View file @
eab09f01
service_delete
:
#我的商品-删除下线商品
-
case
:
"
我的商品-删除下线商品"
is_delete
:
"
1"
service_register_id
:
"
209863"
csrfmiddlewaretoken
:
"
PC8uTySuxipukIMuqNV1OPB376C2ZZ3g"
assert
:
0
test_doctor_data/web2_data/service_deletelist.yaml
deleted
100644 → 0
View file @
eab09f01
service_deletelist
:
#我的商品-商品回收站
-
case
:
"
我的商品-商品回收站"
page
:
"
1"
assert
:
0
\ No newline at end of file
test_doctor_data/web2_data/service_list.yaml
deleted
100644 → 0
View file @
eab09f01
service_list
:
#我的商品菜单下有数据返回1
-
case
:
"
我的商品-全部tab"
page
:
"
1"
pagesize
:
"
10"
is_online
:
"
-1"
extra_filter_choice
:
"
-1"
assert
:
1
-
case
:
"
我的商品-上线tab"
page
:
"
1"
pagesize
:
"
10"
is_online
:
"
-1"
extra_filter_choice
:
"
-1"
assert
:
1
-
case
:
"
我的商品-下线tab"
page
:
"
1"
pagesize
:
"
10"
is_online
:
"
0"
extra_filter_choice
:
"
-1"
assert
:
1
-
case
:
"
我的商品-待升级(全部tab)"
page
:
"
1"
pagesize
:
"
10"
is_online
:
"
-1"
extra_filter_choice
:
"
0"
assert
:
1
-
case
:
"
我的商品-待修改类目(全部tab)有数据返回"
page
:
"
1"
pagesize
:
"
10"
is_online
:
"
-1"
extra_filter_choice
:
"
1"
assert
:
1
test_doctor_data/web2_data/service_review_list.yaml
deleted
100644 → 0
View file @
eab09f01
service_review_list
:
#有数据返回
-
case
:
"
商品审核-新商品审核
"
page
:
"
1"
pagesize
:
"
10"
type
:
"
0"
assert
:
1
-
case
:
"
商品审核-商品修改审核"
page
:
"
1"
pagesize
:
"
10"
type
:
"
1"
assert
:
1
-
case
:
"
商品审核-新商品审核"
page
:
"
1"
pagesize
:
"
10"
type
:
"
2"
assert
:
1
test_doctor_data/web2_data/servicereview_option.yaml
deleted
100644 → 0
View file @
eab09f01
servicereview_option
:
#有数据返回
-
case
:
"
新商品审核-撤回审核"
id
:
"
209989"
type
:
"
1"
csrfmiddlewaretoken
:
"
PC8uTySuxipukIMuqNV1OPB376C2ZZ3g"
assert
:
0
-
case
:
"
新商品审核-取消申请"
id
:
"
209744"
type
:
"
0"
csrfmiddlewaretoken
:
"
PC8uTySuxipukIMuqNV1OPB376C2ZZ3g"
assert
:
0
-
case
:
"
商品修改审核-撤回审核
"
id
:
"
209866"
type
:
"
1"
csrfmiddlewaretoken
:
"
PC8uTySuxipukIMuqNV1OPB376C2ZZ3g"
assert
:
0
-
case
:
"
新商品审核-取消申请"
id
:
"
209996"
type
:
"
0"
csrfmiddlewaretoken
:
"
PC8uTySuxipukIMuqNV1OPB376C2ZZ3g"
assert
:
0
test_doctor_data/web2_data/tag_all.yaml
deleted
100644 → 0
View file @
eab09f01
tag_all
:
-
case
:
"
发布商品-选择类目跳转发布商品页面tag接口
"
assert
:
0
\ No newline at end of file
test_doctor_data/web_data/__init__.py
deleted
100644 → 0
View file @
eab09f01
test_doctor_data/web_data/account_unreadbadgecount.yaml
deleted
100644 → 0
View file @
eab09f01
account_unreadbadgecount
:
-
case
:
"
发布商品-选择类目跳转发布商品页面account接口
"
assert
:
0
\ No newline at end of file
test_doctor_data/web_data/artemis_ad_type_list.yaml
deleted
100644 → 0
View file @
eab09f01
artemis_ad_type_list
:
#服务资源case
-
case
:
"
服务资源"
assert
:
0
assert_account
:
0
assert1
:
True
test_doctor_data/web_data/artemis_order_id_detail.yaml
deleted
100644 → 0
View file @
eab09f01
artemis_order_id_detail
:
#已上线订单服务订单详情页case
-
case
:
"
已上线订单服务订单详情页case"
assert_status
:
3
assert_detail_type
:
6
test_doctor_data/web_data/artemis_order_list.yaml
deleted
100644 → 0
View file @
eab09f01
artemis_order_list
:
#我的服务订单case
-
case
:
"
我的服务订单请求失败case"
status
:
"
"
page
:
1
assert
:
0
-
case
:
"
我的服务订单-待支付广告包case"
status
:
0
page
:
1
assert
:
0
-
case
:
"
我的服务订单-已购买case"
status
:
1
page
:
1
assert
:
0
-
case
:
"
我的服务订单-待审核case"
status
:
2
page
:
1
assert
:
0
-
case
:
"
我的服务订单-待上线case"
status
:
3
page
:
1
assert
:
0
-
case
:
"
我的服务订单-上线中case"
status
:
4
page
:
1
assert
:
0
-
case
:
"
我的服务订单-已下线case"
status
:
5
page
:
1
assert
:
0
-
case
:
"
我的服务订单-已支付广告包case"
status
:
6
page
:
1
assert
:
0
-
case
:
"
我的服务订单-已关闭广告包case"
status
:
7
page
:
1
assert
:
0
test_doctor_data/web_data/article_videotoken.yaml
deleted
100644 → 0
View file @
eab09f01
article_videotoken
:
-
case
:
"
发布商品-选择类目跳转发布商品页面article接口
"
assert
:
0
\ No newline at end of file
test_doctor_data/web_data/conversation.yaml
deleted
100644 → 0
View file @
eab09f01
conversation
:
#全部私信case
-
case
:
"
请求成功,有数据返回的第一页数据"
is_star
:
0
page
:
1
assert_size
:
10
assert
:
10
test_doctor_data/web_data/conversation_coupon.yaml
deleted
100644 → 0
View file @
eab09f01
conversation_coupon
:
#私信点击发送优惠券case
-
case
:
"
点击私信发送优惠券按钮"
doctor_user_id
:
"
602329"
assert
:
0
-
case
:
"
点击私信发送优惠券按钮接口报错"
doctor_user_id
:
"
602329"
assert
:
0
assert_message
:
'
缺少参数:
doctor_user_id'
assert_data
:
None
test_doctor_data/web_data/conversation_diary.yaml
deleted
100644 → 0
View file @
eab09f01
conversation_diary
:
#私信点击发送案例case
-
case
:
"
点击私信发送案例按钮"
doctor_user_id
:
602329
assert
:
0
test_doctor_data/web_data/conversation_unread_list.yaml
deleted
100644 → 0
View file @
eab09f01
conversation_unread_list
:
#未读私信case
-
case
:
"
请求成功,有未读消息"
page
:
1
assert_size
:
10
assert
:
10
test_doctor_data/web_data/conversation_user_id.yaml
deleted
100644 → 0
View file @
eab09f01
conversation_user_id
:
#发送私信case
-
case
:
"
发送成功"
type
:
0
content
:
您好
doctor_user_id
:
602329
t
:
271caac2ae1687ca0a56ee18115b8183
csrfmiddlewaretoken
:
NLeTxEx1BOQo1zjv2us9BQ00ViMAHGpJ
assert_message
:
"
消息发送成功"
assert_name
:
"
露露2"
-
case
:
"
发送失败"
type
:
0
content
:
您好
doctor_user_id
:
6023291
t
:
271caac2ae1687ca0a56ee18115b8183
csrfmiddlewaretoken
:
NLeTxEx1BOQo1zjv2us9BQ00ViMAHGpJ
assert_message1
:
"
没有权限!"
assert_name1
:
"
露露2"
test_doctor_data/web_data/cpc_homepage.yaml
deleted
100644 → 0
View file @
eab09f01
cpc_homepage
:
#点点通商品-概览case
-
case
:
"
点点通商品概览"
#doctor_user_id: "602329"
assert
:
False
assert_account
:
0
assert1
:
True
test_doctor_data/web_data/doctor_submechanisms.yaml
deleted
100644 → 0
View file @
eab09f01
doctor_submechanisms
:
-
case
:
"
发布商品-选择类目跳转发布商品页面doctor接口
"
assert
:
0
\ No newline at end of file
test_doctor_data/web_data/service.yaml
deleted
100644 → 0
View file @
eab09f01
service
:
#私信点击发送商品case
-
case
:
"
点击私信发送商品按钮"
#page: 1
assert_size
:
10
assert
:
10
test_doctor_data/web_data/service_all.yaml
deleted
100644 → 0
View file @
eab09f01
service_all
:
-
case
:
"
编辑商品、上线商品"
assert
:
0
\ No newline at end of file
test_doctor_data/web_data/service_offline.yaml
deleted
100644 → 0
View file @
eab09f01
service_offline
:
-
case
:
"
我的商品-下线商品"
id
:
209992
csrfmiddlewaretoken
:
PC8uTySuxipukIMuqNV1OPB376C2ZZ3g
assert
:
0
test_om_case/__init__.py
deleted
100644 → 0
View file @
eab09f01
test_om_case/beautycard_case/__init__.py
deleted
100644 → 0
View file @
eab09f01
test_om_case/beautycard_case/test_check_sku_ids.py
deleted
100644 → 0
View file @
eab09f01
import
pytest
import
path_setting
from
all_om_api.beautycard_request
import
beautycard_request
from
ids_list
import
get_ids
from
in_common.base_request
import
BaseRequest
#更美次卡-按次卡sku_id导入,导入校验
class
TestCheckSkuIds
:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
CHECK_SKU_IDS
)
check_sku_ids_case
,
check_sku_ids_data
=
get_ids
(
data
,
"check_sku_ids"
)
@pytest.mark.parametrize
(
"param"
,
check_sku_ids_data
,
ids
=
check_sku_ids_case
)
def
test_check_sku_ids
(
self
,
param
):
r
=
beautycard_request
()
.
check_sku_ids
(
param
[
"sku_ids"
])
if
r
[
"code"
]
==
0
:
if
r
[
"data"
][
0
][
"status"
]
==
1
:
print
(
"成功导入次卡"
)
assert
r
[
"data"
][
0
][
"reason"
]
==
param
[
"assert"
]
else
:
print
(
"次卡不能成功导入"
)
assert
r
[
"data"
][
0
][
"reason"
]
==
param
[
"assert"
]
if
r
[
"code"
]
==
1
:
print
(
"接口有误"
)
\ No newline at end of file
test_om_case/beautycard_case/test_check_spu_ids.py
deleted
100644 → 0
View file @
eab09f01
import
pytest
import
path_setting
from
all_om_api.beautycard_request
import
beautycard_request
from
ids_list
import
get_ids
from
in_common.base_request
import
BaseRequest
#更美次卡-按次卡spu_id导入,导入校验
class
TestCheckSpuIds
:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
CHECK_SPU_IDS
)
check_spu_ids_case
,
check_spu_ids_data
=
get_ids
(
data
,
"check_spu_ids"
)
@pytest.mark.parametrize
(
"param"
,
check_spu_ids_data
,
ids
=
check_spu_ids_case
)
def
test_check_spu_ids
(
self
,
param
):
r
=
beautycard_request
()
.
check_spu_ids
(
param
[
"spu_ids"
])
if
r
[
"code"
]
==
0
:
if
r
[
"data"
][
0
][
"status"
]
==
1
:
print
(
"成功导入次卡"
)
assert
r
[
"data"
][
0
][
"reason"
]
==
param
[
"assert"
]
else
:
print
(
"次卡不能成功导入"
)
assert
r
[
"data"
][
0
][
"reason"
]
==
param
[
"assert"
]
if
r
[
"code"
]
==
1
:
print
(
"接口有误"
)
\ No newline at end of file
test_om_case/beautycard_case/test_delete_related_bc.py
deleted
100644 → 0
View file @
eab09f01
import
pytest
import
path_setting
from
all_om_api.beautycard_request
import
beautycard_request
from
ids_list
import
get_ids
from
in_common.base_request
import
BaseRequest
#更美次卡-删除/批量删除已添加页面次卡
class
TestDeleteRelatedBc
:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
DELETE_RELATED_BC
)
delete_related_bc_case
,
delete_related_bc_data
=
get_ids
(
data
,
"delete_related_bc"
)
@pytest.mark.parametrize
(
"param"
,
delete_related_bc_data
,
ids
=
delete_related_bc_case
)
def
test_delete_related_bc
(
self
,
param
):
r
=
beautycard_request
()
.
delete_related_bc
(
param
[
"unit_id"
],
param
[
"bc_sku_ids"
],
param
[
"bc_spu_ids"
],
param
[
"related_type"
])
if
r
[
"code"
]
==
0
:
print
(
"成功删除已添加页面次卡"
)
assert
r
[
"data"
]
==
param
[
"assert"
]
if
r
[
"code"
]
==
1
:
print
(
"未删除已添加页面次卡"
)
\ No newline at end of file
test_om_case/beautycard_case/test_export_related_bc.py
deleted
100644 → 0
View file @
eab09f01
import
pytest
import
path_setting
from
all_om_api.beautycard_request
import
beautycard_request
from
ids_list
import
get_ids
from
in_common.base_request
import
BaseRequest
#更美次卡-获取已添加页面次卡spu/sku列表
class
TestExportRelatedBc
:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
EXPORT_RELATED_BC
)
export_related_bc_case
,
export_related_bc_data
=
get_ids
(
data
,
"export_related_bc"
)
@pytest.mark.parametrize
(
"param"
,
export_related_bc_data
,
ids
=
export_related_bc_case
)
def
test_export_related_bc
(
self
,
param
):
r
=
beautycard_request
()
.
export_related_bc
(
param
[
"unit_id"
],
param
[
"bc_sku_id"
],
param
[
"bc_spu_id"
])
if
r
[
"data"
]:
print
(
"成功导出已添加页面次卡信息"
)
assert
len
(
r
[
"data"
][
"beauty_cards"
])
!=
param
[
"assert"
]
if
not
r
[
"data"
]:
print
(
"未导出已添加页面次卡信息"
)
\ No newline at end of file
test_om_case/beautycard_case/test_get_related_bc.py
deleted
100644 → 0
View file @
eab09f01
import
pytest
import
path_setting
from
all_om_api.beautycard_request
import
beautycard_request
from
ids_list
import
get_ids
from
in_common.base_request
import
BaseRequest
#更美次卡-获取已添加页面次卡spu/sku列表
class
TestGetRelatedBc
:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
GET_RELATED_BC
)
get_related_bc_case
,
get_related_bc_data
=
get_ids
(
data
,
"get_related_bc"
)
@pytest.mark.parametrize
(
"param"
,
get_related_bc_data
,
ids
=
get_related_bc_case
)
def
test_get_related_bc
(
self
,
param
):
r
=
beautycard_request
()
.
get_related_bc
(
param
[
"unit_id"
],
param
[
"bc_sku_id"
],
param
[
"bc_spu_id"
],
param
[
"page"
],
param
[
"page_size"
])
if
r
[
"data"
]:
print
(
"成功获取已添加页面次卡spu/sku列表"
)
assert
len
(
r
[
"data"
][
"beauty_cards"
])
!=
param
[
"assert"
]
if
not
r
[
"data"
]:
print
(
"未获取到已添加页面次卡spu/sku列表"
)
\ No newline at end of file
test_om_case/beautycard_case/test_update_bc_rank.py
deleted
100644 → 0
View file @
eab09f01
import
pytest
import
path_setting
from
all_om_api.beautycard_request
import
beautycard_request
from
ids_list
import
get_ids
from
in_common.base_request
import
BaseRequest
#更美次卡-更改次卡排序
class
TestUpdateBcRank
:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
UPDATE_BC_RANK
)
update_bc_rank_case
,
update_bc_rank_data
=
get_ids
(
data
,
"update_bc_rank"
)
@pytest.mark.parametrize
(
"param"
,
update_bc_rank_data
,
ids
=
update_bc_rank_case
)
def
test_update_bc_rank
(
self
,
param
):
r
=
beautycard_request
()
.
update_bc_rank
(
param
[
"unit_id"
],
param
[
"related_id"
],
param
[
"related_type"
],
param
[
"rank"
])
if
r
[
"code"
]
==
0
:
print
(
"成功修改已添加页面该次卡排序"
)
assert
r
[
"data"
]
==
param
[
"assert"
]
if
r
[
"code"
]
==
1
:
print
(
"未能修改已添加页面该次卡排序"
)
\ No newline at end of file
test_om_case/om_login_case/__init__.py
deleted
100644 → 0
View file @
eab09f01
test_om_case/om_login_case/test_om_login.py
deleted
100644 → 0
View file @
eab09f01
import
pytest
import
path_setting
from
all_om_api.login_request
import
login_request
from
ids_list
import
get_ids
from
in_common.base_request
import
BaseRequest
#om后台-登录
class
TestOmLogin
:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
OMLOGIN
)
om_login_case
,
om_login_data
=
get_ids
(
data
,
"om_login"
)
@pytest.mark.parametrize
(
"param"
,
om_login_data
,
ids
=
om_login_case
)
def
test_om_login
(
self
,
param
):
r
=
login_request
()
.
om_login
(
param
[
"username"
],
param
[
"password"
])
if
r
[
"code"
]
==
0
:
print
(
"om后台成功登陆"
)
assert
r
[
"msg"
]
==
param
[
"assert"
]
if
r
[
"code"
]
!=
0
:
print
(
"om后台登陆出错"
)
assert
r
[
"msg"
]
==
param
[
"assert"
]
\ No newline at end of file
test_om_data/__init__.py
deleted
100644 → 0
View file @
eab09f01
test_om_data/beautycard_data/__init__.py
deleted
100644 → 0
View file @
eab09f01
test_om_data/beautycard_data/check_sku_ids.yaml
deleted
100644 → 0
View file @
eab09f01
#更美次卡-按次卡sku_id导入,导入校验
check_sku_ids
:
#按SKU导入-导入单条数据,导入成功
-
case
:
"
按SKU导入-导入单条数据,导入成功"
sku_ids
:
'
[{"import_id":"10066","rank":0,"row":1}]'
assert
:
'
'
#按SKU导入-导入单条数据,ID不存在
-
case
:
"
按SKU导入-导入单条数据,ID不存在"
sku_ids
:
'
[{"import_id":"100666","rank":0,"row":1}]'
assert
:
ID不存在
#按SKU导入-导入单条数据,暂无适用机构
-
case
:
"
按SKU导入-导入单条数据,暂无适用机构"
sku_ids
:
'
[{"import_id":"10023","rank":0,"row":1}]'
assert
:
暂无适用机构
#按SKU导入-导入单条数据,已下线
-
case
:
"
按SKU导入-导入单条数据,已下线"
sku_ids
:
'
[{"import_id":"10022","rank":0,"row":1}]'
assert
:
已下线
#按SKU导入-导入单条数据,ID格式错误
-
case
:
"
按SKU导入-导入单条数据,ID格式错误"
sku_ids
:
'
[{"import_id":"我","rank":0,"row":1}]'
assert
:
ID格式错误
#按SKU导入-导入多条数据,导入成功
-
case
:
"
按SKU导入-导入多条数据,导入成功"
sku_ids
:
'
[{"import_id":"10242","rank":0,"row":1},{"import_id":"10243","rank":0,"row":1},{"import_id":"10244","rank":0,"row":1}]'
assert
:
'
'
\ No newline at end of file
test_om_data/beautycard_data/check_spu_ids.yaml
deleted
100644 → 0
View file @
eab09f01
#更美次卡-按次卡spu_id导入,导入校验
check_spu_ids
:
#按SPU导入-导入单条数据,导入成功
-
case
:
"
按SPU导入-导入单条数据,导入成功"
spu_ids
:
'
[{"import_id":"100052","rank":0,"row":1}]'
assert
:
'
'
#按SPU导入-导入单条数据,ID不存在
-
case
:
"
按SPU导入-导入单条数据,ID不存在"
spu_ids
:
'
[{"import_id":"1000522","rank":0,"row":1}]'
assert
:
ID不存在
#按SPU导入-导入单条数据,暂无适用机构
-
case
:
"
按SPU导入-导入单条数据,暂无适用机构"
spu_ids
:
'
[{"import_id":"100022","rank":0,"row":1}]'
assert
:
暂无适用机构
#按SPU导入-导入单条数据,已下线
-
case
:
"
按SPU导入-导入单条数据,已下线"
spu_ids
:
'
[{"import_id":"100035","rank":0,"row":1}]'
assert
:
已下线
#按SPU导入-导入单条数据,ID格式错误
-
case
:
"
按SPU导入-导入单条数据,ID格式错误"
spu_ids
:
'
[{"import_id":"我","rank":0,"row":1}]'
assert
:
ID格式错误
#按SPU导入-导入多条数据,导入成功
-
case
:
"
按SPU导入-导入多条数据,导入成功"
spu_ids
:
'
[{"import_id":"100055","rank":1,"row":1},{"import_id":"100056","rank":2,"row":1},{"import_id":"100057","rank":3,"row":1}]'
assert
:
'
'
\ No newline at end of file
test_om_data/beautycard_data/delete_related_bc.yaml
deleted
100644 → 0
View file @
eab09f01
#更美次卡-删除/批量删除已添加页面次卡
delete_related_bc
:
#按SPU导入-已添加页面删除单条数据
-
case
:
"
按SPU导入-已添加页面删除单条数据"
unit_id
:
"
19896"
bc_sku_ids
:
"
[]"
bc_spu_ids
:
"
[28]"
related_type
:
"
7"
assert
:
1
#按SPU导入-已添加页面删除多条数据
-
case
:
"
按SPU导入-已添加页面删除多条数据"
unit_id
:
"
19896"
bc_sku_ids
:
"
[]"
bc_spu_ids
:
"
[30,31,33]"
related_type
:
"
7"
assert
:
3
#按SKU导入-已添加页面删除单条数据
-
case
:
"
按SKU导入-已添加页面删除单条数据"
unit_id
:
"
19933"
bc_sku_ids
:
"
[10144]"
bc_spu_ids
:
"
[]"
related_type
:
"
8"
assert
:
1
#按SKU导入-已添加页面删除多条数据
-
case
:
"
按SKU导入-已添加页面删除多条数据"
unit_id
:
"
19933"
bc_sku_ids
:
"
[10141,10142]"
bc_spu_ids
:
"
[]"
related_type
:
"
8"
assert
:
2
\ No newline at end of file
test_om_data/beautycard_data/export_related_bc.yaml
deleted
100644 → 0
View file @
eab09f01
#更美次卡-已添加页面全部导出
export_related_bc
:
#按SPU导入-已添加页面全部导出功能
-
case
:
"
按SPU导入-已添加页面全部导出功能"
unit_id
:
"
19896"
bc_sku_id
:
"
"
bc_spu_id
:
"
"
assert
:
0
#按SKU导入-已添加页面全部导出功能
-
case
:
"
按SKU导入-已添加页面全部导出功能"
unit_id
:
"
19933"
bc_sku_id
:
"
"
bc_spu_id
:
"
"
assert
:
0
\ No newline at end of file
test_om_data/beautycard_data/get_related_bc.yaml
deleted
100644 → 0
View file @
eab09f01
#更美次卡-获取已添加页面次卡spu/sku列表
get_related_bc
:
#按SPU导入-根据专题id获取已添加页面次卡spu列表
-
case
:
"
按SPU导入-根据专题id获取已添加页面次卡spu列表"
unit_id
:
"
20105"
bc_sku_id
:
"
"
bc_spu_id
:
"
"
page
:
"
0"
page_size
:
"
10"
assert
:
0
#按SPU导入-根据专题和次卡spu_id获取已添加页面次卡spu列表
-
case
:
"
按SPU导入-根据专题和次卡spu_id获取已添加页面次卡spu列表"
unit_id
:
"
20105"
bc_sku_id
:
"
"
bc_spu_id
:
"
100023"
page
:
"
0"
page_size
:
"
10"
assert
:
0
#按SKU导入-根据专题id获取已添加页面次卡spu列表
-
case
:
"
按SKU导入-根据专题id获取已添加页面次卡spu列表"
unit_id
:
"
20106"
bc_sku_id
:
"
"
bc_spu_id
:
"
"
page
:
"
0"
page_size
:
"
10"
assert
:
0
#按SKU导入-根据专题和次卡spu_id获取已添加页面次卡spu列表
-
case
:
"
按SKU导入-根据专题和次卡spu_id获取已添加页面次卡spu列表"
unit_id
:
"
20106"
bc_sku_id
:
"
"
bc_spu_id
:
"
100023"
page
:
"
0"
page_size
:
"
10"
assert
:
0
#按SKU导入-根据专题和次卡sku_id获取已添加页面次卡spu和sku列表
-
case
:
"
按SKU导入-根据专题和次卡sku_id获取已添加页面次卡spu和sku列表"
unit_id
:
"
20106"
bc_sku_id
:
"
10066"
bc_spu_id
:
"
"
page
:
"
0"
page_size
:
"
10"
assert
:
0
#按SKU导入-根据专题和次卡spu_id、sku_id获取已添加页面次卡spu和sku列表
-
case
:
"
按SKU导入-根据专题和次卡spu_id、sku_id获取已添加页面次卡spu和sku列表"
unit_id
:
"
20106"
bc_sku_id
:
"
10066"
bc_spu_id
:
"
100023"
page
:
"
0"
page_size
:
"
10"
assert
:
0
#按SPU导入-录入错误的spu_id,点击查询
-
case
:
"
录入错误的spu_id,点击查询"
unit_id
:
"
20105"
bc_sku_id
:
"
"
bc_spu_id
:
"
1111111111111"
page
:
"
0"
page_size
:
"
10"
assert
:
0
#按SKU导入-录入错误的sku_id,点击查询
-
case
:
"
录入错误的sku_id,点击查询"
unit_id
:
"
20106"
bc_sku_id
:
"
111111111111"
bc_spu_id
:
"
"
page
:
"
0"
page_size
:
"
10"
assert
:
0
\ No newline at end of file
test_om_data/beautycard_data/update_bc_rank.yaml
deleted
100644 → 0
View file @
eab09f01
#更美次卡-更改次卡排序
update_bc_rank
:
#按SPU导入-更改次卡排序
-
case
:
"
按SPU导入-更改次卡排序"
unit_id
:
"
20105"
related_id
:
"
100023"
related_type
:
"
7"
rank
:
"
77"
assert
:
1
#按SKU导入-更改次卡排序
-
case
:
"
按SKU导入-更改次卡排序"
unit_id
:
"
20106"
related_id
:
"
10065"
related_type
:
"
8"
rank
:
"
11"
assert
:
1
\ No newline at end of file
test_om_data/om_login_data/__init__.py
deleted
100644 → 0
View file @
eab09f01
test_om_data/om_login_data/om_login.yaml
deleted
100644 → 0
View file @
eab09f01
om_login
:
#om后台-登录-输入正确的用户名和正确的密码
-
case
:
"
om后台-登录-输入正确的用户名和密码"
username
:
"
admin"
password
:
"
123123"
assert
:
success!
#om后台-登录-输入正确的用户名和错误的密码
-
case
:
"
om后台-登录-输入正确的用户名和错误的密码"
username
:
"
admin"
password
:
"
1231234"
assert
:
Login failed!
#om后台-登录-输入正确的用户名和不输入密码
-
case
:
"
om后台-登录-输入正确的用户名和不输入密码"
username
:
"
admin"
password
:
"
"
assert
:
Login failed!
#om后台-登录-输入正确的用户名和无效密码
-
case
:
"
om后台-登录-输入正确的用户名和无效密码"
username
:
"
admin"
password
:
"
哈哈"
assert
:
Login failed!
#om后台-登录-输入错误的用户名和正确的密码
-
case
:
"
om后台-登录-输入错误的用户名和正确的密码"
username
:
"
admin1"
password
:
"
123123"
assert
:
Login failed!
#om后台-登录-不输入用户名和输入正确的密码
-
case
:
"
om后台-登录-不输入用户名和输入正确的密码"
username
:
"
"
password
:
"
123123"
assert
:
Login failed!
#om后台-登录-输入无效用户名和正确的密码
-
case
:
"
om后台-登录-输入无效用户名和正确的密码"
username
:
"
哈哈"
password
:
"
123123"
assert
:
Login failed!
#om后台-登录-输入错误的用户名和输入错误的密码
-
case
:
"
om后台-登录-输入错误的用户名和输入错误的密码"
username
:
"
admin1"
password
:
"
1231234"
assert
:
Login failed!
#om后台-登录-不输入用户名和密码
-
case
:
"
om后台-登录-不输入用户名和密码"
username
:
"
"
password
:
"
"
assert
:
Login failed!
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