fix(security): 强化 usage 端点信息暴露控制

This commit is contained in:
shaw
2026-01-08 17:45:31 +08:00
parent 6e8188ed64
commit 3fb43b91bf
3 changed files with 40 additions and 4 deletions

View File

@@ -144,7 +144,7 @@ func (h *UsageHandler) List(c *gin.Context) {
out := make([]dto.UsageLog, 0, len(records))
for i := range records {
out = append(out, *dto.UsageLogFromService(&records[i]))
out = append(out, *dto.UsageLogFromServiceAdmin(&records[i]))
}
response.Paginated(c, out, result.Total, page, pageSize)
}