Recommendation:
- Success: gin.H{"success":"xxx","data":...}
- Error: gin.H{"error":"xxx","data":...}
Also:
- Unified list filtering/sorting
- Batch delete support like 1-2-3
- Keep external fields compatible while evolving internally
Go + Gin API Conventions: Unified Response & Error Handling
A consistent response shape reduces integration and troubleshooting costs.