错误的方法:GetRefreshWarehouseAsync,
跟入app.MapFast(); 方法
var wWarehouse = app.MapGroup("/api/Warehouse");
wWarehouse.MapGet("/RefreshWarehouse",
async (KoalaWiki.Services.WarehouseService wWarehouse, string wid) => await wWarehouse.GetRefreshWarehouseAsync(wid));
反编译的结果检查下来没有问题,但是http的状态就是返回 405
方法名改为 GetRetryWarehouseAsync 就正常了。
错误的方法:GetRefreshWarehouseAsync,
跟入app.MapFast(); 方法
var wWarehouse = app.MapGroup("/api/Warehouse");
wWarehouse.MapGet("/RefreshWarehouse",
async (KoalaWiki.Services.WarehouseService wWarehouse, string wid) => await wWarehouse.GetRefreshWarehouseAsync(wid));
反编译的结果检查下来没有问题,但是http的状态就是返回 405
方法名改为 GetRetryWarehouseAsync 就正常了。