prgfile:add del flag

This commit is contained in:
xiang.zhou
2024-05-16 10:45:38 +08:00
parent 58775e1761
commit 27529b5a91
2 changed files with 3 additions and 2 deletions
+1
View File
@@ -906,6 +906,7 @@ inline static void neu_msg_exchange(neu_reqresp_head_t *header)
typedef struct {
char driver[NEU_NODE_NAME_LEN];
char path[128];
bool del_flag;
char prg_str_param1[128];
char prg_str_param2[128];
char prg_str_param3[128];
+2 -2
View File
@@ -295,8 +295,8 @@ def get_version():
return requests.get(url=config.BASE_URL + "/api/v2/version", headers={"Authorization": config.default_jwt})
def prgfile_upload(driver, path, params):
return requests.post(url=config.BASE_URL + "/api/v2/prgfile", headers={"Authorization": config.default_jwt}, json={"driver": driver, "path": path, "parameters": params})
def prgfile_upload(driver, path, del_flag, params):
return requests.post(url=config.BASE_URL + "/api/v2/prgfile", headers={"Authorization": config.default_jwt}, json={"driver": driver, "path": path, "del_flag": del_flag, "parameters": params})
def prgfile_process(driver):