__init__.py 1.1 KB
# coding=utf-8
#author:        4N
#createtime:    2021/9/14
#email:         nheweijun@sina.com


from flasgger import swag_from
from flask import Blueprint
from app.util import BlueprintApi
from . import upload_oview,wmts_register,wmts_edit



class DataManager(BlueprintApi):

    bp = Blueprint("WMTS", __name__, url_prefix="/API/Service/WMTS")

    service_type = ["WMTS","TMS"]

    @staticmethod
    @bp.route('/UploadOverview', methods=['POST'])
    @swag_from(upload_oview.Api.api_doc)
    def api_upload_oview():
        """
        上传缩略图
        """
        return upload_oview.Api().result


    @staticmethod
    @bp.route('/Register', methods=['POST'])
    @swag_from(wmts_register.Api.api_doc)
    def api_wmts_register():
        """
        注册WMTS
        """
        return wmts_register.Api().result

    @staticmethod
    @bp.route('/Edit', methods=['POST'])
    @swag_from(wmts_edit.Api.api_doc)
    def api_wmts_edit():
        """
        修改WMTS
        """
        return wmts_edit.Api().result