MCPcopy
hub / github.com/IceWhaleTech/CasaOS / PostSystemStatusNotify

Function PostSystemStatusNotify

route/v1/notify.go:23–31  ·  view source on GitHub ↗
(ctx echo.Context)

Source from the content-addressed store, hash-verified

21}
22
23func PostSystemStatusNotify(ctx echo.Context) error {
24 message := make(map[string]interface{})
25 if err := ctx.Bind(&message); err != nil {
26 return ctx.JSON(http.StatusBadRequest, model.Result{Success: common_err.INVALID_PARAMS, Message: err.Error()})
27 }
28
29 service.MyService.Notify().SettingSystemTempData(message)
30 return ctx.JSON(common_err.SUCCESS, model.Result{Success: common_err.SUCCESS, Message: common_err.GetMsg(common_err.SUCCESS)})
31}

Callers

nothing calls this directly

Calls 4

GetMsgFunction · 0.92
SettingSystemTempDataMethod · 0.65
NotifyMethod · 0.65
ErrorMethod · 0.45

Tested by

no test coverage detected