13 lines
248 B
Go
13 lines
248 B
Go
|
|
package qygl
|
||
|
|
|
||
|
|
import "encoding/json"
|
||
|
|
|
||
|
|
// createStatusResponse 创建状态响应
|
||
|
|
func createStatusResponse(status int) []byte {
|
||
|
|
response := map[string]interface{}{
|
||
|
|
"status": status,
|
||
|
|
}
|
||
|
|
respBytes, _ := json.Marshal(response)
|
||
|
|
return respBytes
|
||
|
|
}
|