├── .gitignore ├── Pipfile ├── Pipfile.lock ├── README-en.md ├── README.md ├── cookiecutter.json ├── examples ├── demo_casbin │ ├── 01_demo.py │ ├── 02_orm.py │ ├── 03_custom_orm.py │ ├── README.md │ ├── custom_model.conf │ ├── model.conf │ └── policy.csv └── demo_scheduler │ └── main.py ├── images └── demo1.png └── {{cookiecutter.project_name}} ├── api └── v1 │ ├── items.py │ ├── sys_scheduler.py │ └── user.py ├── common ├── __init__.py ├── custom_exc.py ├── deps.py ├── logger.py ├── session.py ├── sys_redis.py └── sys_schedule.py ├── core ├── celery_app.py ├── config │ ├── __init__.py │ └── config.py.example ├── security.py └── server.py ├── db └── mysql │ └── migrations │ └── 20211209-init.sql ├── dbconfig.yml ├── dbconfig.yml.example ├── logic └── user_logic.py ├── main.py ├── models └── users.py ├── requirements-dev.txt ├── requirements.txt ├── router ├── __init__.py └── v1_router.py ├── schemas ├── request │ ├── sys_api.py │ ├── sys_authority_schema.py │ ├── sys_casbin.py │ └── sys_user_schema.py └── response │ └── resp.py ├── static └── img │ └── tmpjaoxjpoc.jpeg ├── tests ├── README.md ├── api │ └── v1 │ │ ├── test_casbin.py │ │ ├── test_cron.py │ │ └── test_user.py ├── conftest.py └── utils │ └── user.py └── utils ├── cron_task.py └── tools_func.py /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wxy2077/fastapi-mysql-generator/HEAD/.gitignore -------------------------------------------------------------------------------- /Pipfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wxy2077/fastapi-mysql-generator/HEAD/Pipfile -------------------------------------------------------------------------------- /Pipfile.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wxy2077/fastapi-mysql-generator/HEAD/Pipfile.lock -------------------------------------------------------------------------------- /README-en.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wxy2077/fastapi-mysql-generator/HEAD/README-en.md -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wxy2077/fastapi-mysql-generator/HEAD/README.md -------------------------------------------------------------------------------- /cookiecutter.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wxy2077/fastapi-mysql-generator/HEAD/cookiecutter.json -------------------------------------------------------------------------------- /examples/demo_casbin/01_demo.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wxy2077/fastapi-mysql-generator/HEAD/examples/demo_casbin/01_demo.py -------------------------------------------------------------------------------- /examples/demo_casbin/02_orm.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wxy2077/fastapi-mysql-generator/HEAD/examples/demo_casbin/02_orm.py -------------------------------------------------------------------------------- /examples/demo_casbin/03_custom_orm.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wxy2077/fastapi-mysql-generator/HEAD/examples/demo_casbin/03_custom_orm.py -------------------------------------------------------------------------------- /examples/demo_casbin/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wxy2077/fastapi-mysql-generator/HEAD/examples/demo_casbin/README.md -------------------------------------------------------------------------------- /examples/demo_casbin/custom_model.conf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wxy2077/fastapi-mysql-generator/HEAD/examples/demo_casbin/custom_model.conf -------------------------------------------------------------------------------- /examples/demo_casbin/model.conf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wxy2077/fastapi-mysql-generator/HEAD/examples/demo_casbin/model.conf -------------------------------------------------------------------------------- /examples/demo_casbin/policy.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wxy2077/fastapi-mysql-generator/HEAD/examples/demo_casbin/policy.csv -------------------------------------------------------------------------------- /examples/demo_scheduler/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wxy2077/fastapi-mysql-generator/HEAD/examples/demo_scheduler/main.py -------------------------------------------------------------------------------- /images/demo1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wxy2077/fastapi-mysql-generator/HEAD/images/demo1.png -------------------------------------------------------------------------------- /{{cookiecutter.project_name}}/api/v1/items.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wxy2077/fastapi-mysql-generator/HEAD/{{cookiecutter.project_name}}/api/v1/items.py -------------------------------------------------------------------------------- /{{cookiecutter.project_name}}/api/v1/sys_scheduler.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wxy2077/fastapi-mysql-generator/HEAD/{{cookiecutter.project_name}}/api/v1/sys_scheduler.py -------------------------------------------------------------------------------- /{{cookiecutter.project_name}}/api/v1/user.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wxy2077/fastapi-mysql-generator/HEAD/{{cookiecutter.project_name}}/api/v1/user.py -------------------------------------------------------------------------------- /{{cookiecutter.project_name}}/common/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wxy2077/fastapi-mysql-generator/HEAD/{{cookiecutter.project_name}}/common/__init__.py -------------------------------------------------------------------------------- /{{cookiecutter.project_name}}/common/custom_exc.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wxy2077/fastapi-mysql-generator/HEAD/{{cookiecutter.project_name}}/common/custom_exc.py -------------------------------------------------------------------------------- /{{cookiecutter.project_name}}/common/deps.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wxy2077/fastapi-mysql-generator/HEAD/{{cookiecutter.project_name}}/common/deps.py -------------------------------------------------------------------------------- /{{cookiecutter.project_name}}/common/logger.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wxy2077/fastapi-mysql-generator/HEAD/{{cookiecutter.project_name}}/common/logger.py -------------------------------------------------------------------------------- /{{cookiecutter.project_name}}/common/session.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wxy2077/fastapi-mysql-generator/HEAD/{{cookiecutter.project_name}}/common/session.py -------------------------------------------------------------------------------- /{{cookiecutter.project_name}}/common/sys_redis.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wxy2077/fastapi-mysql-generator/HEAD/{{cookiecutter.project_name}}/common/sys_redis.py -------------------------------------------------------------------------------- /{{cookiecutter.project_name}}/common/sys_schedule.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wxy2077/fastapi-mysql-generator/HEAD/{{cookiecutter.project_name}}/common/sys_schedule.py -------------------------------------------------------------------------------- /{{cookiecutter.project_name}}/core/celery_app.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wxy2077/fastapi-mysql-generator/HEAD/{{cookiecutter.project_name}}/core/celery_app.py -------------------------------------------------------------------------------- /{{cookiecutter.project_name}}/core/config/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wxy2077/fastapi-mysql-generator/HEAD/{{cookiecutter.project_name}}/core/config/__init__.py -------------------------------------------------------------------------------- /{{cookiecutter.project_name}}/core/config/config.py.example: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wxy2077/fastapi-mysql-generator/HEAD/{{cookiecutter.project_name}}/core/config/config.py.example -------------------------------------------------------------------------------- /{{cookiecutter.project_name}}/core/security.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wxy2077/fastapi-mysql-generator/HEAD/{{cookiecutter.project_name}}/core/security.py -------------------------------------------------------------------------------- /{{cookiecutter.project_name}}/core/server.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wxy2077/fastapi-mysql-generator/HEAD/{{cookiecutter.project_name}}/core/server.py -------------------------------------------------------------------------------- /{{cookiecutter.project_name}}/db/mysql/migrations/20211209-init.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wxy2077/fastapi-mysql-generator/HEAD/{{cookiecutter.project_name}}/db/mysql/migrations/20211209-init.sql -------------------------------------------------------------------------------- /{{cookiecutter.project_name}}/dbconfig.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wxy2077/fastapi-mysql-generator/HEAD/{{cookiecutter.project_name}}/dbconfig.yml -------------------------------------------------------------------------------- /{{cookiecutter.project_name}}/dbconfig.yml.example: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wxy2077/fastapi-mysql-generator/HEAD/{{cookiecutter.project_name}}/dbconfig.yml.example -------------------------------------------------------------------------------- /{{cookiecutter.project_name}}/logic/user_logic.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wxy2077/fastapi-mysql-generator/HEAD/{{cookiecutter.project_name}}/logic/user_logic.py -------------------------------------------------------------------------------- /{{cookiecutter.project_name}}/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wxy2077/fastapi-mysql-generator/HEAD/{{cookiecutter.project_name}}/main.py -------------------------------------------------------------------------------- /{{cookiecutter.project_name}}/models/users.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wxy2077/fastapi-mysql-generator/HEAD/{{cookiecutter.project_name}}/models/users.py -------------------------------------------------------------------------------- /{{cookiecutter.project_name}}/requirements-dev.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wxy2077/fastapi-mysql-generator/HEAD/{{cookiecutter.project_name}}/requirements-dev.txt -------------------------------------------------------------------------------- /{{cookiecutter.project_name}}/requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wxy2077/fastapi-mysql-generator/HEAD/{{cookiecutter.project_name}}/requirements.txt -------------------------------------------------------------------------------- /{{cookiecutter.project_name}}/router/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wxy2077/fastapi-mysql-generator/HEAD/{{cookiecutter.project_name}}/router/__init__.py -------------------------------------------------------------------------------- /{{cookiecutter.project_name}}/router/v1_router.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wxy2077/fastapi-mysql-generator/HEAD/{{cookiecutter.project_name}}/router/v1_router.py -------------------------------------------------------------------------------- /{{cookiecutter.project_name}}/schemas/request/sys_api.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wxy2077/fastapi-mysql-generator/HEAD/{{cookiecutter.project_name}}/schemas/request/sys_api.py -------------------------------------------------------------------------------- /{{cookiecutter.project_name}}/schemas/request/sys_authority_schema.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wxy2077/fastapi-mysql-generator/HEAD/{{cookiecutter.project_name}}/schemas/request/sys_authority_schema.py -------------------------------------------------------------------------------- /{{cookiecutter.project_name}}/schemas/request/sys_casbin.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wxy2077/fastapi-mysql-generator/HEAD/{{cookiecutter.project_name}}/schemas/request/sys_casbin.py -------------------------------------------------------------------------------- /{{cookiecutter.project_name}}/schemas/request/sys_user_schema.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wxy2077/fastapi-mysql-generator/HEAD/{{cookiecutter.project_name}}/schemas/request/sys_user_schema.py -------------------------------------------------------------------------------- /{{cookiecutter.project_name}}/schemas/response/resp.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wxy2077/fastapi-mysql-generator/HEAD/{{cookiecutter.project_name}}/schemas/response/resp.py -------------------------------------------------------------------------------- /{{cookiecutter.project_name}}/static/img/tmpjaoxjpoc.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wxy2077/fastapi-mysql-generator/HEAD/{{cookiecutter.project_name}}/static/img/tmpjaoxjpoc.jpeg -------------------------------------------------------------------------------- /{{cookiecutter.project_name}}/tests/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wxy2077/fastapi-mysql-generator/HEAD/{{cookiecutter.project_name}}/tests/README.md -------------------------------------------------------------------------------- /{{cookiecutter.project_name}}/tests/api/v1/test_casbin.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wxy2077/fastapi-mysql-generator/HEAD/{{cookiecutter.project_name}}/tests/api/v1/test_casbin.py -------------------------------------------------------------------------------- /{{cookiecutter.project_name}}/tests/api/v1/test_cron.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wxy2077/fastapi-mysql-generator/HEAD/{{cookiecutter.project_name}}/tests/api/v1/test_cron.py -------------------------------------------------------------------------------- /{{cookiecutter.project_name}}/tests/api/v1/test_user.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wxy2077/fastapi-mysql-generator/HEAD/{{cookiecutter.project_name}}/tests/api/v1/test_user.py -------------------------------------------------------------------------------- /{{cookiecutter.project_name}}/tests/conftest.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wxy2077/fastapi-mysql-generator/HEAD/{{cookiecutter.project_name}}/tests/conftest.py -------------------------------------------------------------------------------- /{{cookiecutter.project_name}}/tests/utils/user.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wxy2077/fastapi-mysql-generator/HEAD/{{cookiecutter.project_name}}/tests/utils/user.py -------------------------------------------------------------------------------- /{{cookiecutter.project_name}}/utils/cron_task.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wxy2077/fastapi-mysql-generator/HEAD/{{cookiecutter.project_name}}/utils/cron_task.py -------------------------------------------------------------------------------- /{{cookiecutter.project_name}}/utils/tools_func.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wxy2077/fastapi-mysql-generator/HEAD/{{cookiecutter.project_name}}/utils/tools_func.py --------------------------------------------------------------------------------