|
@ -366,6 +366,25 @@ namespace Win.Sfs.SettleAccount |
|
|
{ |
|
|
{ |
|
|
options.IncludeXmlComments(xmlapppath); |
|
|
options.IncludeXmlComments(xmlapppath); |
|
|
} |
|
|
} |
|
|
|
|
|
options.AddSecurityDefinition("Bearer", new OpenApiSecurityScheme |
|
|
|
|
|
{ |
|
|
|
|
|
Description = "请输入 JWT Token", |
|
|
|
|
|
Name = "Authorization", |
|
|
|
|
|
In = ParameterLocation.Header, |
|
|
|
|
|
Type = SecuritySchemeType.Http, |
|
|
|
|
|
Scheme = "Bearer" |
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
options.AddSecurityRequirement(new OpenApiSecurityRequirement() |
|
|
|
|
|
{ |
|
|
|
|
|
{ |
|
|
|
|
|
new OpenApiSecurityScheme |
|
|
|
|
|
{ |
|
|
|
|
|
Reference = new OpenApiReference {Type = ReferenceType.SecurityScheme, Id = "Bearer"} |
|
|
|
|
|
}, |
|
|
|
|
|
new string[] { } |
|
|
|
|
|
} |
|
|
|
|
|
}); |
|
|
}); |
|
|
}); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|