@Summary 系统信息 @Produce application/json @Accept application/json @Tags sys @Security ApiKeyAuth @Success 200 {string} string "ok" @Router /sys/update [post]
(ctx echo.Context)
| 63 | // @Success 200 {string} string "ok" |
| 64 | // @Router /sys/update [post] |
| 65 | func SystemUpdate(ctx echo.Context) error { |
| 66 | need, version := version.IsNeedUpdate(service.MyService.Casa().GetCasaosVersion()) |
| 67 | if need { |
| 68 | service.MyService.System().UpdateSystemVersion(version.Version) |
| 69 | } |
| 70 | return ctx.JSON(common_err.SUCCESS, model.Result{Success: common_err.SUCCESS, Message: common_err.GetMsg(common_err.SUCCESS)}) |
| 71 | } |
| 72 | |
| 73 | // @Summary get logs |
| 74 | // @Produce application/json |
nothing calls this directly
no test coverage detected