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.
43 lines
1.3 KiB
43 lines
1.3 KiB
from utils.request import api_request
|
|
|
|
def get_tsmcb_select_option_api():
|
|
|
|
return api_request(method='post', url='/dataint/cypz/tsmcb/forSelectOption', is_headers=True)
|
|
|
|
def get_tsmcb_list_api(page_obj: dict):
|
|
|
|
return api_request(method='post', url='/dataint/cypz/tsmcb/get', is_headers=True, json=page_obj)
|
|
|
|
|
|
def add_tsmcb_api(page_obj: dict):
|
|
|
|
return api_request(method='post', url='/dataint/cypz/tsmcb/add', is_headers=True, json=page_obj)
|
|
|
|
|
|
def edit_tsmcb_api(page_obj: dict):
|
|
|
|
return api_request(method='patch', url='/dataint/cypz/tsmcb/edit', is_headers=True, json=page_obj)
|
|
|
|
|
|
def delete_tsmcb_api(page_obj: dict):
|
|
|
|
return api_request(method='post', url='/dataint/cypz/tsmcb/delete', is_headers=True, json=page_obj)
|
|
|
|
|
|
def get_tsmcb_detail_api(onum: int):
|
|
|
|
return api_request(method='get', url=f'/dataint/cypz/tsmcb/{onum}', is_headers=True)
|
|
|
|
|
|
def export_tsmcb_list_api(page_obj: dict):
|
|
|
|
return api_request(method='post', url='/dataint/cypz/tsmcb/export', is_headers=True, json=page_obj, stream=True)
|
|
|
|
def batch_import_tsmcb_api(page_obj: dict):
|
|
|
|
return api_request(method='post', url='/dataint/cypz/tsmcb/importData', is_headers=True, json=page_obj)
|
|
|
|
|
|
def download_tsmcb_import_template_api():
|
|
|
|
return api_request(method='post', url='/dataint/cypz/tsmcb/importTemplate', is_headers=True, stream=True)
|
|
|