debug toekn

This commit is contained in:
eson
2023-10-17 17:25:48 +08:00
parent a1e0c7c5f5
commit e00dc9f3cf
12 changed files with 299 additions and 33 deletions

View File

@@ -22,6 +22,10 @@ service auth {
@handler AcceptCookieHandler
post /api/auth/accept-cookie(request) returns (response);
// 获取测试链接
@handler UserDebugTokenHandler
post /api/auth/debug/token/create(RequestUserDebug) returns (response);
// 谷歌第三方登录
@handler UserGoogleLoginHandler
get /api/auth/oauth2/login/google(RequestGoogleLogin) returns (response);
@@ -52,6 +56,12 @@ service auth {
}
type (
RequestUserDebug {
Password string `json:"password"` // 密码,内部使用都是明文
Exp *int64 `json:"exp"` // 过期时间, 不发默认一天
IsCache int64 `json:"is_cache"` // 是否缓存
IsAllTemplateTag int64 `json:"is_all_template_tag"` // 是开启全部模板
}
// RequestAuthDelete 用于debug
RequestAuthDelete {