您好,我想请教一个问题,在将数据库模型转换成视图模型的时候可以使用gorm中scan这个方法,gorm我是在dao层使用的,如果使用gorm的话就会出现这么一个情况:dao层既用了vo层又用了repository层的结构体,这样就会让项目的结构有些混乱了,请问有什么好的解决策略吗?

我现在的操作是在service层完成了这个转换,放弃了scan

Comment From: github-actions[bot]

This issue has been automatically marked as stale because it has been open 360 days with no activity. Remove stale label or comment or this will be closed in 180 days

Comment From: saeidee

It is related to your application's business logic and structure, not related to Gorm.