meeting_repository

package
v0.0.0-...-93f7374 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRepository

func NewRepository(db db.Client) *repository

NewRepository ...

Types

type Query

type Query struct {
	model.QueryFilter

	IDs               []int64
	TopicIDs          []int64
	Status            sql.NullString
	StartDate         sql.NullTime
	BeginStartDate    sql.NullTime
	EndStartDate      sql.NullTime
	SpeakerIDs        []int64
	ExcludeSpeakerIDs []int64
	ListenerIDs       []int64
	CreatedAt         sql.NullTime
	BeginCreatedAt    sql.NullTime
	EndCreatedAt      sql.NullTime
}

Query ...

type Repository

type Repository interface {
	Create(ctx context.Context, meeting *model.Meeting) (int64, error)
	Get(ctx context.Context, id int64) (*model.Meeting, error)
	GetList(ctx context.Context, filter *Query) ([]*model.Meeting, error)
	Update(ctx context.Context, ids []int64, updateMeeting *model.UpdateMeeting) error
	GetSpeakerStatByTopic(ctx context.Context, unitID int64, topicID int64, speakerID int64) (int64, error)
}

Repository ...

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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