code: func GetDashboardVersion(query *m.GetDashboardVersionQuery) error {
  	version := m.DashboardVersion{}
  	has, err := x.Where("dashboard_version.dashboard_id=? AND dashboard_version.version=? AND dashboard.org_id=?", query.DashboardId, query.Version, query.OrgId).
  		Join("LEFT", "dashboard", `dashboard.id = dashboard_version.dashboard_id`).
  		Get(&version)
  
  	if err != nil {
  		return err
  	}
  
  	if !has {
  		return m.ErrDashboardVersionNotFound
  	}
  
  	version.Data.Set("id", version.DashboardId)
  	query.Result = &version
  	return nil
  }
docs: // GetDashboardVersion gets the dashboard version for the given dashboard ID and version number.