Files

13 lines
248 B
Go
Raw Permalink Normal View History

2026-04-21 22:36:48 +08:00
package qygl
import "encoding/json"
// createStatusResponse 创建状态响应
func createStatusResponse(status int) []byte {
response := map[string]interface{}{
"status": status,
}
respBytes, _ := json.Marshal(response)
return respBytes
}