|
@@ -151,7 +151,11 @@ class AlgorithmShopManageView(View):
|
|
|
"deviceAlgorithmExplain": device_algorithm_explain_list,
|
|
|
"translationNum": translation_num
|
|
|
})
|
|
|
- return response.json(0, device_algorithm_type_list)
|
|
|
+ data = {
|
|
|
+ 'list': device_algorithm_type_list,
|
|
|
+ 'total': paginator.count,
|
|
|
+ }
|
|
|
+ return response.json(0, data)
|
|
|
except Exception as e:
|
|
|
return response.json(500, 'error_line:{}, error_msg:{}'.format(e.__traceback__.tb_lineno, repr(e)))
|
|
|
|