__init__.py
1.0 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# 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
from app.modules.auth.oauth2 import require_oauth
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)
@require_oauth("profile")
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)
@require_oauth("profile")
def api_wms_edit():
"""
修改MapService
"""
return map_service_edit.Api().result