Skip to content

Commit 6783081

Browse files
committed
* [feat] imp statistics api
1 parent e3a7baf commit 6783081

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

internal/api/statistics/statistics.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ package statistics
99
import (
1010
"fmt"
1111

12+
"github.com/ergoapi/util/zos"
1213
"github.com/imroc/req/v3"
1314

1415
"github.com/easysoft/qcadmin/common"
@@ -22,6 +23,7 @@ type CollectData struct {
2223
Type string `json:"type"`
2324
Action string `json:"action"`
2425
Devops bool `json:"devops,omitempty"`
26+
OS string `json:"os,omitempty"`
2527
}
2628

2729
type Result struct {
@@ -39,6 +41,7 @@ func SendStatistics(action string) error {
3941
Type: cfg.Quickon.Type.String(),
4042
Action: action,
4143
Devops: cfg.Quickon.DevOps,
44+
OS: zos.GetDistro(),
4245
}
4346

4447
// send statistics

0 commit comments

Comments
 (0)