2025-04-11 16:45:11 +08:00
|
|
|
package oplog
|
|
|
|
|
|
|
|
import (
|
|
|
|
"encoding/json"
|
2025-04-11 18:14:07 +08:00
|
|
|
|
|
|
|
"git.apinb.com/bsm-sdk/core/utils"
|
2025-04-11 16:45:11 +08:00
|
|
|
)
|
|
|
|
|
2025-04-11 18:14:07 +08:00
|
|
|
func New(endpoint string, data []*LogItem) {
|
|
|
|
jsonBytes, _ := json.Marshal(data)
|
2025-04-11 16:45:11 +08:00
|
|
|
|
2025-04-11 18:14:07 +08:00
|
|
|
go utils.HttpPost(endpoint, nil, jsonBytes)
|
2025-04-11 17:44:49 +08:00
|
|
|
|
2025-04-11 16:45:11 +08:00
|
|
|
}
|