mirror of
https://github.com/nsnail/IGeekFan.AspNetCore.Knife4jUI.git
synced 2025-04-13 19:52:50 +08:00
Merge branch 'master' of https://github.com/luoyunchong/IGeekFan.AspNetCore.Knife4jUI
This commit is contained in:
commit
a827c8965e
@ -50,7 +50,8 @@ using IGeekFan.AspNetCore.Knife4jUI;
|
||||
});
|
||||
c.CustomOperationIds(apiDesc =>
|
||||
{
|
||||
return apiDesc.TryGetMethodInfo(out MethodInfo methodInfo) ? methodInfo.Name : null;
|
||||
var controllerAction = apiDesc.ActionDescriptor as ControllerActionDescriptor;
|
||||
return controllerAction.ControllerName+"-"+controllerAction.ActionName;
|
||||
});
|
||||
});
|
||||
```
|
||||
@ -89,4 +90,4 @@ app.UseEndpoints(endpoints =>
|
||||
|
||||
- [https://api.igeekfan.cn/swagger/index.html](https://api.igeekfan.cn/swagger/index.html)
|
||||
- [https://github.com/luoyunchong/lin-cms-dotnetcore](https://github.com/luoyunchong/lin-cms-dotnetcore)
|
||||

|
||||

|
||||
|
Loading…
x
Reference in New Issue
Block a user