__init__.py
887 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 map_service_register,map_service_edit
class DataManager(BlueprintApi):
bp = Blueprint("MapService", __name__, url_prefix="/API/Service/MapService")
service_type = ["地图服务"]
@staticmethod
@bp.route('/Register', methods=['POST'])
@swag_from(map_service_register.Api.api_doc)
def api_wms_register():
"""
注册MapService
"""
return map_service_register.Api().result
@staticmethod
@bp.route('/Edit', methods=['POST'])
@swag_from(map_service_edit.Api.api_doc)
def api_wms_edit():
"""
修改MapService
"""
return map_service_edit.Api().result