#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# @File     : base_config
# @Author   : LiuYan
# @Time     : 2021/4/16 18:06

from abc import abstractmethod, ABC

# root_dir = '/home/zzsn/liuyan/zzsn_gurag'
root_dir = '..'  # deploy

DIALECT = 'mysql'
DRIVER = 'pymysql'
USERNAME = 'root'
PASSWORD = 'zzsn9988'
HOST = '39.105.62.235'
PORT = '3306'
DATABASE = 'gurag'

# 连接数据的URI
DB_URI = '{}+{}://{}:{}@{}:{}/{}?charset=utf8'.format(DIALECT, DRIVER, USERNAME, PASSWORD, HOST, PORT, DATABASE)


SQLALCHEMY_DATABASE_URI = DB_URI

SQLALCHEMY_TRACK_MODIFICATIONS = True

SWAGGER_TITLE = 'API'
SWAGGER_DESC = 'API接口'
# 地址，必须带上端口号
SWAGGER_HOST = '0.0.0.0:7010'
