f1909da1ad
Go CI / build (push) Failing after 2m42s
feat: create basic server to manage google oauth, account, sessions, places, attributes and ratings.
12 lines
227 B
Go
12 lines
227 B
Go
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()
|
|
}
|