{"action":"created","issue":{"url":"https://api.github.com/repos/YMFE/yapi/issues/419","repository_url":"https://api.github.com/repos/YMFE/yapi","labels_url":"https://api.github.com/repos/YMFE/yapi/issues/419/labels{/name}","comments_url":"https://api.github.com/repos/YMFE/yapi/issues/419/comments","events_url":"https://api.github.com/repos/YMFE/yapi/issues/419/events","html_url":"https://github.com/YMFE/yapi/issues/419","id":336561190,"node_id":"MDU6SXNzdWUzMzY1NjExOTA=","number":419,"title":"建议一个项目支持多环境域名","user":{"login":"hejunrex","id":16148193,"node_id":"MDQ6VXNlcjE2MTQ4MTkz","avatar_url":"https://avatars3.githubusercontent.com/u/16148193?v=4","gravatar_id":"","url":"https://api.github.com/users/hejunrex","html_url":"https://github.com/hejunrex","followers_url":"https://api.github.com/users/hejunrex/followers","following_url":"https://api.github.com/users/hejunrex/following{/other_user}","gists_url":"https://api.github.com/users/hejunrex/gists{/gist_id}","starred_url":"https://api.github.com/users/hejunrex/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hejunrex/subscriptions","organizations_url":"https://api.github.com/users/hejunrex/orgs","repos_url":"https://api.github.com/users/hejunrex/repos","events_url":"https://api.github.com/users/hejunrex/events{/privacy}","received_events_url":"https://api.github.com/users/hejunrex/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-06-28T10:19:36Z","updated_at":"2018-07-02T02:30:03Z","closed_at":null,"author_association":"NONE","body":"## 版本号\r\n~ 当前最新版本\r\n\r\n## 什么问题\r\n~ 在实际项目中一个项目中使用的接口可能有多个域名baseurl，当前只能在项目中设置一个域名，造成必须再开一个项目去支持那些接口，由于我们的微服务架构造成接口比较分散，需要来回切换项目\r\n\r\n## 建议\r\n~ 1.在增加多个域名组（里面设置自己定义本地开发环境、测试环境等）\r\n~ 2.在接口创建的时候可以选择一个域名组\r\n~ 3.在接口预览的界面可以显示域名组第一个域名或者组名，这样好辨别是哪个服务的\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/YMFE/yapi/issues/comments/401655256","html_url":"https://github.com/YMFE/yapi/issues/419#issuecomment-401655256","issue_url":"https://api.github.com/repos/YMFE/yapi/issues/419","id":401655256,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMTY1NTI1Ng==","user":{"login":"gaoxiaomumu","id":21135585,"node_id":"MDQ6VXNlcjIxMTM1NTg1","avatar_url":"https://avatars2.githubusercontent.com/u/21135585?v=4","gravatar_id":"","url":"https://api.github.com/users/gaoxiaomumu","html_url":"https://github.com/gaoxiaomumu","followers_url":"https://api.github.com/users/gaoxiaomumu/followers","following_url":"https://api.github.com/users/gaoxiaomumu/following{/other_user}","gists_url":"https://api.github.com/users/gaoxiaomumu/gists{/gist_id}","starred_url":"https://api.github.com/users/gaoxiaomumu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gaoxiaomumu/subscriptions","organizations_url":"https://api.github.com/users/gaoxiaomumu/orgs","repos_url":"https://api.github.com/users/gaoxiaomumu/repos","events_url":"https://api.github.com/users/gaoxiaomumu/events{/privacy}","received_events_url":"https://api.github.com/users/gaoxiaomumu/received_events","type":"User","site_admin":false},"created_at":"2018-07-02T02:30:03Z","updated_at":"2018-07-02T02:30:03Z","author_association":"MEMBER","body":"那个选一次就可以了，在测试集合里面有保存功能，你可以将不同的接口选择不同的url然后保存一下，下次用的时候就不需要再选择了，或者将这些接口划分成不同的项目里面，测试集合可以跨项目导入接口"}}
{"actor":{"display_login":"gaoxiaomumu"}}