ZongXR / Flask-SSM

一款模仿SpringFramework的Python的web后端框架,基于Flask二次封装。通过Python反射模拟了Java的IOC控制反转,通过Python装饰者模式模拟了Java的AOP面向切面编程。具有接口自动发现、定时任务自动注册、事务管理器、单元测试,等功能。简化web后端开发流程,聚焦业务逻辑,让你按照Spring的习惯写Python
https://pypi.org/project/Flask-SSM/
GNU General Public License v3.0
23 stars 5 forks source link

. #1

Open youxiustar opened 1 year ago

ZongXR commented 11 months ago

No description provided.

You can refer the usage on test.demo.tablename_dao When you want some type, you can use @Mapper(result_type=**) on your method. This method returns SQL and the parameters are SQL parameters. Don't forget import Repository on your dao package Like test.demo.dao.init.py, you should "from flask_ssm.springframework.stereotype import Repository" to enable @Mapper decorator