fix: audit platform contracts and relation identities

This commit is contained in:
2026-07-27 10:25:04 +08:00
parent 2e62238416
commit 7ebe25fe34
9 changed files with 225 additions and 1251 deletions

View File

@@ -47,7 +47,7 @@ func listPage[T any](ctx *gin.Context) {
infra.Response.Error(ctx, err)
return
}
infra.Response.Success(ctx, gin.H{"total": total, "list": list})
infra.Response.Success(ctx, gin.H{"total": total, "list": publicResourceResponse(list)})
}
func getByIdentity[T any](ctx *gin.Context) {
@@ -56,7 +56,7 @@ func getByIdentity[T any](ctx *gin.Context) {
respondRecordError(ctx, err)
return
}
infra.Response.Success(ctx, data)
infra.Response.Success(ctx, publicResourceResponse(data))
}
func updateAllowedByIdentity(ctx *gin.Context, model any, values map[string]any, allowedFields []string) {