提交 bc3af963 编写于 作者: 智布道's avatar 智布道 👁

👽 优化代码

上级 b700902c
......@@ -23,8 +23,8 @@ public enum AuthBaiduScope implements AuthScope {
PUBLIC("public", "可以访问公共的开放API。", false),
HAO123("hao123", "可以访问Hao123 提供的开放API接口。该权限需要申请开通,请将具体的理由和用途发邮件给tuangou@baidu.com。", false);
private String scope;
private String description;
private boolean isDefault;
private final String scope;
private final String description;
private final boolean isDefault;
}
......@@ -24,8 +24,8 @@ public enum AuthCodingScope implements AuthScope {
PROJECT_DEPOT("project:depot", "完整的仓库控制权限", false),
PROJECT_WIKI("project:wiki", "授权读取与操作 wiki", false),
;
private String scope;
private String description;
private boolean isDefault;
private final String scope;
private final String description;
private final boolean isDefault;
}
......@@ -33,8 +33,8 @@ public enum AuthFacebookScope implements AuthScope {
PUBLISH_TO_GROUPS("publish_to_groups", "授权您的应用程序代表某人将内容发布到组中,前提是他们已经授予您的应用程序访问权限", false),
;
private String scope;
private String description;
private boolean isDefault;
private final String scope;
private final String description;
private final boolean isDefault;
}
......@@ -29,8 +29,8 @@ public enum AuthGiteeScope implements AuthScope {
ENTERPRISES("enterprises", "查看、管理用户的企业以及成员", false),
EMAILS("emails", "查看用户的个人邮箱信息", false);
private String scope;
private String description;
private boolean isDefault;
private final String scope;
private final String description;
private final boolean isDefault;
}
......@@ -47,8 +47,8 @@ public enum AuthGithubScope implements AuthScope {
READ_GPG_KEY("read:gpg_key", "List and view details for GPG keys.", false),
WORKFLOW("workflow", "Grants the ability to add and update GitHub Actions workflow files. Workflow files can be committed without this scope if the same file (with both the same path and contents) exists on another branch in the same repository.", false),
;
private String scope;
private String description;
private boolean isDefault;
private final String scope;
private final String description;
private final boolean isDefault;
}
......@@ -30,8 +30,8 @@ public enum AuthGitlabScope implements AuthScope {
API("api", "Grants complete read/write access to the API, including all groups and projects, the container registry, and the package registry.", false),
;
private String scope;
private String description;
private boolean isDefault;
private final String scope;
private final String description;
private final boolean isDefault;
}
......@@ -281,9 +281,9 @@ public enum AuthGoogleScope implements AuthScope {
ADEXCHANGE_BUYER("https://www.googleapis.com/auth/adexchange.buyer", "Manage your Ad Exchange buyer account configuration", false),
;
private String scope;
private String description;
private boolean isDefault;
private final String scope;
private final String description;
private final boolean isDefault;
public static List<String> getAdminDirectoryScopes() {
......
......@@ -39,8 +39,8 @@ public enum AuthHuaweiScope implements AuthScope {
;
private String scope;
private String description;
private boolean isDefault;
private final String scope;
private final String description;
private final boolean isDefault;
}
......@@ -19,8 +19,8 @@ public enum AuthJdScope implements AuthScope {
*/
SNSAPI_BASE("snsapi_base", "基础授权", true);
private String scope;
private String description;
private boolean isDefault;
private final String scope;
private final String description;
private final boolean isDefault;
}
......@@ -21,8 +21,8 @@ public enum AuthKujialeScope implements AuthScope {
GET_DESIGN("get_design", "获取指定方案详情", false),
GET_BUDGET_LIST("get_budget_list", "获取清单预算概览数据", false);
private String scope;
private String description;
private boolean isDefault;
private final String scope;
private final String description;
private final boolean isDefault;
}
......@@ -36,8 +36,8 @@ public enum AuthLinkedinScope implements AuthScope {
W_ORGANIZATION_SOCIAL("w_organization_social", "Post, comment and like posts on your organization's behalf", false),
W_SHARE("w_share", "Post updates to LinkedIn as you", false);
private String scope;
private String description;
private boolean isDefault;
private final String scope;
private final String description;
private final boolean isDefault;
}
......@@ -21,8 +21,8 @@ public enum AuthMiScope implements AuthScope {
OPENID("user/openIdV2", "获取用户的OpenID", true),
PHONE_EMAIL("user/phoneAndEmail", "获取用户的手机号和邮箱", true);
private String scope;
private String description;
private boolean isDefault;
private final String scope;
private final String description;
private final boolean isDefault;
}
......@@ -60,8 +60,8 @@ public enum AuthMicrosoftScope implements AuthScope {
NOTES_READWRITE_ALL("Notes.ReadWrite.All", "允许应用读取、共享和修改已登录用户在组织中有权访问的 OneNote 笔记本", false),
;
private String scope;
private String description;
private boolean isDefault;
private final String scope;
private final String description;
private final boolean isDefault;
}
......@@ -23,8 +23,8 @@ public enum AuthPinterestScope implements AuthScope {
WRITE_RELATIONSHIPS("write_relationships", "Use PATCH, POST and DELETE methods on a user’s follows and followers (on boards, users and interests).", false),
;
private String scope;
private String description;
private boolean isDefault;
private final String scope;
private final String description;
private final boolean isDefault;
}
......@@ -28,8 +28,8 @@ public enum AuthQqScope implements AuthScope {
ADD_ALBUM("add_album", "在用户的空间相册里,创建一个新的个人相册", false),
LIST_PHOTO("list_photo", "获取用户QQ空间相册中的照片列表", false);
private String scope;
private String description;
private boolean isDefault;
private final String scope;
private final String description;
private final boolean isDefault;
}
......@@ -48,8 +48,8 @@ public enum AuthRenrenScope implements AuthScope {
ADMIN_PAGE("admin_page", "以用户的身份,管理其可以管理的公共主页的权限。", false),
;
private String scope;
private String description;
private boolean isDefault;
private final String scope;
private final String description;
private final boolean isDefault;
}
......@@ -22,8 +22,8 @@ public enum AuthStackoverflowScope implements AuthScope {
WRITE_ACCESS("write_access", "perform write operations as a user", false),
PRIVATE_INFO("private_info", "access full history of a user's private actions on the site", false);
private String scope;
private String description;
private boolean isDefault;
private final String scope;
private final String description;
private final boolean isDefault;
}
......@@ -17,8 +17,8 @@ public enum AuthWeChatEnterpriseWebScope implements AuthScope {
*/
SNSAPI_BASE("snsapi_base", "应用授权作用域。企业自建应用固定填写:snsapi_base", true);
private String scope;
private String description;
private boolean isDefault;
private final String scope;
private final String description;
private final boolean isDefault;
}
......@@ -19,8 +19,8 @@ public enum AuthWechatMpScope implements AuthScope {
SNSAPI_USERINFO("snsapi_userinfo", "弹出授权页面,可通过openid拿到昵称、性别、所在地。并且, 即使在未关注的情况下,只要用户授权,也能获取其信息", true),
SNSAPI_BASE("snsapi_base", "不弹出授权页面,直接跳转,只能获取用户openid", false);
private String scope;
private String description;
private boolean isDefault;
private final String scope;
private final String description;
private final boolean isDefault;
}
......@@ -27,8 +27,8 @@ public enum AuthWeiboScope implements AuthScope {
STATUSES_TO_ME_READ("statuses_to_me_read", "定向微博读取接口组,<a rel=\"nofollow\" href=\"http://open.weibo.com/wiki/API%E6%96%87%E6%A1%A3_V2#.E5.BE.AE.E5.8D.9A\">接口文档</a>", false),
FOLLOW_APP_OFFICIAL_MICROBLOG("follow_app_official_microblog", "关注应用官方微博,该参数不对应具体接口,只需在应用控制台填写官方帐号即可。填写的路径:我的应用-选择自己的应用-应用信息-基本信息-官方运营账号(默认值是应用开发者帐号)", false);
private String scope;
private String description;
private boolean isDefault;
private final String scope;
private final String description;
private final boolean isDefault;
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册