{"action":"created","issue":{"url":"https://api.github.com/repos/eggjs/egg-mongoose/issues/15","repository_url":"https://api.github.com/repos/eggjs/egg-mongoose","labels_url":"https://api.github.com/repos/eggjs/egg-mongoose/issues/15/labels{/name}","comments_url":"https://api.github.com/repos/eggjs/egg-mongoose/issues/15/comments","events_url":"https://api.github.com/repos/eggjs/egg-mongoose/issues/15/events","html_url":"https://github.com/eggjs/egg-mongoose/pull/15","id":280900318,"number":15,"title":"feat: support multi client","user":{"login":"jinasonlin","id":5010606,"avatar_url":"https://avatars0.githubusercontent.com/u/5010606?v=4","gravatar_id":"","url":"https://api.github.com/users/jinasonlin","html_url":"https://github.com/jinasonlin","followers_url":"https://api.github.com/users/jinasonlin/followers","following_url":"https://api.github.com/users/jinasonlin/following{/other_user}","gists_url":"https://api.github.com/users/jinasonlin/gists{/gist_id}","starred_url":"https://api.github.com/users/jinasonlin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jinasonlin/subscriptions","organizations_url":"https://api.github.com/users/jinasonlin/orgs","repos_url":"https://api.github.com/users/jinasonlin/repos","events_url":"https://api.github.com/users/jinasonlin/events{/privacy}","received_events_url":"https://api.github.com/users/jinasonlin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-12-11T05:44:15Z","updated_at":"2017-12-28T07:27:53Z","closed_at":null,"author_association":"NONE","pull_request":{"url":"https://api.github.com/repos/eggjs/egg-mongoose/pulls/15","html_url":"https://github.com/eggjs/egg-mongoose/pull/15","diff_url":"https://github.com/eggjs/egg-mongoose/pull/15.diff","patch_url":"https://github.com/eggjs/egg-mongoose/pull/15.patch"},"body":"1.支持多客户端，增加 Singleton `app.mongooseDB`\r\n2. `app.mongoose` 现在已经是原始Mongoose实例，所以删除了 `app.__mongoose`\r\n3. 调整了 loadModel 的执行时机，便于 model 使用其他插件提供的接口\r\n\r\n<!--\r\nThank you for your pull request. Please review below requirements.\r\nBug fixes and new features should include tests and possibly benchmarks.\r\nContributors guide: https://github.com/eggjs/egg/blob/master/CONTRIBUTING.md\r\n\r\n感谢您贡献代码。请确认下列 checklist 的完成情况。\r\nBug 修复和新功能必须包含测试，必要时请附上性能测试。\r\nContributors guide: https://github.com/eggjs/egg/blob/master/CONTRIBUTING.md\r\n-->\r\n\r\n##### Checklist\r\n<!-- Remove items that do not apply. For completed items, change [ ] to [x]. -->\r\n\r\n- [x] `npm test` passes\r\n- [ ] tests and/or benchmarks are included\r\n- [ ] documentation is changed or added\r\n- [ ] commit message follows commit guidelines\r\n\r\n##### Affected core subsystem(s)\r\n<!-- Provide affected core subsystem(s). -->\r\n\r\n\r\n##### Description of change\r\n<!-- Provide a description of the change below this comment. -->\r\n"},"comment":{"url":"https://api.github.com/repos/eggjs/egg-mongoose/issues/comments/354243050","html_url":"https://github.com/eggjs/egg-mongoose/pull/15#issuecomment-354243050","issue_url":"https://api.github.com/repos/eggjs/egg-mongoose/issues/15","id":354243050,"user":{"login":"dahuahe","id":16739083,"avatar_url":"https://avatars2.githubusercontent.com/u/16739083?v=4","gravatar_id":"","url":"https://api.github.com/users/dahuahe","html_url":"https://github.com/dahuahe","followers_url":"https://api.github.com/users/dahuahe/followers","following_url":"https://api.github.com/users/dahuahe/following{/other_user}","gists_url":"https://api.github.com/users/dahuahe/gists{/gist_id}","starred_url":"https://api.github.com/users/dahuahe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dahuahe/subscriptions","organizations_url":"https://api.github.com/users/dahuahe/orgs","repos_url":"https://api.github.com/users/dahuahe/repos","events_url":"https://api.github.com/users/dahuahe/events{/privacy}","received_events_url":"https://api.github.com/users/dahuahe/received_events","type":"User","site_admin":false},"created_at":"2017-12-28T07:27:53Z","updated_at":"2017-12-28T07:27:53Z","author_association":"NONE","body":"```js  \r\nconst dir = path.join(app.config.baseDir, 'app/model'); \r\n```\r\n\r\n`'app/model'` \r\n\r\n能不能作为一个配置项?默认是`app/model`,不好管理文件结构.嘿嘿"}}
{"actor":{"display_login":"dahuahe"}}