Conflict 辅助函数:409 Conflict
(w http.ResponseWriter, message string)
| 114 | |
| 115 | // Conflict 辅助函数:409 Conflict |
| 116 | func Conflict(w http.ResponseWriter, message string) { |
| 117 | Error(w, http.StatusConflict, "conflict", message) |
| 118 | } |
| 119 | |
| 120 | // ParseJSON 解析 JSON 请求体 |
| 121 | func ParseJSON(r *http.Request, v any) error { |