__init__.py 1.6 KB
# coding=utf-8
#author:        4N
#createtime:    2021/12/15
#email:         nheweijun@sina.com

from flasgger import swag_from
from flask import Blueprint
from app.util import BlueprintApi
from . import image_service_delete,image_service_register,image_service_edit,image_build_pyramid
from app.decorators.token_decorator import token_decorator

class DataManager(BlueprintApi):

    bp = Blueprint("ImageService", __name__, url_prefix="/API/Service/ImageService")
    service_type = []


    @staticmethod
    @bp.route('/BuildPyramid', methods=['POST'])
    @swag_from(image_build_pyramid.Api.api_doc)
    @token_decorator("profile")
    def api_image_build_pyramid():
        """
        创建影像金字塔
        """
        return image_build_pyramid.Api().result

    @staticmethod
    @bp.route('/Register', methods=['POST'])
    @swag_from(image_service_register.Api.api_doc)
    @token_decorator("profile")
    def api_image_service_register():
        """
        注册ImageService
        """
        return image_service_register.Api().result

    @staticmethod
    @bp.route('/Edit', methods=['POST'])
    @swag_from(image_service_edit.Api.api_doc)
    @token_decorator("profile")
    def api_image_service_edit():
        """
        修改ImageService
        """
        return image_service_edit.Api().result

    @staticmethod
    @bp.route('/Delete', methods=['POST'])
    @swag_from(image_service_delete.Api.api_doc)
    @token_decorator("profile")
    def api_image_service_delete():
        """
        ImageService Delete
        """
        return image_service_delete.Api().result