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.
44 lines
1.3 KiB
44 lines
1.3 KiB
1 month ago
|
from utils.request import api_request
|
||
|
|
||
|
def get_cdplb_select_option_api():
|
||
|
|
||
|
return api_request(method='post', url='/dataint/cypz/cdplb/forSelectOption', is_headers=True)
|
||
|
|
||
|
def get_cdplb_list_api(page_obj: dict):
|
||
|
|
||
|
return api_request(method='post', url='/dataint/cypz/cdplb/get', is_headers=True, json=page_obj)
|
||
|
|
||
|
|
||
|
def add_cdplb_api(page_obj: dict):
|
||
|
|
||
|
return api_request(method='post', url='/dataint/cypz/cdplb/add', is_headers=True, json=page_obj)
|
||
|
|
||
|
|
||
|
def edit_cdplb_api(page_obj: dict):
|
||
|
|
||
|
return api_request(method='patch', url='/dataint/cypz/cdplb/edit', is_headers=True, json=page_obj)
|
||
|
|
||
|
|
||
|
def delete_cdplb_api(page_obj: dict):
|
||
|
|
||
|
return api_request(method='post', url='/dataint/cypz/cdplb/delete', is_headers=True, json=page_obj)
|
||
|
|
||
|
|
||
|
def get_cdplb_detail_api(onum: int):
|
||
|
|
||
|
return api_request(method='get', url=f'/dataint/cypz/cdplb/{onum}', is_headers=True)
|
||
|
|
||
|
|
||
|
def export_cdplb_list_api(page_obj: dict):
|
||
|
|
||
|
return api_request(method='post', url='/dataint/cypz/cdplb/export', is_headers=True, json=page_obj, stream=True)
|
||
|
|
||
|
def batch_import_cdplb_api(page_obj: dict):
|
||
|
|
||
|
return api_request(method='post', url='/dataint/cypz/cdplb/importData', is_headers=True, json=page_obj)
|
||
|
|
||
|
|
||
|
def download_cdplb_import_template_api():
|
||
|
|
||
|
return api_request(method='post', url='/dataint/cypz/cdplb/importTemplate', is_headers=True, stream=True)
|