{"action":"created","comment":{"url":"https://api.github.com/repos/songjinze/FinancialNotifier/pulls/comments/213892779","pull_request_review_id":150824614,"id":213892779,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxMzg5Mjc3OQ==","diff_hunk":"@@ -0,0 +1,60 @@\n+import logicservice.LogicServiceFactory;\n+import logicservice.SettingService;\n+import util.resultmessage.SendEmailMessage;\n+import vo.EmployeeVO;\n+\n+import java.io.File;\n+import java.util.List;\n+import java.util.Scanner;\n+\n+public class ConsoleMain {\n+    public static void main(String[] args){\n+        System.out.print(\"当前用户为\"+LogicServiceFactory.getSettingService().getUserInfo().getName()+\",是否修改用户？[y/n]\");\n+        Scanner scanner=new Scanner(System.in);\n+        String choice=scanner.nextLine();\n+        if(choice.equals(\"y\")||choice.equals(\"Y\")) {\n+            System.out.print(\"请输入用户名：\");","path":"src/main/java/ConsoleMain.java","position":16,"original_position":16,"commit_id":"a2c57d7204df3cc7318784d38abace1d168849c3","original_commit_id":"a2c57d7204df3cc7318784d38abace1d168849c3","user":{"login":"KidFeng","id":279933,"node_id":"MDQ6VXNlcjI3OTkzMw==","avatar_url":"https://avatars1.githubusercontent.com/u/279933?v=4","gravatar_id":"","url":"https://api.github.com/users/KidFeng","html_url":"https://github.com/KidFeng","followers_url":"https://api.github.com/users/KidFeng/followers","following_url":"https://api.github.com/users/KidFeng/following{/other_user}","gists_url":"https://api.github.com/users/KidFeng/gists{/gist_id}","starred_url":"https://api.github.com/users/KidFeng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KidFeng/subscriptions","organizations_url":"https://api.github.com/users/KidFeng/orgs","repos_url":"https://api.github.com/users/KidFeng/repos","events_url":"https://api.github.com/users/KidFeng/events{/privacy}","received_events_url":"https://api.github.com/users/KidFeng/received_events","type":"User","site_admin":false},"body":"这种方式一般叫做「交互式输入」，CLI环境中，一般以CLI参数来传递参数，如：\r\n```\r\njava Main -u kidfeng -p 123456 -f inputfile.csv\r\n```\r\n这样的好处是这个工具可以很容易放到其它脚本里自动运行\r\n\r\n当参数很多时，可以考虑传入一个配置文件的路径\r\n","created_at":"2018-08-30T03:15:35Z","updated_at":"2018-08-30T03:15:35Z","html_url":"https://github.com/songjinze/FinancialNotifier/pull/1#discussion_r213892779","pull_request_url":"https://api.github.com/repos/songjinze/FinancialNotifier/pulls/1","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/songjinze/FinancialNotifier/pulls/comments/213892779"},"html":{"href":"https://github.com/songjinze/FinancialNotifier/pull/1#discussion_r213892779"},"pull_request":{"href":"https://api.github.com/repos/songjinze/FinancialNotifier/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/songjinze/FinancialNotifier/pulls/1","id":211942715,"node_id":"MDExOlB1bGxSZXF1ZXN0MjExOTQyNzE1","html_url":"https://github.com/songjinze/FinancialNotifier/pull/1","diff_url":"https://github.com/songjinze/FinancialNotifier/pull/1.diff","patch_url":"https://github.com/songjinze/FinancialNotifier/pull/1.patch","issue_url":"https://api.github.com/repos/songjinze/FinancialNotifier/issues/1","number":1,"state":"open","locked":false,"title":"review","user":{"login":"KidFeng","id":279933,"node_id":"MDQ6VXNlcjI3OTkzMw==","avatar_url":"https://avatars1.githubusercontent.com/u/279933?v=4","gravatar_id":"","url":"https://api.github.com/users/KidFeng","html_url":"https://github.com/KidFeng","followers_url":"https://api.github.com/users/KidFeng/followers","following_url":"https://api.github.com/users/KidFeng/following{/other_user}","gists_url":"https://api.github.com/users/KidFeng/gists{/gist_id}","starred_url":"https://api.github.com/users/KidFeng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KidFeng/subscriptions","organizations_url":"https://api.github.com/users/KidFeng/orgs","repos_url":"https://api.github.com/users/KidFeng/repos","events_url":"https://api.github.com/users/KidFeng/events{/privacy}","received_events_url":"https://api.github.com/users/KidFeng/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-08-30T03:07:37Z","updated_at":"2018-08-30T03:15:35Z","closed_at":null,"merged_at":null,"merge_commit_sha":"47978f9b9bb15b53b4ed98b320cc3367fbf2c700","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/songjinze/FinancialNotifier/pulls/1/commits","review_comments_url":"https://api.github.com/repos/songjinze/FinancialNotifier/pulls/1/comments","review_comment_url":"https://api.github.com/repos/songjinze/FinancialNotifier/pulls/comments{/number}","comments_url":"https://api.github.com/repos/songjinze/FinancialNotifier/issues/1/comments","statuses_url":"https://api.github.com/repos/songjinze/FinancialNotifier/statuses/a2c57d7204df3cc7318784d38abace1d168849c3","head":{"label":"songjinze:master","ref":"master","sha":"a2c57d7204df3cc7318784d38abace1d168849c3","user":{"login":"songjinze","id":26564718,"node_id":"MDQ6VXNlcjI2NTY0NzE4","avatar_url":"https://avatars2.githubusercontent.com/u/26564718?v=4","gravatar_id":"","url":"https://api.github.com/users/songjinze","html_url":"https://github.com/songjinze","followers_url":"https://api.github.com/users/songjinze/followers","following_url":"https://api.github.com/users/songjinze/following{/other_user}","gists_url":"https://api.github.com/users/songjinze/gists{/gist_id}","starred_url":"https://api.github.com/users/songjinze/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/songjinze/subscriptions","organizations_url":"https://api.github.com/users/songjinze/orgs","repos_url":"https://api.github.com/users/songjinze/repos","events_url":"https://api.github.com/users/songjinze/events{/privacy}","received_events_url":"https://api.github.com/users/songjinze/received_events","type":"User","site_admin":false},"repo":{"id":145934758,"node_id":"MDEwOlJlcG9zaXRvcnkxNDU5MzQ3NTg=","name":"FinancialNotifier","full_name":"songjinze/FinancialNotifier","owner":{"login":"songjinze","id":26564718,"node_id":"MDQ6VXNlcjI2NTY0NzE4","avatar_url":"https://avatars2.githubusercontent.com/u/26564718?v=4","gravatar_id":"","url":"https://api.github.com/users/songjinze","html_url":"https://github.com/songjinze","followers_url":"https://api.github.com/users/songjinze/followers","following_url":"https://api.github.com/users/songjinze/following{/other_user}","gists_url":"https://api.github.com/users/songjinze/gists{/gist_id}","starred_url":"https://api.github.com/users/songjinze/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/songjinze/subscriptions","organizations_url":"https://api.github.com/users/songjinze/orgs","repos_url":"https://api.github.com/users/songjinze/repos","events_url":"https://api.github.com/users/songjinze/events{/privacy}","received_events_url":"https://api.github.com/users/songjinze/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/songjinze/FinancialNotifier","description":"员工工资管理、通知器","fork":false,"url":"https://api.github.com/repos/songjinze/FinancialNotifier","forks_url":"https://api.github.com/repos/songjinze/FinancialNotifier/forks","keys_url":"https://api.github.com/repos/songjinze/FinancialNotifier/keys{/key_id}","collaborators_url":"https://api.github.com/repos/songjinze/FinancialNotifier/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/songjinze/FinancialNotifier/teams","hooks_url":"https://api.github.com/repos/songjinze/FinancialNotifier/hooks","issue_events_url":"https://api.github.com/repos/songjinze/FinancialNotifier/issues/events{/number}","events_url":"https://api.github.com/repos/songjinze/FinancialNotifier/events","assignees_url":"https://api.github.com/repos/songjinze/FinancialNotifier/assignees{/user}","branches_url":"https://api.github.com/repos/songjinze/FinancialNotifier/branches{/branch}","tags_url":"https://api.github.com/repos/songjinze/FinancialNotifier/tags","blobs_url":"https://api.github.com/repos/songjinze/FinancialNotifier/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/songjinze/FinancialNotifier/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/songjinze/FinancialNotifier/git/refs{/sha}","trees_url":"https://api.github.com/repos/songjinze/FinancialNotifier/git/trees{/sha}","statuses_url":"https://api.github.com/repos/songjinze/FinancialNotifier/statuses/{sha}","languages_url":"https://api.github.com/repos/songjinze/FinancialNotifier/languages","stargazers_url":"https://api.github.com/repos/songjinze/FinancialNotifier/stargazers","contributors_url":"https://api.github.com/repos/songjinze/FinancialNotifier/contributors","subscribers_url":"https://api.github.com/repos/songjinze/FinancialNotifier/subscribers","subscription_url":"https://api.github.com/repos/songjinze/FinancialNotifier/subscription","commits_url":"https://api.github.com/repos/songjinze/FinancialNotifier/commits{/sha}","git_commits_url":"https://api.github.com/repos/songjinze/FinancialNotifier/git/commits{/sha}","comments_url":"https://api.github.com/repos/songjinze/FinancialNotifier/comments{/number}","issue_comment_url":"https://api.github.com/repos/songjinze/FinancialNotifier/issues/comments{/number}","contents_url":"https://api.github.com/repos/songjinze/FinancialNotifier/contents/{+path}","compare_url":"https://api.github.com/repos/songjinze/FinancialNotifier/compare/{base}...{head}","merges_url":"https://api.github.com/repos/songjinze/FinancialNotifier/merges","archive_url":"https://api.github.com/repos/songjinze/FinancialNotifier/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/songjinze/FinancialNotifier/downloads","issues_url":"https://api.github.com/repos/songjinze/FinancialNotifier/issues{/number}","pulls_url":"https://api.github.com/repos/songjinze/FinancialNotifier/pulls{/number}","milestones_url":"https://api.github.com/repos/songjinze/FinancialNotifier/milestones{/number}","notifications_url":"https://api.github.com/repos/songjinze/FinancialNotifier/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/songjinze/FinancialNotifier/labels{/name}","releases_url":"https://api.github.com/repos/songjinze/FinancialNotifier/releases{/id}","deployments_url":"https://api.github.com/repos/songjinze/FinancialNotifier/deployments","created_at":"2018-08-24T02:56:14Z","updated_at":"2018-08-28T07:17:15Z","pushed_at":"2018-08-30T03:07:38Z","git_url":"git://github.com/songjinze/FinancialNotifier.git","ssh_url":"git@github.com:songjinze/FinancialNotifier.git","clone_url":"https://github.com/songjinze/FinancialNotifier.git","svn_url":"https://github.com/songjinze/FinancialNotifier","homepage":null,"size":29,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"songjinze:review","ref":"review","sha":"1caeed30c40dbbcfdb8d9a4f3bdf46b86a54c23b","user":{"login":"songjinze","id":26564718,"node_id":"MDQ6VXNlcjI2NTY0NzE4","avatar_url":"https://avatars2.githubusercontent.com/u/26564718?v=4","gravatar_id":"","url":"https://api.github.com/users/songjinze","html_url":"https://github.com/songjinze","followers_url":"https://api.github.com/users/songjinze/followers","following_url":"https://api.github.com/users/songjinze/following{/other_user}","gists_url":"https://api.github.com/users/songjinze/gists{/gist_id}","starred_url":"https://api.github.com/users/songjinze/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/songjinze/subscriptions","organizations_url":"https://api.github.com/users/songjinze/orgs","repos_url":"https://api.github.com/users/songjinze/repos","events_url":"https://api.github.com/users/songjinze/events{/privacy}","received_events_url":"https://api.github.com/users/songjinze/received_events","type":"User","site_admin":false},"repo":{"id":145934758,"node_id":"MDEwOlJlcG9zaXRvcnkxNDU5MzQ3NTg=","name":"FinancialNotifier","full_name":"songjinze/FinancialNotifier","owner":{"login":"songjinze","id":26564718,"node_id":"MDQ6VXNlcjI2NTY0NzE4","avatar_url":"https://avatars2.githubusercontent.com/u/26564718?v=4","gravatar_id":"","url":"https://api.github.com/users/songjinze","html_url":"https://github.com/songjinze","followers_url":"https://api.github.com/users/songjinze/followers","following_url":"https://api.github.com/users/songjinze/following{/other_user}","gists_url":"https://api.github.com/users/songjinze/gists{/gist_id}","starred_url":"https://api.github.com/users/songjinze/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/songjinze/subscriptions","organizations_url":"https://api.github.com/users/songjinze/orgs","repos_url":"https://api.github.com/users/songjinze/repos","events_url":"https://api.github.com/users/songjinze/events{/privacy}","received_events_url":"https://api.github.com/users/songjinze/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/songjinze/FinancialNotifier","description":"员工工资管理、通知器","fork":false,"url":"https://api.github.com/repos/songjinze/FinancialNotifier","forks_url":"https://api.github.com/repos/songjinze/FinancialNotifier/forks","keys_url":"https://api.github.com/repos/songjinze/FinancialNotifier/keys{/key_id}","collaborators_url":"https://api.github.com/repos/songjinze/FinancialNotifier/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/songjinze/FinancialNotifier/teams","hooks_url":"https://api.github.com/repos/songjinze/FinancialNotifier/hooks","issue_events_url":"https://api.github.com/repos/songjinze/FinancialNotifier/issues/events{/number}","events_url":"https://api.github.com/repos/songjinze/FinancialNotifier/events","assignees_url":"https://api.github.com/repos/songjinze/FinancialNotifier/assignees{/user}","branches_url":"https://api.github.com/repos/songjinze/FinancialNotifier/branches{/branch}","tags_url":"https://api.github.com/repos/songjinze/FinancialNotifier/tags","blobs_url":"https://api.github.com/repos/songjinze/FinancialNotifier/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/songjinze/FinancialNotifier/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/songjinze/FinancialNotifier/git/refs{/sha}","trees_url":"https://api.github.com/repos/songjinze/FinancialNotifier/git/trees{/sha}","statuses_url":"https://api.github.com/repos/songjinze/FinancialNotifier/statuses/{sha}","languages_url":"https://api.github.com/repos/songjinze/FinancialNotifier/languages","stargazers_url":"https://api.github.com/repos/songjinze/FinancialNotifier/stargazers","contributors_url":"https://api.github.com/repos/songjinze/FinancialNotifier/contributors","subscribers_url":"https://api.github.com/repos/songjinze/FinancialNotifier/subscribers","subscription_url":"https://api.github.com/repos/songjinze/FinancialNotifier/subscription","commits_url":"https://api.github.com/repos/songjinze/FinancialNotifier/commits{/sha}","git_commits_url":"https://api.github.com/repos/songjinze/FinancialNotifier/git/commits{/sha}","comments_url":"https://api.github.com/repos/songjinze/FinancialNotifier/comments{/number}","issue_comment_url":"https://api.github.com/repos/songjinze/FinancialNotifier/issues/comments{/number}","contents_url":"https://api.github.com/repos/songjinze/FinancialNotifier/contents/{+path}","compare_url":"https://api.github.com/repos/songjinze/FinancialNotifier/compare/{base}...{head}","merges_url":"https://api.github.com/repos/songjinze/FinancialNotifier/merges","archive_url":"https://api.github.com/repos/songjinze/FinancialNotifier/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/songjinze/FinancialNotifier/downloads","issues_url":"https://api.github.com/repos/songjinze/FinancialNotifier/issues{/number}","pulls_url":"https://api.github.com/repos/songjinze/FinancialNotifier/pulls{/number}","milestones_url":"https://api.github.com/repos/songjinze/FinancialNotifier/milestones{/number}","notifications_url":"https://api.github.com/repos/songjinze/FinancialNotifier/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/songjinze/FinancialNotifier/labels{/name}","releases_url":"https://api.github.com/repos/songjinze/FinancialNotifier/releases{/id}","deployments_url":"https://api.github.com/repos/songjinze/FinancialNotifier/deployments","created_at":"2018-08-24T02:56:14Z","updated_at":"2018-08-28T07:17:15Z","pushed_at":"2018-08-30T03:07:38Z","git_url":"git://github.com/songjinze/FinancialNotifier.git","ssh_url":"git@github.com:songjinze/FinancialNotifier.git","clone_url":"https://github.com/songjinze/FinancialNotifier.git","svn_url":"https://github.com/songjinze/FinancialNotifier","homepage":null,"size":29,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/songjinze/FinancialNotifier/pulls/1"},"html":{"href":"https://github.com/songjinze/FinancialNotifier/pull/1"},"issue":{"href":"https://api.github.com/repos/songjinze/FinancialNotifier/issues/1"},"comments":{"href":"https://api.github.com/repos/songjinze/FinancialNotifier/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/songjinze/FinancialNotifier/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/songjinze/FinancialNotifier/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/songjinze/FinancialNotifier/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/songjinze/FinancialNotifier/statuses/a2c57d7204df3cc7318784d38abace1d168849c3"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"KidFeng"}}