You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
48 lines
1.3 KiB
48 lines
1.3 KiB
from utils.request import api_request
|
|
|
|
|
|
def get_sscf_list_api(page_obj: dict):
|
|
|
|
return api_request(method='post', url='/dataint/sscf/get', is_headers=True, json=page_obj)
|
|
|
|
|
|
def add_sscf_api(page_obj: dict):
|
|
|
|
return api_request(method='post', url='/dataint/sscf/add', is_headers=True, json=page_obj)
|
|
|
|
|
|
def edit_sscf_api(page_obj: dict):
|
|
|
|
return api_request(method='patch', url='/dataint/sscf/edit', is_headers=True, json=page_obj)
|
|
|
|
|
|
def delete_sscf_api(page_obj: dict):
|
|
|
|
return api_request(method='post', url='/dataint/sscf/delete', is_headers=True, json=page_obj)
|
|
|
|
|
|
def get_sscf_detail_api(onum: int):
|
|
|
|
return api_request(method='get', url=f'/dataint/sscf/{onum}', is_headers=True)
|
|
|
|
|
|
|
|
|
|
def change_sscf_info_api(page_obj: dict):
|
|
|
|
return api_request(method='patch', url='/dataint/sscf/profile/changeInfo', is_headers=True, json=page_obj)
|
|
|
|
|
|
|
|
def export_sscf_list_api(page_obj: dict):
|
|
|
|
return api_request(method='post', url='/dataint/sscf/export', is_headers=True, json=page_obj, stream=True)
|
|
|
|
def batch_import_sscf_api(page_obj: dict):
|
|
|
|
return api_request(method='post', url='/dataint/sscf/importData', is_headers=True, json=page_obj)
|
|
|
|
|
|
def download_sscf_import_template_api():
|
|
|
|
return api_request(method='post', url='/dataint/sscf/importTemplate', is_headers=True, stream=True)
|
|
|