__init__.py 806 Bytes
# 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 wms_register,wms_edit

class DataManager(BlueprintApi):

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

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


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