office pages
This commit is contained in:
@@ -13,7 +13,7 @@ from app.api.services import (
|
||||
SubscriptionsService,
|
||||
CommonDataService,
|
||||
OfficeCustomerService,
|
||||
GenerativesService
|
||||
GenerativesService, OfficeUsersService
|
||||
)
|
||||
from app.api.services.comments import CommentsService
|
||||
from app.utils.logger import logger
|
||||
@@ -420,7 +420,6 @@ def get_subscription_billings_office():
|
||||
|
||||
|
||||
@api.route('/office/transaction', methods=['GET'])
|
||||
# @token_required
|
||||
def get_subscription_transaction_office():
|
||||
# Call the dashboard service
|
||||
filters = {
|
||||
@@ -432,6 +431,33 @@ def get_subscription_transaction_office():
|
||||
result = OfficeDashboardService.get_payments_data(filters)
|
||||
return jsonify(result)
|
||||
|
||||
@api.route('/office/recent-signup', methods=['GET'])
|
||||
def get_recent_signup_office():
|
||||
# Call the dashboard service
|
||||
filters = {}
|
||||
result = OfficeDashboardService.get_payments_data(filters)
|
||||
return jsonify(result)
|
||||
|
||||
@api.route('/office/right-sidebar', methods=['GET'])
|
||||
def get_office_sidebar():
|
||||
# Call the dashboard service
|
||||
filters = {}
|
||||
result = OfficeDashboardService.get_payments_data(filters)
|
||||
return jsonify(result)
|
||||
|
||||
@api.route('/office/users', methods=['GET'])
|
||||
def get_office_users():
|
||||
# Call the dashboard service
|
||||
filters = {}
|
||||
result = OfficeUsersService.get_office_users(filters)
|
||||
return jsonify(result)
|
||||
|
||||
@api.route('/office/products', methods=['GET'])
|
||||
def get_product_office():
|
||||
# Call the dashboard service
|
||||
filters = {}
|
||||
result = OfficeDashboardService.get_office_products(filters)
|
||||
return jsonify(result)
|
||||
|
||||
# =====================================================
|
||||
@api.route('/web/contents', methods=['GET'])
|
||||
|
||||
Reference in New Issue
Block a user