中文枚举

This commit is contained in:
2025-10-24 21:38:52 +08:00
parent 3fd97aa43f
commit bd8729d473
7 changed files with 9 additions and 18 deletions

View File

@@ -5656,7 +5656,7 @@ const docTemplate = `{
],
"properties": {
"type": {
"description": "Type 指定要测试的通知渠道\n@enum(smtp, wechat, lark, log)",
"description": "Type 指定要测试的通知渠道",
"allOf": [
{
"$ref": "#/definitions/notify.NotifierType"
@@ -6611,14 +6611,12 @@ const docTemplate = `{
"smtp",
"wechat",
"lark",
"sms",
"log"
],
"x-enum-varnames": [
"NotifierTypeSMTP",
"NotifierTypeWeChat",
"NotifierTypeLark",
"NotifierTypeSMS",
"NotifierTypeLog"
]
}