Documentation ¶
Index ¶
- func NewBookingRepository(dbContext core.DbContext) repo.BookingRepository
- func NewBookingSourceRepository(dbContext core.DbContext) repo.BookingSourceRepository
- func NewCaseTaskRepository(dbContext core.DbContext) repo.CaseTaskRepository
- func NewCategoryRepository(dbContext core.DbContext) repo.CategoryRepository
- func NewOAuthSessionRepository(dbContext core.DbContext) repo.OAuthSessionRepository
- func NewUserRepository(dbContext core.DbContext) repo.UserRepository
- type BaseRepository
- type BookingRepositoryImpl
- func (r *BookingRepositoryImpl) DeleteById(ctx context.Context, id string) (bool, *core.AppError)
- func (r *BookingRepositoryImpl) FindById(ctx context.Context, id string) (*model.Booking, *core.AppError)
- func (r *BookingRepositoryImpl) Insert(ctx context.Context, d *model.Booking) (*model.Booking, *core.AppError)
- func (r *BookingRepositoryImpl) QueryData(ctx context.Context, query *core.DbQuery) ([]model.Booking, *core.AppError)
- func (r *BookingRepositoryImpl) Update(ctx context.Context, d *model.Booking) (*model.Booking, *core.AppError)
- type BookingSourceRepositoryImpl
- func (r *BookingSourceRepositoryImpl) DeleteById(ctx context.Context, id string) (bool, *core.AppError)
- func (r *BookingSourceRepositoryImpl) FindById(ctx context.Context, id string) (*model.BookingSource, *core.AppError)
- func (r *BookingSourceRepositoryImpl) Insert(ctx context.Context, d *model.BookingSource) (*model.BookingSource, *core.AppError)
- func (r *BookingSourceRepositoryImpl) QueryData(ctx context.Context, query *core.DbQuery) ([]model.BookingSource, *core.AppError)
- func (r *BookingSourceRepositoryImpl) Update(ctx context.Context, d *model.BookingSource) (*model.BookingSource, *core.AppError)
- type CaseTaskRepositoryImpl
- func (r *CaseTaskRepositoryImpl) DeleteById(ctx context.Context, id string) (bool, *core.AppError)
- func (r *CaseTaskRepositoryImpl) FindById(ctx context.Context, id string) (*model.CaseTask, *core.AppError)
- func (r *CaseTaskRepositoryImpl) Insert(ctx context.Context, d *model.CaseTask) (*model.CaseTask, *core.AppError)
- func (r *CaseTaskRepositoryImpl) QueryData(ctx context.Context, query *core.DbQuery) ([]model.CaseTask, *core.AppError)
- func (r *CaseTaskRepositoryImpl) Update(ctx context.Context, d *model.CaseTask) (*model.CaseTask, *core.AppError)
- type CategoryRepositoryImpl
- func (r *CategoryRepositoryImpl) DeleteById(ctx context.Context, id string) (bool, *core.AppError)
- func (r *CategoryRepositoryImpl) FindById(ctx context.Context, id string) (*model.Category, *core.AppError)
- func (r *CategoryRepositoryImpl) Insert(ctx context.Context, d *model.Category) (*model.Category, *core.AppError)
- func (r *CategoryRepositoryImpl) QueryData(ctx context.Context, query *core.DbQuery) ([]model.Category, *core.AppError)
- func (r *CategoryRepositoryImpl) Update(ctx context.Context, d *model.Category) (*model.Category, *core.AppError)
- type OAuthSessionRepositoryImpl
- func (r *OAuthSessionRepositoryImpl) DeleteById(ctx context.Context, id string) (bool, *core.AppError)
- func (r *OAuthSessionRepositoryImpl) FindById(ctx context.Context, id string) (*model.OAuthSession, *core.AppError)
- func (r *OAuthSessionRepositoryImpl) Insert(ctx context.Context, d *model.OAuthSession) (*model.OAuthSession, *core.AppError)
- func (r *OAuthSessionRepositoryImpl) Update(ctx context.Context, d *model.OAuthSession) (*model.OAuthSession, *core.AppError)
- type UserRepositoryImpl
- func (r *UserRepositoryImpl) DeleteUserById(ctx context.Context, id string) (bool, *core.AppError)
- func (r *UserRepositoryImpl) DeleteUserByMobile(ctx context.Context, mobile string) (bool, *core.AppError)
- func (r *UserRepositoryImpl) FindById(ctx context.Context, id string) (*model.User, *core.AppError)
- func (r *UserRepositoryImpl) FindByMobile(ctx context.Context, mobile string) (*model.User, *core.AppError)
- func (r *UserRepositoryImpl) InsertUser(ctx context.Context, u *model.User) (*model.User, *core.AppError)
- func (r *UserRepositoryImpl) QueryData(ctx context.Context, query *core.DbQuery) ([]model.User, *core.AppError)
- func (r *UserRepositoryImpl) UpdateUser(ctx context.Context, u *model.User) (*model.User, *core.AppError)
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 ¶
type BookingSourceRepositoryImpl ¶
type BookingSourceRepositoryImpl struct {
BaseRepository
}
func (*BookingSourceRepositoryImpl) DeleteById ¶
func (*BookingSourceRepositoryImpl) FindById ¶
func (r *BookingSourceRepositoryImpl) FindById(ctx context.Context, id string) (*model.BookingSource, *core.AppError)
func (*BookingSourceRepositoryImpl) Insert ¶
func (r *BookingSourceRepositoryImpl) Insert(ctx context.Context, d *model.BookingSource) (*model.BookingSource, *core.AppError)
func (*BookingSourceRepositoryImpl) QueryData ¶
func (r *BookingSourceRepositoryImpl) QueryData(ctx context.Context, query *core.DbQuery) ([]model.BookingSource, *core.AppError)
func (*BookingSourceRepositoryImpl) Update ¶
func (r *BookingSourceRepositoryImpl) Update(ctx context.Context, d *model.BookingSource) (*model.BookingSource, *core.AppError)
type CaseTaskRepositoryImpl ¶
type CaseTaskRepositoryImpl struct {
BaseRepository
}
func (*CaseTaskRepositoryImpl) DeleteById ¶
type CategoryRepositoryImpl ¶
type CategoryRepositoryImpl struct {
BaseRepository
}
func (*CategoryRepositoryImpl) DeleteById ¶
type OAuthSessionRepositoryImpl ¶
type OAuthSessionRepositoryImpl struct {
BaseRepository
}
func (*OAuthSessionRepositoryImpl) DeleteById ¶
func (*OAuthSessionRepositoryImpl) FindById ¶
func (r *OAuthSessionRepositoryImpl) FindById(ctx context.Context, id string) (*model.OAuthSession, *core.AppError)
func (*OAuthSessionRepositoryImpl) Insert ¶
func (r *OAuthSessionRepositoryImpl) Insert(ctx context.Context, d *model.OAuthSession) (*model.OAuthSession, *core.AppError)
func (*OAuthSessionRepositoryImpl) Update ¶
func (r *OAuthSessionRepositoryImpl) Update(ctx context.Context, d *model.OAuthSession) (*model.OAuthSession, *core.AppError)
type UserRepositoryImpl ¶
type UserRepositoryImpl struct {
BaseRepository
}
func (*UserRepositoryImpl) DeleteUserById ¶
func (*UserRepositoryImpl) DeleteUserByMobile ¶
func (*UserRepositoryImpl) FindByMobile ¶
func (*UserRepositoryImpl) InsertUser ¶
Click to show internal directories.
Click to hide internal directories.