implement

package
v0.0.0-...-b00f2dc Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewBookingRepository

func NewBookingRepository(dbContext core.DbContext) repo.BookingRepository

func NewBookingSourceRepository

func NewBookingSourceRepository(dbContext core.DbContext) repo.BookingSourceRepository

func NewCaseTaskRepository

func NewCaseTaskRepository(dbContext core.DbContext) repo.CaseTaskRepository

func NewCategoryRepository

func NewCategoryRepository(dbContext core.DbContext) repo.CategoryRepository

func NewOAuthSessionRepository

func NewOAuthSessionRepository(dbContext core.DbContext) repo.OAuthSessionRepository

func NewUserRepository

func NewUserRepository(dbContext core.DbContext) repo.UserRepository

Types

type BaseRepository

type BaseRepository struct {
	// contains filtered or unexported fields
}

type BookingRepositoryImpl

type BookingRepositoryImpl struct {
	BaseRepository
}

func (*BookingRepositoryImpl) DeleteById

func (r *BookingRepositoryImpl) DeleteById(ctx context.Context, id string) (bool, *core.AppError)

func (*BookingRepositoryImpl) FindById

func (*BookingRepositoryImpl) Insert

func (*BookingRepositoryImpl) QueryData

func (r *BookingRepositoryImpl) QueryData(ctx context.Context, query *core.DbQuery) ([]model.Booking, *core.AppError)

func (*BookingRepositoryImpl) Update

type BookingSourceRepositoryImpl

type BookingSourceRepositoryImpl struct {
	BaseRepository
}

func (*BookingSourceRepositoryImpl) DeleteById

func (r *BookingSourceRepositoryImpl) DeleteById(ctx context.Context, id string) (bool, *core.AppError)

func (*BookingSourceRepositoryImpl) FindById

func (*BookingSourceRepositoryImpl) Insert

func (*BookingSourceRepositoryImpl) QueryData

func (*BookingSourceRepositoryImpl) Update

type CaseTaskRepositoryImpl

type CaseTaskRepositoryImpl struct {
	BaseRepository
}

func (*CaseTaskRepositoryImpl) DeleteById

func (r *CaseTaskRepositoryImpl) DeleteById(ctx context.Context, id string) (bool, *core.AppError)

func (*CaseTaskRepositoryImpl) FindById

func (*CaseTaskRepositoryImpl) Insert

func (*CaseTaskRepositoryImpl) QueryData

func (r *CaseTaskRepositoryImpl) QueryData(ctx context.Context, query *core.DbQuery) ([]model.CaseTask, *core.AppError)

func (*CaseTaskRepositoryImpl) Update

type CategoryRepositoryImpl

type CategoryRepositoryImpl struct {
	BaseRepository
}

func (*CategoryRepositoryImpl) DeleteById

func (r *CategoryRepositoryImpl) DeleteById(ctx context.Context, id string) (bool, *core.AppError)

func (*CategoryRepositoryImpl) FindById

func (*CategoryRepositoryImpl) Insert

func (*CategoryRepositoryImpl) QueryData

func (r *CategoryRepositoryImpl) QueryData(ctx context.Context, query *core.DbQuery) ([]model.Category, *core.AppError)

func (*CategoryRepositoryImpl) Update

type OAuthSessionRepositoryImpl

type OAuthSessionRepositoryImpl struct {
	BaseRepository
}

func (*OAuthSessionRepositoryImpl) DeleteById

func (r *OAuthSessionRepositoryImpl) DeleteById(ctx context.Context, id string) (bool, *core.AppError)

func (*OAuthSessionRepositoryImpl) FindById

func (*OAuthSessionRepositoryImpl) Insert

func (*OAuthSessionRepositoryImpl) Update

type UserRepositoryImpl

type UserRepositoryImpl struct {
	BaseRepository
}

func (*UserRepositoryImpl) DeleteUserById

func (r *UserRepositoryImpl) DeleteUserById(ctx context.Context, id string) (bool, *core.AppError)

func (*UserRepositoryImpl) DeleteUserByMobile

func (r *UserRepositoryImpl) DeleteUserByMobile(ctx context.Context, mobile string) (bool, *core.AppError)

func (*UserRepositoryImpl) FindById

func (r *UserRepositoryImpl) FindById(ctx context.Context, id string) (*model.User, *core.AppError)

func (*UserRepositoryImpl) FindByMobile

func (r *UserRepositoryImpl) FindByMobile(ctx context.Context, mobile string) (*model.User, *core.AppError)

func (*UserRepositoryImpl) InsertUser

func (r *UserRepositoryImpl) InsertUser(ctx context.Context, u *model.User) (*model.User, *core.AppError)

func (*UserRepositoryImpl) QueryData

func (r *UserRepositoryImpl) QueryData(ctx context.Context, query *core.DbQuery) ([]model.User, *core.AppError)

func (*UserRepositoryImpl) UpdateUser

func (r *UserRepositoryImpl) UpdateUser(ctx context.Context, u *model.User) (*model.User, *core.AppError)

Jump to

Keyboard shortcuts

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