镜像自地址
https://github.com/tuna/tunasync.git
已同步 2025-12-07 23:16:47 +00:00
refactor(manager): command pulling to command pushing and tests
这个提交包含在:
13
manager/util.go
普通文件
13
manager/util.go
普通文件
@@ -0,0 +1,13 @@
|
||||
package manager
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"encoding/json"
|
||||
"net/http"
|
||||
)
|
||||
|
||||
func postJSON(url string, obj interface{}) (*http.Response, error) {
|
||||
b := new(bytes.Buffer)
|
||||
json.NewEncoder(b).Encode(obj)
|
||||
return http.Post(url, "application/json; charset=utf-8", b)
|
||||
}
|
||||
在新工单中引用
屏蔽一个用户