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.
49 lines
1.3 KiB
49 lines
1.3 KiB
1 month ago
|
from utils.request import api_request
|
||
|
|
||
|
|
||
|
def get_vecset_list_api(page_obj: dict):
|
||
|
|
||
|
return api_request(method='post', url='/dataint/vecset/get', is_headers=True, json=page_obj)
|
||
|
|
||
|
|
||
|
def add_vecset_api(page_obj: dict):
|
||
|
|
||
|
return api_request(method='post', url='/dataint/vecset/add', is_headers=True, json=page_obj)
|
||
|
|
||
|
|
||
|
def edit_vecset_api(page_obj: dict):
|
||
|
|
||
|
return api_request(method='patch', url='/dataint/vecset/edit', is_headers=True, json=page_obj)
|
||
|
|
||
|
|
||
|
def delete_vecset_api(page_obj: dict):
|
||
|
|
||
|
return api_request(method='post', url='/dataint/vecset/delete', is_headers=True, json=page_obj)
|
||
|
|
||
|
|
||
|
def get_vecset_detail_api(onum: int):
|
||
|
|
||
|
return api_request(method='get', url=f'/dataint/vecset/{onum}', is_headers=True)
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
def change_vecset_info_api(page_obj: dict):
|
||
|
|
||
|
return api_request(method='patch', url='/dataint/vecset/profile/changeInfo', is_headers=True, json=page_obj)
|
||
|
|
||
|
|
||
|
|
||
|
def export_vecset_list_api(page_obj: dict):
|
||
|
|
||
|
return api_request(method='post', url='/dataint/vecset/export', is_headers=True, json=page_obj, stream=True)
|
||
|
|
||
|
def batch_import_vecset_api(page_obj: dict):
|
||
|
|
||
|
return api_request(method='post', url='/dataint/vecset/importData', is_headers=True, json=page_obj)
|
||
|
|
||
|
|
||
|
def download_vecset_import_template_api():
|
||
|
|
||
|
return api_request(method='post', url='/dataint/vecset/importTemplate', is_headers=True, stream=True)
|