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.
46 lines
1.3 KiB
46 lines
1.3 KiB
1 month ago
|
from utils.request import api_request
|
||
|
#
|
||
|
|
||
|
|
||
|
def get_nddict_select_option_api():
|
||
|
|
||
|
return api_request(method='post', url='/dasset/nddict/forSelectOption', is_headers=True)
|
||
|
|
||
|
def get_nddict_list_api(page_obj: dict):
|
||
|
|
||
|
return api_request(method='post', url='/dasset/nddict/get', is_headers=True, json=page_obj)
|
||
|
|
||
|
|
||
|
def add_nddict_api(page_obj: dict):
|
||
|
|
||
|
return api_request(method='post', url='/dasset/nddict/add', is_headers=True, json=page_obj)
|
||
|
|
||
|
|
||
|
def edit_nddict_api(page_obj: dict):
|
||
|
|
||
|
return api_request(method='patch', url='/dasset/nddict/edit', is_headers=True, json=page_obj)
|
||
|
|
||
|
|
||
|
def delete_nddict_api(page_obj: dict):
|
||
|
|
||
|
return api_request(method='post', url='/dasset/nddict/delete', is_headers=True, json=page_obj)
|
||
|
|
||
|
|
||
|
def get_nddict_detail_api(onum: int):
|
||
|
|
||
|
return api_request(method='get', url=f'/dasset/nddict/{onum}', is_headers=True)
|
||
|
|
||
|
|
||
|
def export_nddict_list_api(page_obj: dict):
|
||
|
|
||
|
return api_request(method='post', url='/dasset/nddict/export', is_headers=True, json=page_obj, stream=True)
|
||
|
|
||
|
|
||
|
def batch_import_nddict_api(page_obj: dict):
|
||
|
|
||
|
return api_request(method='post', url='/dasset/nddict/importData', is_headers=True, json=page_obj)
|
||
|
|
||
|
|
||
|
def download_nddict_import_template_api():
|
||
|
|
||
|
return api_request(method='post', url='/dasset/nddict/importTemplate', is_headers=True, stream=True)
|