You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
我们内置的管理员用户表为 lin_user,对应的模型层命名为 UserDO、服务层命名为UserService、控制器层命名为UserController。
当我们开发一个独立的 CMS 项目,是没有什么命名冲突问题的。
但对于一个小型项目,我们想使用 LinCMS 快速开发 C 端用户接口,如果 C 端用户表名称为 user ,那么对应的模型层、服务层等等就不能使用UserDO、UserService这些来命名,可否考虑把lin内置的类命名加一个前缀做区分?(例如LinUserDO、LinUserService)。这样C端用户相关的类,就不用考虑命名冲突问题了。也不会因为系统中user相关的命名太多,对后续的维护者造成困惑。
The text was updated successfully, but these errors were encountered:
我们内置的管理员用户表为
lin_user
,对应的模型层命名为UserDO
、服务层命名为UserService
、控制器层命名为UserController
。当我们开发一个独立的 CMS 项目,是没有什么命名冲突问题的。
但对于一个小型项目,我们想使用 LinCMS 快速开发 C 端用户接口,如果 C 端用户表名称为
user
,那么对应的模型层、服务层等等就不能使用UserDO
、UserService
这些来命名,可否考虑把lin
内置的类命名加一个前缀做区分?(例如LinUserDO
、LinUserService
)。这样C
端用户相关的类,就不用考虑命名冲突问题了。也不会因为系统中user
相关的命名太多,对后续的维护者造成困惑。The text was updated successfully, but these errors were encountered: