code: func (c *Controller) UpdateAccount(ctx *gin.Context) {
  	id := ctx.Param("id")
  	aid, err := strconv.Atoi(id)
  	if err != nil {
  		httputil.NewError(ctx, http.StatusBadRequest, err)
  		return
  	}
  	var updateAccount model.UpdateAccount
  	if err := ctx.ShouldBindJSON(&updateAccount); err != nil {
  		httputil.NewError(ctx, http.StatusBadRequest, err)
  		return
  	}
  	account := model.Account{
  		ID:   aid,
  		Name: updateAccount.Name,
  	}
  	err = account.Update()
  	if err != nil {
  		httputil.NewError(ctx, http.StatusNotFound, err)
  		return
  	}
  	ctx.JSON(http.StatusOK, account)
  }
docs: // UpdateAccount godoc
  // @Summary Update a account
  // @Description Update by json account
  // @Tags accounts
  // @Accept  json
  // @Produce  json
  // @Param  id path int true "Account ID"
  // @Param  account body model.UpdateAccount true "Update account"
  // @Success 200 {object} model.Account
  // @Failure 400 {object} httputil.HTTPError
  // @Failure 404 {object} httputil.HTTPError
  // @Failure 500 {object} httputil.HTTPError
  // @Router /accounts/{id} [patch]