feat: create basic server to manage google oauth, account, sessions, places, attributes and ratings.
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
package store
|
||||
|
||||
import "git.pengzhan.dev/noteplace-server/internal/models"
|
||||
|
||||
func (s *Store) CreateAttribute(attr models.Attribute) error {
|
||||
s.Mu.Lock()
|
||||
defer s.Mu.Unlock()
|
||||
|
||||
s.Data.Attributes[attr.ID] = attr
|
||||
return s.save()
|
||||
}
|
||||
Reference in New Issue
Block a user