mirror of
https://github.com/nsnail/IGeekFan.AspNetCore.Knife4jUI.git
synced 2025-04-15 11:52:50 +08:00
Update README.md
This commit is contained in:
parent
d54e5fd4c4
commit
3c9c7531c0
@ -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;
|
||||
});
|
||||
});
|
||||
```
|
||||
|
Loading…
x
Reference in New Issue
Block a user