16 lines
227 B
Go
16 lines
227 B
Go
package repositories
|
|
|
|
type BaseRepository struct {
|
|
key string
|
|
}
|
|
|
|
|
|
func (r *BaseRepository) saveOrUpdate(id string, rec interface{}) error {
|
|
return saveStruct(r.key + "_id_" + id, rec)
|
|
}
|
|
|
|
func (r *BaseRepository) Dump() {
|
|
}
|
|
|
|
|