{"action":"created","issue":{"url":"https://api.github.com/repos/thinkkoa/thinkorm/issues/5","repository_url":"https://api.github.com/repos/thinkkoa/thinkorm","labels_url":"https://api.github.com/repos/thinkkoa/thinkorm/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/thinkkoa/thinkorm/issues/5/comments","events_url":"https://api.github.com/repos/thinkkoa/thinkorm/issues/5/events","html_url":"https://github.com/thinkkoa/thinkorm/issues/5","id":310228207,"number":5,"title":"API 设计疑问","user":{"login":"NathanLi","id":4445948,"avatar_url":"https://avatars3.githubusercontent.com/u/4445948?v=4","gravatar_id":"","url":"https://api.github.com/users/NathanLi","html_url":"https://github.com/NathanLi","followers_url":"https://api.github.com/users/NathanLi/followers","following_url":"https://api.github.com/users/NathanLi/following{/other_user}","gists_url":"https://api.github.com/users/NathanLi/gists{/gist_id}","starred_url":"https://api.github.com/users/NathanLi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NathanLi/subscriptions","organizations_url":"https://api.github.com/users/NathanLi/orgs","repos_url":"https://api.github.com/users/NathanLi/repos","events_url":"https://api.github.com/users/NathanLi/events{/privacy}","received_events_url":"https://api.github.com/users/NathanLi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-03-31T09:47:16Z","updated_at":"2018-04-03T13:21:13Z","closed_at":null,"author_association":"NONE","body":"有点奇怪的地方在于，所有的 sql 操作都依赖于 ‘实例’。实例上，这些操作方法的接入方应该是 类 才对吧。把方法放到实例上，初步看上去很方便，但对于实体类的侵入太重，所有的实例都多出了不必要的信息。比如：`modelName` `fields` 等配置完全可以以类方法的形式返回。"},"comment":{"url":"https://api.github.com/repos/thinkkoa/thinkorm/issues/comments/378247609","html_url":"https://github.com/thinkkoa/thinkorm/issues/5#issuecomment-378247609","issue_url":"https://api.github.com/repos/thinkkoa/thinkorm/issues/5","id":378247609,"user":{"login":"richenlin","id":6151439,"avatar_url":"https://avatars3.githubusercontent.com/u/6151439?v=4","gravatar_id":"","url":"https://api.github.com/users/richenlin","html_url":"https://github.com/richenlin","followers_url":"https://api.github.com/users/richenlin/followers","following_url":"https://api.github.com/users/richenlin/following{/other_user}","gists_url":"https://api.github.com/users/richenlin/gists{/gist_id}","starred_url":"https://api.github.com/users/richenlin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/richenlin/subscriptions","organizations_url":"https://api.github.com/users/richenlin/orgs","repos_url":"https://api.github.com/users/richenlin/repos","events_url":"https://api.github.com/users/richenlin/events{/privacy}","received_events_url":"https://api.github.com/users/richenlin/received_events","type":"User","site_admin":false},"created_at":"2018-04-03T13:21:13Z","updated_at":"2018-04-03T13:21:13Z","author_association":"OWNER","body":"感谢建议！其实更多的还是函数式编程的习惯而已：\r\n1、JS的面向原型和其他语言面向对象不太一样，不管是属性还是方法，都只是原型链上属性而已，class仅仅是语法糖\r\n2、对象是内敛的，每个实例都有各自不同的独立特征，以属性和方法来暴露对外通信接口\r\n\r\n3、我想还有一个重要的原因是，原有的thinkorm太重，1.0版本包括2.0版本都是如此，从3.0版本开始，我们开始意识到这一点，刻意的做了一些分离，包括SQLbudil的分离，关联模型的分离。但目前仍然不够\r\n\r\n最后，有兴趣的话，一起来维护啊。我们缺人😆"}}
{"actor":{"display_login":"richenlin"}}