1
This commit is contained in:
@@ -171,6 +171,18 @@ const definitions = {
|
||||
required: ["user_id", "expire_at"],
|
||||
properties: {
|
||||
user_id: { type: "integer", format: "int64" },
|
||||
key: { type: "string", description: "账号唯一标识,可选" },
|
||||
token_name: { type: "string" },
|
||||
expire_at: { type: "string" },
|
||||
},
|
||||
},
|
||||
BizTokenEditRequest: {
|
||||
type: "object",
|
||||
title: "BizTokenEditRequest",
|
||||
required: ["id"],
|
||||
properties: {
|
||||
id: { type: "integer", format: "int64" },
|
||||
key: { type: "string", description: "可空表示清空" },
|
||||
token_name: { type: "string" },
|
||||
expire_at: { type: "string" },
|
||||
},
|
||||
@@ -306,6 +318,7 @@ paths["/admin_api/biz_subscription/export"] = post("订阅导出 CSV 数据", "B
|
||||
|
||||
paths["/admin_api/biz_token/page"] = post("API Token 分页(不含 secret_cipher)", "BizAdminPageRequest");
|
||||
paths["/admin_api/biz_token/create"] = post("创建 Token,返回 plain_token", "BizTokenCreateRequest");
|
||||
paths["/admin_api/biz_token/edit"] = post("编辑 Token(名称/key/过期时间,不改密钥)", "BizTokenEditRequest");
|
||||
paths["/admin_api/biz_token/revoke"] = post("吊销 Token", "BizTokenIdRequest");
|
||||
paths["/admin_api/biz_token/regenerate"] = post("重新生成密钥(返回新 plain_token)", "BizTokenIdRequest");
|
||||
paths["/admin_api/biz_token/export"] = post("Token 导出", "BizAdminPageRequest");
|
||||
|
||||
Reference in New Issue
Block a user