Adds insertplan to model

This commit is contained in:
2020-12-29 18:20:28 -06:00
parent b6a6c9375f
commit 9c56ea56e2
5 changed files with 33 additions and 4 deletions

View File

@@ -1,10 +1,10 @@
package store
import (
"github.com/jmoiron/sqlx"
"fmt"
"gitea.deepak.science/deepak/gogmagog/models"
"gitea.deepak.science/deepak/gogmagog/util"
"github.com/jmoiron/sqlx"
)
type postgresStore struct {
@@ -53,3 +53,7 @@ func (store *postgresStore) SelectPlanByID(id int) (*models.Plan, error) {
}
return &plan, nil
}
func (store *postgresStore) InsertPlan(plan *models.Plan) (int, error) {
return 0, fmt.Errorf("Unimplemented method")
}