mirror of
https://github.com/EZ-Api/ez-api.git
synced 2026-01-13 17:47:51 +00:00
feat(api): add admin master key listing/revoke
Add admin endpoints to list and revoke child keys under a master. Standardize OpenAPI responses to use ResponseEnvelope with MapData for error payloads, and regenerate swagger specs accordingly.
This commit is contained in:
@@ -49,7 +49,7 @@ func toOperationLogView(l model.OperationLog) OperationLogView {
|
||||
// @Param limit query int false "limit (default 50, max 200)"
|
||||
// @Param search query string false "search by actor/method/path"
|
||||
// @Success 200 {object} ResponseEnvelope{data=[]OperationLogView}
|
||||
// @Failure 500 {object} ResponseEnvelope{data=gin.H}
|
||||
// @Failure 500 {object} ResponseEnvelope{data=MapData}
|
||||
// @Router /admin/operation-logs [get]
|
||||
func (h *AdminHandler) ListOperationLogs(c *gin.Context) {
|
||||
var rows []model.OperationLog
|
||||
|
||||
Reference in New Issue
Block a user