office templates

This commit is contained in:
CHIEFSOFT\ameye
2025-09-20 21:35:07 -04:00
parent 4d894d8214
commit 9809d3e7f3
4 changed files with 82 additions and 1 deletions
+24
View File
@@ -459,6 +459,30 @@ def get_product_office():
result = OfficeDashboardService.get_office_products(filters)
return jsonify(result)
@api.route('/office/product-templates', methods=['GET'])
def get_product_templates():
# Call the dashboard service
filters = {
'product_id': request.args.get('product_id'),
'provision_name': request.args.get('provision_name'),
'page': request.args.get('page', 1),
'limit': request.args.get('limit', 20)
}
result = OfficeDashboardService.get_office_product_templates(filters)
return jsonify(result)
@api.route('/office/custom-templates', methods=['GET'])
def get_custom_templates():
# Call the dashboard service
filters = {
'custom_id': request.args.get('custom_id'),
'provision_name': request.args.get('provision_name'),
'page': request.args.get('page', 1),
'limit': request.args.get('limit', 20)
}
result = OfficeDashboardService.get_office_custom_templates(filters)
return jsonify(result)
# =====================================================
@api.route('/web/contents', methods=['GET'])
# @token_required