Update README.md

This commit is contained in:
IGeekFan 2020-08-11 17:05:52 +08:00 committed by GitHub
parent d54e5fd4c4
commit 3c9c7531c0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -49,7 +49,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;
});
});
```
@ -88,4 +89,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)
![image](https://pic.downk.cc/item/5f2fa97814195aa594cd5cfc.jpg)
![image](https://pic.downk.cc/item/5f2fa97814195aa594cd5cfc.jpg)