debug toekn
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user