memo_organizer.go 698 B

123456789101112131415161718192021222324252627282930313233
  1. package store
  2. import (
  3. "context"
  4. )
  5. type MemoOrganizer struct {
  6. MemoID int32
  7. UserID int32
  8. Pinned bool
  9. }
  10. type FindMemoOrganizer struct {
  11. MemoID int32
  12. UserID int32
  13. }
  14. type DeleteMemoOrganizer struct {
  15. MemoID *int32
  16. UserID *int32
  17. }
  18. func (s *Store) UpsertMemoOrganizer(ctx context.Context, upsert *MemoOrganizer) (*MemoOrganizer, error) {
  19. return s.driver.UpsertMemoOrganizer(ctx, upsert)
  20. }
  21. func (s *Store) GetMemoOrganizer(ctx context.Context, find *FindMemoOrganizer) (*MemoOrganizer, error) {
  22. return s.driver.GetMemoOrganizer(ctx, find)
  23. }
  24. func (s *Store) DeleteMemoOrganizer(ctx context.Context, delete *DeleteMemoOrganizer) error {
  25. return s.driver.DeleteMemoOrganizer(ctx, delete)
  26. }