(ctx echo.Context)
| 10 | ) |
| 11 | |
| 12 | func PostNotifyMessage(ctx echo.Context) error { |
| 13 | name := ctx.Param("name") |
| 14 | message := make(map[string]interface{}) |
| 15 | if err := ctx.Bind(&message); err != nil { |
| 16 | return ctx.JSON(http.StatusBadRequest, model.Result{Success: common_err.INVALID_PARAMS, Message: err.Error()}) |
| 17 | } |
| 18 | |
| 19 | service.MyService.Notify().SendNotify(name, message) |
| 20 | return ctx.JSON(common_err.SUCCESS, model.Result{Success: common_err.SUCCESS, Message: common_err.GetMsg(common_err.SUCCESS)}) |
| 21 | } |
| 22 | |
| 23 | func PostSystemStatusNotify(ctx echo.Context) error { |
| 24 | message := make(map[string]interface{}) |
nothing calls this directly
no test coverage detected