db

package
v1.0.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 9, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Module

func Module(c *di.Container)

Types

type MemberRepository

type MemberRepository interface {
	GetByUserIDAndOrganizationID(ctx context.Context, userID, organizationID string) (*organization.Member, error)
	ListByOrganizationID(ctx context.Context, id string) ([]*organization.Member, error)
	ListByUserID(ctx context.Context, id string) ([]*organization.Member, error)
	Create(ctx context.Context, org organization.Member) error
	Update(ctx context.Context, org *organization.Member) error
}

func NewMember

func NewMember(db *sqlx.DB) MemberRepository

type Repository

func New

func New(db *sqlx.DB) Repository

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL