repositories

package
v0.0.0-...-6d8a328 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2022 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ActivitySheetItemRepo

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

func NewActivitySheetItemRepo

func NewActivitySheetItemRepo(db *sql.DB) *ActivitySheetItemRepo

func (*ActivitySheetItemRepo) CheckIfExistsById

func (r *ActivitySheetItemRepo) CheckIfExistsById(ctx context.Context, tenantID uint64, id uint64) (bool, error)

func (*ActivitySheetItemRepo) CountByFilter

func (*ActivitySheetItemRepo) GetById

func (r *ActivitySheetItemRepo) GetById(ctx context.Context, tenantID uint64, id uint64) (*models.ActivitySheetItem, error)

func (*ActivitySheetItemRepo) GetByPK

func (*ActivitySheetItemRepo) GetByUUID

func (r *ActivitySheetItemRepo) GetByUUID(ctx context.Context, tenantID uint64, uid string) (*models.ActivitySheetItem, error)

func (*ActivitySheetItemRepo) GetIdByOldId

func (r *ActivitySheetItemRepo) GetIdByOldId(ctx context.Context, tenantID uint64, oldId uint64) (uint64, error)

func (*ActivitySheetItemRepo) Insert

func (*ActivitySheetItemRepo) InsertOrUpdateById

func (r *ActivitySheetItemRepo) InsertOrUpdateById(ctx context.Context, m *models.ActivitySheetItem) error

func (*ActivitySheetItemRepo) ListByFilter

func (*ActivitySheetItemRepo) ListValuesFromColumnAndByFilter

func (s *ActivitySheetItemRepo) ListValuesFromColumnAndByFilter(ctx context.Context, columnName string, filter *models.ActivitySheetItemFilter) ([]uint64, error)

func (*ActivitySheetItemRepo) UpdateById

type AssociateAwayLogRepo

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

func NewAssociateAwayLogRepo

func NewAssociateAwayLogRepo(db *sql.DB) *AssociateAwayLogRepo

func (*AssociateAwayLogRepo) CheckIfExistsById

func (r *AssociateAwayLogRepo) CheckIfExistsById(ctx context.Context, tenantID uint64, id uint64) (bool, error)

func (*AssociateAwayLogRepo) CountByFilter

func (*AssociateAwayLogRepo) DeleteById

func (s *AssociateAwayLogRepo) DeleteById(ctx context.Context, tenantID uint64, id uint64) error

func (*AssociateAwayLogRepo) GetById

func (r *AssociateAwayLogRepo) GetById(ctx context.Context, tenantID uint64, id uint64) (*models.AssociateAwayLog, error)

func (*AssociateAwayLogRepo) GetByOld

func (r *AssociateAwayLogRepo) GetByOld(ctx context.Context, tenantID uint64, oldId uint64) (*models.AssociateAwayLog, error)

func (*AssociateAwayLogRepo) GetByUUID

func (r *AssociateAwayLogRepo) GetByUUID(ctx context.Context, tenantID uint64, uid string) (*models.AssociateAwayLog, error)

func (*AssociateAwayLogRepo) Insert

func (*AssociateAwayLogRepo) InsertOrUpdateById

func (r *AssociateAwayLogRepo) InsertOrUpdateById(ctx context.Context, m *models.AssociateAwayLog) error

func (*AssociateAwayLogRepo) ListByFilter

func (*AssociateAwayLogRepo) UpdateById

type AssociateCommentRepo

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

func NewAssociateCommentRepo

func NewAssociateCommentRepo(db *sql.DB) *AssociateCommentRepo

func (*AssociateCommentRepo) CheckIfExistsById

func (r *AssociateCommentRepo) CheckIfExistsById(ctx context.Context, tenantID uint64, id uint64) (bool, error)

func (*AssociateCommentRepo) CountByFilter

func (*AssociateCommentRepo) GetById

func (r *AssociateCommentRepo) GetById(ctx context.Context, tenantID uint64, id uint64) (*models.AssociateComment, error)

func (*AssociateCommentRepo) GetByOld

func (r *AssociateCommentRepo) GetByOld(ctx context.Context, tenantID uint64, oldId uint64) (*models.AssociateComment, error)

func (*AssociateCommentRepo) GetByUUID

func (r *AssociateCommentRepo) GetByUUID(ctx context.Context, tenantID uint64, uid string) (*models.AssociateComment, error)

func (*AssociateCommentRepo) Insert

func (*AssociateCommentRepo) InsertOrUpdateById

func (r *AssociateCommentRepo) InsertOrUpdateById(ctx context.Context, m *models.AssociateComment) error

func (*AssociateCommentRepo) ListByFilter

func (*AssociateCommentRepo) UpdateById

type AssociateInsuranceRequirementRepo

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

func NewAssociateInsuranceRequirementRepo

func NewAssociateInsuranceRequirementRepo(db *sql.DB) *AssociateInsuranceRequirementRepo

func (*AssociateInsuranceRequirementRepo) CheckIfExistsById

func (r *AssociateInsuranceRequirementRepo) CheckIfExistsById(ctx context.Context, tenantID uint64, id uint64) (bool, error)

func (*AssociateInsuranceRequirementRepo) CountByFilter

func (*AssociateInsuranceRequirementRepo) DeleteByAssociateId

func (r *AssociateInsuranceRequirementRepo) DeleteByAssociateId(ctx context.Context, tenantID uint64, associateId uint64) error

func (*AssociateInsuranceRequirementRepo) GetById

func (*AssociateInsuranceRequirementRepo) GetIdByOldId

func (r *AssociateInsuranceRequirementRepo) GetIdByOldId(ctx context.Context, tid uint64, oid uint64) (uint64, error)

func (*AssociateInsuranceRequirementRepo) Insert

func (*AssociateInsuranceRequirementRepo) InsertOrUpdateById

func (*AssociateInsuranceRequirementRepo) ListByFilter

func (*AssociateInsuranceRequirementRepo) ListValuesFromColumnAndByFilter

func (s *AssociateInsuranceRequirementRepo) ListValuesFromColumnAndByFilter(ctx context.Context, column string, filter *models.AssociateInsuranceRequirementFilter) ([]uint64, error)

func (*AssociateInsuranceRequirementRepo) UpdateById

type AssociateRepo

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

func NewAssociateRepo

func NewAssociateRepo(db *sql.DB) *AssociateRepo

func (*AssociateRepo) CheckIfExistsByEmail

func (r *AssociateRepo) CheckIfExistsByEmail(ctx context.Context, tenantID uint64, email string) (bool, error)

func (*AssociateRepo) CheckIfExistsById

func (r *AssociateRepo) CheckIfExistsById(ctx context.Context, tenantID uint64, id uint64) (bool, error)

func (*AssociateRepo) DeleteById

func (s *AssociateRepo) DeleteById(ctx context.Context, tenantID uint64, id uint64) error

func (*AssociateRepo) GetById

func (r *AssociateRepo) GetById(ctx context.Context, tenantID uint64, id uint64) (*models.Associate, error)

func (*AssociateRepo) GetByUUID

func (r *AssociateRepo) GetByUUID(ctx context.Context, tenantID uint64, uid string) (*models.Associate, error)

func (*AssociateRepo) GetIdByOldId

func (r *AssociateRepo) GetIdByOldId(ctx context.Context, tid uint64, oid uint64) (uint64, error)

func (*AssociateRepo) Insert

func (r *AssociateRepo) Insert(ctx context.Context, m *models.Associate) error

func (*AssociateRepo) InsertOrUpdateById

func (r *AssociateRepo) InsertOrUpdateById(ctx context.Context, m *models.Associate) error

func (*AssociateRepo) ListByFilter

func (s *AssociateRepo) ListByFilter(ctx context.Context, f *models.AssociateFilter) ([]*models.Associate, error)

func (*AssociateRepo) UpdateById

func (r *AssociateRepo) UpdateById(ctx context.Context, m *models.Associate) error

type AssociateSkillSetRepo

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

func NewAssociateSkillSetRepo

func NewAssociateSkillSetRepo(db *sql.DB) *AssociateSkillSetRepo

func (*AssociateSkillSetRepo) AssociatePKsBySkillSetPKs

func (s *AssociateSkillSetRepo) AssociatePKsBySkillSetPKs(
	ctx context.Context,
	tenantId uint64,
	skillSetPKs []uint64,
) ([]uint64, error)

func (*AssociateSkillSetRepo) CheckIfExistsById

func (r *AssociateSkillSetRepo) CheckIfExistsById(ctx context.Context, tenantID uint64, id uint64) (bool, error)

func (*AssociateSkillSetRepo) CountByFilter

func (*AssociateSkillSetRepo) DeleteByAssociateId

func (r *AssociateSkillSetRepo) DeleteByAssociateId(ctx context.Context, tenantID uint64, associateId uint64) error

func (*AssociateSkillSetRepo) GetById

func (r *AssociateSkillSetRepo) GetById(ctx context.Context, tenantID uint64, id uint64) (*models.AssociateSkillSet, error)

func (*AssociateSkillSetRepo) GetByOld

func (r *AssociateSkillSetRepo) GetByOld(ctx context.Context, tenantID uint64, oldId uint64) (*models.AssociateSkillSet, error)

func (*AssociateSkillSetRepo) Insert

func (*AssociateSkillSetRepo) InsertOrUpdateById

func (r *AssociateSkillSetRepo) InsertOrUpdateById(ctx context.Context, m *models.AssociateSkillSet) error

func (*AssociateSkillSetRepo) ListByFilter

func (*AssociateSkillSetRepo) ListValuesFromColumnAndByFilter

func (s *AssociateSkillSetRepo) ListValuesFromColumnAndByFilter(ctx context.Context, column string, filter *models.AssociateSkillSetFilter) ([]uint64, error)

func (*AssociateSkillSetRepo) UpdateById

type AssociateTagRepo

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

func NewAssociateTagRepo

func NewAssociateTagRepo(db *sql.DB) *AssociateTagRepo

func (*AssociateTagRepo) AssociatePKsByTagPKs

func (s *AssociateTagRepo) AssociatePKsByTagPKs(
	ctx context.Context,
	tenantId uint64,
	tagPKs []uint64,
) ([]uint64, error)

func (*AssociateTagRepo) CheckIfExistsById

func (r *AssociateTagRepo) CheckIfExistsById(ctx context.Context, tenantID uint64, id uint64) (bool, error)

func (*AssociateTagRepo) CountByFilter

func (s *AssociateTagRepo) CountByFilter(ctx context.Context, f *models.AssociateTagFilter) (uint64, error)

func (*AssociateTagRepo) DeleteByAssociateId

func (r *AssociateTagRepo) DeleteByAssociateId(ctx context.Context, tenantID uint64, associateId uint64) error

func (*AssociateTagRepo) GetById

func (r *AssociateTagRepo) GetById(ctx context.Context, tenantID uint64, id uint64) (*models.AssociateTag, error)

func (*AssociateTagRepo) GetByOld

func (r *AssociateTagRepo) GetByOld(ctx context.Context, tenantID uint64, oldId uint64) (*models.AssociateTag, error)

func (*AssociateTagRepo) Insert

func (*AssociateTagRepo) InsertOrUpdateById

func (r *AssociateTagRepo) InsertOrUpdateById(ctx context.Context, m *models.AssociateTag) error

func (*AssociateTagRepo) ListByFilter

func (s *AssociateTagRepo) ListByFilter(ctx context.Context, filter *models.AssociateTagFilter) ([]*models.AssociateTag, error)

func (*AssociateTagRepo) UpdateById

func (r *AssociateTagRepo) UpdateById(ctx context.Context, m *models.AssociateTag) error

type AssociateVehicleTypeRepo

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

func NewAssociateVehicleTypeRepo

func NewAssociateVehicleTypeRepo(db *sql.DB) *AssociateVehicleTypeRepo

func (*AssociateVehicleTypeRepo) CheckIfExistsById

func (r *AssociateVehicleTypeRepo) CheckIfExistsById(ctx context.Context, tenantID uint64, id uint64) (bool, error)

func (*AssociateVehicleTypeRepo) CountByFilter

func (*AssociateVehicleTypeRepo) DeleteByAssociateId

func (r *AssociateVehicleTypeRepo) DeleteByAssociateId(ctx context.Context, tenantID uint64, associateId uint64) error

func (*AssociateVehicleTypeRepo) GetById

func (*AssociateVehicleTypeRepo) GetByOld

func (r *AssociateVehicleTypeRepo) GetByOld(ctx context.Context, tenantID uint64, oldId uint64) (*models.AssociateVehicleType, error)

func (*AssociateVehicleTypeRepo) Insert

func (*AssociateVehicleTypeRepo) InsertOrUpdateById

func (*AssociateVehicleTypeRepo) ListByFilter

func (*AssociateVehicleTypeRepo) UpdateById

type BulletinBoardItemRepo

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

func NewBulletinBoardItemRepo

func NewBulletinBoardItemRepo(db *sql.DB) *BulletinBoardItemRepo

func (*BulletinBoardItemRepo) CheckIfExistsById

func (r *BulletinBoardItemRepo) CheckIfExistsById(ctx context.Context, tenantID uint64, id uint64) (bool, error)

func (*BulletinBoardItemRepo) CountByFilter

func (*BulletinBoardItemRepo) DeleteById

func (s *BulletinBoardItemRepo) DeleteById(ctx context.Context, tenantID uint64, id uint64) error

func (*BulletinBoardItemRepo) GetById

func (r *BulletinBoardItemRepo) GetById(ctx context.Context, tenantID uint64, id uint64) (*models.BulletinBoardItem, error)

func (*BulletinBoardItemRepo) GetByOld

func (r *BulletinBoardItemRepo) GetByOld(ctx context.Context, tenantID uint64, oldId uint64) (*models.BulletinBoardItem, error)

func (*BulletinBoardItemRepo) GetByUUID

func (r *BulletinBoardItemRepo) GetByUUID(ctx context.Context, tenantID uint64, uid string) (*models.BulletinBoardItem, error)

func (*BulletinBoardItemRepo) Insert

func (*BulletinBoardItemRepo) InsertOrUpdateById

func (r *BulletinBoardItemRepo) InsertOrUpdateById(ctx context.Context, m *models.BulletinBoardItem) error

func (*BulletinBoardItemRepo) ListByFilter

func (*BulletinBoardItemRepo) UpdateById

type CommentRepo

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

func NewCommentRepo

func NewCommentRepo(db *sql.DB) *CommentRepo

func (*CommentRepo) CheckIfExistsById

func (r *CommentRepo) CheckIfExistsById(ctx context.Context, tenantID uint64, id uint64) (bool, error)

func (*CommentRepo) GetById

func (r *CommentRepo) GetById(ctx context.Context, tenantID uint64, id uint64) (*models.Comment, error)

func (*CommentRepo) GetByUUID

func (r *CommentRepo) GetByUUID(ctx context.Context, tenantID uint64, uid string) (*models.Comment, error)

func (*CommentRepo) GetIdByOldId

func (r *CommentRepo) GetIdByOldId(ctx context.Context, tid uint64, oid uint64) (uint64, error)

func (*CommentRepo) Insert

func (r *CommentRepo) Insert(ctx context.Context, m *models.Comment) error

func (*CommentRepo) InsertOrUpdateById

func (r *CommentRepo) InsertOrUpdateById(ctx context.Context, m *models.Comment) error

func (*CommentRepo) UpdateById

func (r *CommentRepo) UpdateById(ctx context.Context, m *models.Comment) error

type CustomerCommentRepo

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

func NewCustomerCommentRepo

func NewCustomerCommentRepo(db *sql.DB) *CustomerCommentRepo

func (*CustomerCommentRepo) CheckIfExistsById

func (r *CustomerCommentRepo) CheckIfExistsById(ctx context.Context, tenantID uint64, id uint64) (bool, error)

func (*CustomerCommentRepo) CountByFilter

func (*CustomerCommentRepo) GetById

func (r *CustomerCommentRepo) GetById(ctx context.Context, tenantID uint64, id uint64) (*models.CustomerComment, error)

func (*CustomerCommentRepo) GetByUUID

func (r *CustomerCommentRepo) GetByUUID(ctx context.Context, tenantID uint64, uid string) (*models.CustomerComment, error)

func (*CustomerCommentRepo) Insert

func (*CustomerCommentRepo) InsertOrUpdateById

func (r *CustomerCommentRepo) InsertOrUpdateById(ctx context.Context, m *models.CustomerComment) error

func (*CustomerCommentRepo) ListByFilter

func (*CustomerCommentRepo) UpdateById

type CustomerRepo

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

func NewCustomerRepo

func NewCustomerRepo(db *sql.DB) *CustomerRepo

func (*CustomerRepo) CheckIfExistsByEmail

func (r *CustomerRepo) CheckIfExistsByEmail(ctx context.Context, tenantID uint64, email string) (bool, error)

func (*CustomerRepo) CheckIfExistsById

func (r *CustomerRepo) CheckIfExistsById(ctx context.Context, tenantID uint64, id uint64) (bool, error)

func (*CustomerRepo) DeleteById

func (s *CustomerRepo) DeleteById(ctx context.Context, tenantID uint64, id uint64) error

func (*CustomerRepo) GetByEmail

func (r *CustomerRepo) GetByEmail(ctx context.Context, tenantID uint64, email string) (*models.Customer, error)

func (*CustomerRepo) GetById

func (r *CustomerRepo) GetById(ctx context.Context, tenantID uint64, id uint64) (*models.Customer, error)

func (*CustomerRepo) GetByUUID

func (r *CustomerRepo) GetByUUID(ctx context.Context, tenantID uint64, uid string) (*models.Customer, error)

func (*CustomerRepo) GetIdByOldId

func (r *CustomerRepo) GetIdByOldId(ctx context.Context, tid uint64, oid uint64) (uint64, error)

func (*CustomerRepo) Insert

func (r *CustomerRepo) Insert(ctx context.Context, m *models.Customer) error

func (*CustomerRepo) InsertOrUpdateById

func (r *CustomerRepo) InsertOrUpdateById(ctx context.Context, m *models.Customer) error

func (*CustomerRepo) ListByFilter

func (s *CustomerRepo) ListByFilter(ctx context.Context, f *models.CustomerFilter) ([]*models.Customer, error)

func (*CustomerRepo) UpdateById

func (r *CustomerRepo) UpdateById(ctx context.Context, m *models.Customer) error

type CustomerTagRepo

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

func NewCustomerTagRepo

func NewCustomerTagRepo(db *sql.DB) *CustomerTagRepo

func (*CustomerTagRepo) CheckIfExistsById

func (r *CustomerTagRepo) CheckIfExistsById(ctx context.Context, tenantID uint64, id uint64) (bool, error)

func (*CustomerTagRepo) CountByFilter

func (s *CustomerTagRepo) CountByFilter(ctx context.Context, f *models.CustomerTagFilter) (uint64, error)

func (*CustomerTagRepo) DeleteByCustomerId

func (r *CustomerTagRepo) DeleteByCustomerId(ctx context.Context, tenantID uint64, customerId uint64) error

func (*CustomerTagRepo) GetById

func (r *CustomerTagRepo) GetById(ctx context.Context, tenantID uint64, id uint64) (*models.CustomerTag, error)

func (*CustomerTagRepo) Insert

func (*CustomerTagRepo) InsertOrUpdateById

func (r *CustomerTagRepo) InsertOrUpdateById(ctx context.Context, m *models.CustomerTag) error

func (*CustomerTagRepo) ListByFilter

func (s *CustomerTagRepo) ListByFilter(ctx context.Context, filter *models.CustomerTagFilter) ([]*models.CustomerTag, error)

func (*CustomerTagRepo) UpdateById

func (r *CustomerTagRepo) UpdateById(ctx context.Context, m *models.CustomerTag) error

type HowHearAboutUsItemRepo

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

func NewHowHearAboutUsItemRepo

func NewHowHearAboutUsItemRepo(db *sql.DB) *HowHearAboutUsItemRepo

func (*HowHearAboutUsItemRepo) CheckIfExistsById

func (r *HowHearAboutUsItemRepo) CheckIfExistsById(ctx context.Context, tenantID uint64, id uint64) (bool, error)

func (*HowHearAboutUsItemRepo) DeleteById

func (s *HowHearAboutUsItemRepo) DeleteById(ctx context.Context, tenantID uint64, id uint64) error

func (*HowHearAboutUsItemRepo) GetById

func (*HowHearAboutUsItemRepo) GetByOld

func (r *HowHearAboutUsItemRepo) GetByOld(ctx context.Context, tenantID uint64, oldId uint64) (*models.HowHearAboutUsItem, error)

func (*HowHearAboutUsItemRepo) GetByUUID

func (r *HowHearAboutUsItemRepo) GetByUUID(ctx context.Context, tenantID uint64, uid string) (*models.HowHearAboutUsItem, error)

func (*HowHearAboutUsItemRepo) Insert

func (*HowHearAboutUsItemRepo) InsertOrUpdateById

func (r *HowHearAboutUsItemRepo) InsertOrUpdateById(ctx context.Context, m *models.HowHearAboutUsItem) error

func (*HowHearAboutUsItemRepo) UpdateById

type InsuranceRequirementRepo

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

func NewInsuranceRequirementRepo

func NewInsuranceRequirementRepo(db *sql.DB) *InsuranceRequirementRepo

func (*InsuranceRequirementRepo) CheckIfExistsById

func (r *InsuranceRequirementRepo) CheckIfExistsById(ctx context.Context, tenantID uint64, id uint64) (bool, error)

func (*InsuranceRequirementRepo) CountByFilter

func (*InsuranceRequirementRepo) DeleteById

func (s *InsuranceRequirementRepo) DeleteById(ctx context.Context, tenantID uint64, id uint64) error

func (*InsuranceRequirementRepo) GetById

func (*InsuranceRequirementRepo) GetByUUID

func (*InsuranceRequirementRepo) GetIdByTenantIdAndOldId

func (r *InsuranceRequirementRepo) GetIdByTenantIdAndOldId(ctx context.Context, tid uint64, oid uint64) (uint64, error)

func (*InsuranceRequirementRepo) Insert

func (*InsuranceRequirementRepo) InsertOrUpdateById

func (*InsuranceRequirementRepo) ListByFilter

func (*InsuranceRequirementRepo) UpdateById

type LiteActivitySheetItemRepo

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

func NewLiteActivitySheetItemRepo

func NewLiteActivitySheetItemRepo(db *sql.DB) *LiteActivitySheetItemRepo

func (*LiteActivitySheetItemRepo) CountByFilter

func (*LiteActivitySheetItemRepo) ListByFilter

type LiteAssociateAwayLogRepo

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

func NewLiteAssociateAwayLogRepo

func NewLiteAssociateAwayLogRepo(db *sql.DB) *LiteAssociateAwayLogRepo

func (*LiteAssociateAwayLogRepo) CountByFilter

func (*LiteAssociateAwayLogRepo) ListByFilter

type LiteAssociateRepo

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

func NewLiteAssociateRepo

func NewLiteAssociateRepo(db *sql.DB) *LiteAssociateRepo

func (*LiteAssociateRepo) CountByFilter

func (*LiteAssociateRepo) ListByFilter

func (*LiteAssociateRepo) ListPKsByFilter

func (s *LiteAssociateRepo) ListPKsByFilter(ctx context.Context, f *models.LiteAssociateFilter) ([]uint64, error)

type LiteBulletinBoardItemRepo

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

func NewLiteBulletinBoardItemRepo

func NewLiteBulletinBoardItemRepo(db *sql.DB) *LiteBulletinBoardItemRepo

func (*LiteBulletinBoardItemRepo) CountByFilter

func (*LiteBulletinBoardItemRepo) ListByFilter

type LiteCustomerRepo

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

func NewLiteCustomerRepo

func NewLiteCustomerRepo(db *sql.DB) *LiteCustomerRepo

func (*LiteCustomerRepo) CountByFilter

func (s *LiteCustomerRepo) CountByFilter(ctx context.Context, f *models.LiteCustomerFilter) (uint64, error)

func (*LiteCustomerRepo) ListByFilter

type LiteDeactivatedCustomerRepo

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

func NewLiteDeactivatedCustomerRepo

func NewLiteDeactivatedCustomerRepo(db *sql.DB) *LiteDeactivatedCustomerRepo

func (*LiteDeactivatedCustomerRepo) CountByFilter

func (*LiteDeactivatedCustomerRepo) ListByFilter

type LiteFinancialRepo

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

func NewLiteFinancialRepo

func NewLiteFinancialRepo(db *sql.DB) *LiteFinancialRepo

func (*LiteFinancialRepo) CountByFilter

func (*LiteFinancialRepo) ListByFilter

type LiteHowHearAboutUsItemRepo

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

func NewLiteHowHearAboutUsItemRepo

func NewLiteHowHearAboutUsItemRepo(db *sql.DB) *LiteHowHearAboutUsItemRepo

func (*LiteHowHearAboutUsItemRepo) CountByFilter

func (*LiteHowHearAboutUsItemRepo) ListByFilter

type LiteInsuranceRequirementRepo

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

func NewLiteInsuranceRequirementRepo

func NewLiteInsuranceRequirementRepo(db *sql.DB) *LiteInsuranceRequirementRepo

func (*LiteInsuranceRequirementRepo) CountByFilter

func (*LiteInsuranceRequirementRepo) ListByFilter

type LiteOngoingWorkOrderRepo

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

func NewLiteOngoingWorkOrderRepo

func NewLiteOngoingWorkOrderRepo(db *sql.DB) *LiteOngoingWorkOrderRepo

func (*LiteOngoingWorkOrderRepo) CountByFilter

func (*LiteOngoingWorkOrderRepo) ListByFilter

type LitePartnerRepo

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

func NewLitePartnerRepo

func NewLitePartnerRepo(db *sql.DB) *LitePartnerRepo

func (*LitePartnerRepo) CountByFilter

func (s *LitePartnerRepo) CountByFilter(ctx context.Context, f *models.LitePartnerFilter) (uint64, error)

func (*LitePartnerRepo) ListByFilter

type LitePrivateFileRepo

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

func NewLitePrivateFileRepo

func NewLitePrivateFileRepo(db *sql.DB) *LitePrivateFileRepo

func (*LitePrivateFileRepo) CountByFilter

func (*LitePrivateFileRepo) ListByFilter

type LiteSkillSetRepo

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

func NewLiteSkillSetRepo

func NewLiteSkillSetRepo(db *sql.DB) *LiteSkillSetRepo

func (*LiteSkillSetRepo) CountByFilter

func (s *LiteSkillSetRepo) CountByFilter(ctx context.Context, f *models.LiteSkillSetFilter) (uint64, error)

func (*LiteSkillSetRepo) ListByFilter

func (s *LiteSkillSetRepo) ListByFilter(ctx context.Context, filter *models.LiteSkillSetFilter) ([]*models.LiteSkillSet, error)

type LiteStaffRepo

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

func NewLiteStaffRepo

func NewLiteStaffRepo(db *sql.DB) *LiteStaffRepo

func (*LiteStaffRepo) CountByFilter

func (s *LiteStaffRepo) CountByFilter(ctx context.Context, f *models.LiteStaffFilter) (uint64, error)

func (*LiteStaffRepo) ListByFilter

func (s *LiteStaffRepo) ListByFilter(ctx context.Context, f *models.LiteStaffFilter) ([]*models.LiteStaff, error)

type LiteTagRepo

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

func NewLiteTagRepo

func NewLiteTagRepo(db *sql.DB) *LiteTagRepo

func (*LiteTagRepo) CountByFilter

func (s *LiteTagRepo) CountByFilter(ctx context.Context, f *models.LiteTagFilter) (uint64, error)

func (*LiteTagRepo) ListByFilter

func (s *LiteTagRepo) ListByFilter(ctx context.Context, f *models.LiteTagFilter) ([]*models.LiteTag, error)

type LiteTaskItemRepo

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

func NewLiteTaskItemRepo

func NewLiteTaskItemRepo(db *sql.DB) *LiteTaskItemRepo

func (*LiteTaskItemRepo) CountByFilter

func (s *LiteTaskItemRepo) CountByFilter(ctx context.Context, f *models.LiteTaskItemFilter) (uint64, error)

func (*LiteTaskItemRepo) ListByFilter

type LiteTenantRepo

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

func NewLiteTenantRepo

func NewLiteTenantRepo(db *sql.DB) *LiteTenantRepo

func (*LiteTenantRepo) CountByFilter

func (s *LiteTenantRepo) CountByFilter(ctx context.Context, filter *models.LiteTenantFilter) (uint64, error)

func (*LiteTenantRepo) ListAllIds

func (s *LiteTenantRepo) ListAllIds(ctx context.Context) ([]uint64, error)

func (*LiteTenantRepo) ListByFilter

func (s *LiteTenantRepo) ListByFilter(ctx context.Context, filter *models.LiteTenantFilter) ([]*models.LiteTenant, error)

type LiteVehicleTypeRepo

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

func NewLiteVehicleTypeRepo

func NewLiteVehicleTypeRepo(db *sql.DB) *LiteVehicleTypeRepo

func (*LiteVehicleTypeRepo) CountByFilter

func (*LiteVehicleTypeRepo) ListByFilter

type LiteWorkOrderDepositRepo

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

func NewLiteWorkOrderDepositRepo

func NewLiteWorkOrderDepositRepo(db *sql.DB) *LiteWorkOrderDepositRepo

func (*LiteWorkOrderDepositRepo) CountByFilter

func (*LiteWorkOrderDepositRepo) ListByFilter

type LiteWorkOrderRepo

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

func NewLiteWorkOrderRepo

func NewLiteWorkOrderRepo(db *sql.DB) *LiteWorkOrderRepo

func (*LiteWorkOrderRepo) CountByFilter

func (*LiteWorkOrderRepo) ListByFilter

type LiteWorkOrderServiceFeeRepo

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

func NewLiteWorkOrderServiceFeeRepo

func NewLiteWorkOrderServiceFeeRepo(db *sql.DB) *LiteWorkOrderServiceFeeRepo

func (*LiteWorkOrderServiceFeeRepo) CountByFilter

func (*LiteWorkOrderServiceFeeRepo) ListByFilter

type OngoingWorkOrderCommentRepo

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

func NewOngoingWorkOrderCommentRepo

func NewOngoingWorkOrderCommentRepo(db *sql.DB) *OngoingWorkOrderCommentRepo

func (*OngoingWorkOrderCommentRepo) CheckIfExistsById

func (r *OngoingWorkOrderCommentRepo) CheckIfExistsById(ctx context.Context, tenantID uint64, id uint64) (bool, error)

func (*OngoingWorkOrderCommentRepo) CountByFilter

func (*OngoingWorkOrderCommentRepo) GetById

func (*OngoingWorkOrderCommentRepo) GetByOld

func (*OngoingWorkOrderCommentRepo) GetByUUID

func (*OngoingWorkOrderCommentRepo) Insert

func (*OngoingWorkOrderCommentRepo) InsertOrUpdateById

func (*OngoingWorkOrderCommentRepo) ListByFilter

func (*OngoingWorkOrderCommentRepo) UpdateById

type OngoingWorkOrderRepo

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

func NewOngoingWorkOrderRepo

func NewOngoingWorkOrderRepo(db *sql.DB) *OngoingWorkOrderRepo

func (*OngoingWorkOrderRepo) CheckIfExistsById

func (r *OngoingWorkOrderRepo) CheckIfExistsById(ctx context.Context, tenantID uint64, id uint64) (bool, error)

func (*OngoingWorkOrderRepo) GetById

func (r *OngoingWorkOrderRepo) GetById(ctx context.Context, tenantID uint64, id uint64) (*models.OngoingWorkOrder, error)

func (*OngoingWorkOrderRepo) GetByUUID

func (r *OngoingWorkOrderRepo) GetByUUID(ctx context.Context, tenantID uint64, uid string) (*models.OngoingWorkOrder, error)

func (*OngoingWorkOrderRepo) GetIdByOldId

func (r *OngoingWorkOrderRepo) GetIdByOldId(ctx context.Context, tenantID uint64, oid uint64) (uint64, error)

func (*OngoingWorkOrderRepo) Insert

func (*OngoingWorkOrderRepo) InsertOrUpdateById

func (r *OngoingWorkOrderRepo) InsertOrUpdateById(ctx context.Context, m *models.OngoingWorkOrder) error

func (*OngoingWorkOrderRepo) ListByFilter

func (*OngoingWorkOrderRepo) UpdateById

type PartnerCommentRepo

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

func NewPartnerCommentRepo

func NewPartnerCommentRepo(db *sql.DB) *PartnerCommentRepo

func (*PartnerCommentRepo) CheckIfExistsById

func (r *PartnerCommentRepo) CheckIfExistsById(ctx context.Context, tenantID uint64, id uint64) (bool, error)

func (*PartnerCommentRepo) CountByFilter

func (*PartnerCommentRepo) GetById

func (r *PartnerCommentRepo) GetById(ctx context.Context, tenantID uint64, id uint64) (*models.PartnerComment, error)

func (*PartnerCommentRepo) GetByOld

func (r *PartnerCommentRepo) GetByOld(ctx context.Context, tenantID uint64, oldId uint64) (*models.PartnerComment, error)

func (*PartnerCommentRepo) GetByUUID

func (r *PartnerCommentRepo) GetByUUID(ctx context.Context, tenantID uint64, uid string) (*models.PartnerComment, error)

func (*PartnerCommentRepo) Insert

func (*PartnerCommentRepo) InsertOrUpdateById

func (r *PartnerCommentRepo) InsertOrUpdateById(ctx context.Context, m *models.PartnerComment) error

func (*PartnerCommentRepo) ListByFilter

func (*PartnerCommentRepo) UpdateById

type PartnerRepo

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

func NewPartnerRepo

func NewPartnerRepo(db *sql.DB) *PartnerRepo

func (*PartnerRepo) CheckIfExistsById

func (r *PartnerRepo) CheckIfExistsById(ctx context.Context, tenantID uint64, id uint64) (bool, error)

func (*PartnerRepo) DeleteById

func (s *PartnerRepo) DeleteById(ctx context.Context, tenantID uint64, id uint64) error

func (*PartnerRepo) GetById

func (r *PartnerRepo) GetById(ctx context.Context, tenantID uint64, id uint64) (*models.Partner, error)

func (*PartnerRepo) GetByUUID

func (r *PartnerRepo) GetByUUID(ctx context.Context, tenantID uint64, uid string) (*models.Partner, error)

func (*PartnerRepo) GetIdByOldId

func (r *PartnerRepo) GetIdByOldId(ctx context.Context, tenantID uint64, oid uint64) (uint64, error)

func (*PartnerRepo) Insert

func (r *PartnerRepo) Insert(ctx context.Context, m *models.Partner) error

func (*PartnerRepo) InsertOrUpdateById

func (r *PartnerRepo) InsertOrUpdateById(ctx context.Context, m *models.Partner) error

func (*PartnerRepo) ListByFilter

func (s *PartnerRepo) ListByFilter(ctx context.Context, filter *models.PartnerFilter) ([]*models.Partner, error)

func (*PartnerRepo) UpdateById

func (r *PartnerRepo) UpdateById(ctx context.Context, m *models.Partner) error

type PartnerTagRepo

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

func NewPartnerTagRepo

func NewPartnerTagRepo(db *sql.DB) *PartnerTagRepo

func (*PartnerTagRepo) CheckIfExistsById

func (r *PartnerTagRepo) CheckIfExistsById(ctx context.Context, tenantID uint64, id uint64) (bool, error)

func (*PartnerTagRepo) CountByFilter

func (s *PartnerTagRepo) CountByFilter(ctx context.Context, f *models.PartnerTagFilter) (uint64, error)

func (*PartnerTagRepo) DeleteByPartnerId

func (r *PartnerTagRepo) DeleteByPartnerId(ctx context.Context, tenantID uint64, partnerId uint64) error

func (*PartnerTagRepo) GetById

func (r *PartnerTagRepo) GetById(ctx context.Context, tenantID uint64, id uint64) (*models.PartnerTag, error)

func (*PartnerTagRepo) Insert

func (r *PartnerTagRepo) Insert(ctx context.Context, m *models.PartnerTag) error

func (*PartnerTagRepo) InsertOrUpdateById

func (r *PartnerTagRepo) InsertOrUpdateById(ctx context.Context, m *models.PartnerTag) error

func (*PartnerTagRepo) ListByFilter

func (s *PartnerTagRepo) ListByFilter(ctx context.Context, filter *models.PartnerTagFilter) ([]*models.PartnerTag, error)

func (*PartnerTagRepo) UpdateById

func (r *PartnerTagRepo) UpdateById(ctx context.Context, m *models.PartnerTag) error

type PrivateFileRepo

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

func NewPrivateFileRepo

func NewPrivateFileRepo(db *sql.DB) *PrivateFileRepo

func (*PrivateFileRepo) CheckIfExistsById

func (r *PrivateFileRepo) CheckIfExistsById(ctx context.Context, tenantID uint64, id uint64) (bool, error)

func (*PrivateFileRepo) CheckIfExistsByS3Key

func (r *PrivateFileRepo) CheckIfExistsByS3Key(ctx context.Context, tenantID uint64, s3Key string) (bool, error)

func (*PrivateFileRepo) GetById

func (r *PrivateFileRepo) GetById(ctx context.Context, tenantID uint64, id uint64) (*models.PrivateFile, error)

func (*PrivateFileRepo) GetByUUID

func (r *PrivateFileRepo) GetByUUID(ctx context.Context, tenantID uint64, uid string) (*models.PrivateFile, error)

func (*PrivateFileRepo) GetIdByOldId

func (r *PrivateFileRepo) GetIdByOldId(ctx context.Context, tenantID uint64, oldId uint64) (uint64, error)

func (*PrivateFileRepo) Insert

func (*PrivateFileRepo) InsertOrUpdateById

func (r *PrivateFileRepo) InsertOrUpdateById(ctx context.Context, m *models.PrivateFile) error

func (*PrivateFileRepo) UpdateById

func (r *PrivateFileRepo) UpdateById(ctx context.Context, m *models.PrivateFile) error

type SessionRepo

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

func NewSessionRepo

func NewSessionRepo(db *sql.DB) *SessionRepo

func (*SessionRepo) DeleteByUUID

func (r *SessionRepo) DeleteByUUID(ctx context.Context, uid string) error

func (*SessionRepo) GetByUUID

func (r *SessionRepo) GetByUUID(ctx context.Context, uid string) (*models.Session, error)

func (*SessionRepo) Insert

func (r *SessionRepo) Insert(ctx context.Context, m *models.Session) error

type SkillSetInsuranceRequirementRepo

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

func NewSkillSetInsuranceRequirementRepo

func NewSkillSetInsuranceRequirementRepo(db *sql.DB) *SkillSetInsuranceRequirementRepo

func (*SkillSetInsuranceRequirementRepo) CheckIfExistsById

func (r *SkillSetInsuranceRequirementRepo) CheckIfExistsById(ctx context.Context, tenantID uint64, id uint64) (bool, error)

func (*SkillSetInsuranceRequirementRepo) CountByFilter

func (*SkillSetInsuranceRequirementRepo) DeleteBySkillSetId

func (r *SkillSetInsuranceRequirementRepo) DeleteBySkillSetId(ctx context.Context, tenantID uint64, associateId uint64) error

func (*SkillSetInsuranceRequirementRepo) GetById

func (*SkillSetInsuranceRequirementRepo) GetByOld

func (*SkillSetInsuranceRequirementRepo) GetByUUID

func (*SkillSetInsuranceRequirementRepo) GetIdByOldId

func (r *SkillSetInsuranceRequirementRepo) GetIdByOldId(ctx context.Context, tenantID uint64, oid uint64) (uint64, error)

func (*SkillSetInsuranceRequirementRepo) Insert

func (*SkillSetInsuranceRequirementRepo) InsertOrUpdateById

func (*SkillSetInsuranceRequirementRepo) ListByFilter

func (*SkillSetInsuranceRequirementRepo) UpdateById

type SkillSetRepo

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

func NewSkillSetRepo

func NewSkillSetRepo(db *sql.DB) *SkillSetRepo

func (*SkillSetRepo) CheckIfExistsById

func (r *SkillSetRepo) CheckIfExistsById(ctx context.Context, tenantID uint64, id uint64) (bool, error)

func (*SkillSetRepo) CountByFilter

func (s *SkillSetRepo) CountByFilter(ctx context.Context, f *models.SkillSetFilter) (uint64, error)

func (*SkillSetRepo) DeleteById

func (s *SkillSetRepo) DeleteById(ctx context.Context, tenantID uint64, id uint64) error

func (*SkillSetRepo) GetById

func (r *SkillSetRepo) GetById(ctx context.Context, tenantID uint64, id uint64) (*models.SkillSet, error)

func (*SkillSetRepo) GetByUUID

func (r *SkillSetRepo) GetByUUID(ctx context.Context, tenantID uint64, uid string) (*models.SkillSet, error)

func (*SkillSetRepo) GetIdByTenantIdAndOldId

func (r *SkillSetRepo) GetIdByTenantIdAndOldId(ctx context.Context, tid uint64, oid uint64) (uint64, error)

func (*SkillSetRepo) Insert

func (r *SkillSetRepo) Insert(ctx context.Context, m *models.SkillSet) error

func (*SkillSetRepo) InsertOrUpdateById

func (r *SkillSetRepo) InsertOrUpdateById(ctx context.Context, m *models.SkillSet) error

func (*SkillSetRepo) ListByFilter

func (s *SkillSetRepo) ListByFilter(ctx context.Context, f *models.SkillSetFilter) ([]*models.SkillSet, error)

func (*SkillSetRepo) UpdateById

func (r *SkillSetRepo) UpdateById(ctx context.Context, m *models.SkillSet) error

type StaffCommentRepo

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

func NewStaffCommentRepo

func NewStaffCommentRepo(db *sql.DB) *StaffCommentRepo

func (*StaffCommentRepo) CheckIfExistsById

func (r *StaffCommentRepo) CheckIfExistsById(ctx context.Context, tenantID uint64, id uint64) (bool, error)

func (*StaffCommentRepo) CountByFilter

func (s *StaffCommentRepo) CountByFilter(ctx context.Context, f *models.StaffCommentFilter) (uint64, error)

func (*StaffCommentRepo) GetById

func (r *StaffCommentRepo) GetById(ctx context.Context, tenantID uint64, id uint64) (*models.StaffComment, error)

func (*StaffCommentRepo) GetByUUID

func (r *StaffCommentRepo) GetByUUID(ctx context.Context, tenantID uint64, uid string) (*models.StaffComment, error)

func (*StaffCommentRepo) Insert

func (*StaffCommentRepo) InsertOrUpdateById

func (r *StaffCommentRepo) InsertOrUpdateById(ctx context.Context, m *models.StaffComment) error

func (*StaffCommentRepo) ListByFilter

func (s *StaffCommentRepo) ListByFilter(ctx context.Context, filter *models.StaffCommentFilter) ([]*models.StaffComment, error)

func (*StaffCommentRepo) UpdateById

func (r *StaffCommentRepo) UpdateById(ctx context.Context, m *models.StaffComment) error

type StaffRepo

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

func NewStaffRepo

func NewStaffRepo(db *sql.DB) *StaffRepo

func (*StaffRepo) CheckIfExistsByEmail

func (r *StaffRepo) CheckIfExistsByEmail(ctx context.Context, tenantID uint64, email string) (bool, error)

func (*StaffRepo) CheckIfExistsById

func (r *StaffRepo) CheckIfExistsById(ctx context.Context, tenantID uint64, id uint64) (bool, error)

func (*StaffRepo) DeleteById

func (s *StaffRepo) DeleteById(ctx context.Context, tenantID uint64, id uint64) error

func (*StaffRepo) GetById

func (r *StaffRepo) GetById(ctx context.Context, tenantID uint64, id uint64) (*models.Staff, error)

func (*StaffRepo) GetByUUID

func (r *StaffRepo) GetByUUID(ctx context.Context, tenantID uint64, uid string) (*models.Staff, error)

func (*StaffRepo) GetByUniqueKeyAndStringValue

func (r *StaffRepo) GetByUniqueKeyAndStringValue(ctx context.Context, key string, value string) (*models.Staff, error)

func (*StaffRepo) GetByUniqueKeyAndValue

func (r *StaffRepo) GetByUniqueKeyAndValue(ctx context.Context, key string, value uint64) (*models.Staff, error)

func (*StaffRepo) GetIdByOldId

func (r *StaffRepo) GetIdByOldId(ctx context.Context, tid uint64, oid uint64) (uint64, error)

func (*StaffRepo) Insert

func (r *StaffRepo) Insert(ctx context.Context, m *models.Staff) error

func (*StaffRepo) InsertOrUpdateById

func (r *StaffRepo) InsertOrUpdateById(ctx context.Context, m *models.Staff) error

func (*StaffRepo) ListByFilter

func (s *StaffRepo) ListByFilter(ctx context.Context, f *models.StaffFilter) ([]*models.Staff, error)

func (*StaffRepo) UpdateById

func (r *StaffRepo) UpdateById(ctx context.Context, m *models.Staff) error

type StaffTagRepo

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

func NewStaffTagRepo

func NewStaffTagRepo(db *sql.DB) *StaffTagRepo

func (*StaffTagRepo) CheckIfExistsById

func (r *StaffTagRepo) CheckIfExistsById(ctx context.Context, tenantID uint64, id uint64) (bool, error)

func (*StaffTagRepo) CountByFilter

func (s *StaffTagRepo) CountByFilter(ctx context.Context, f *models.StaffTagFilter) (uint64, error)

func (*StaffTagRepo) DeleteByStaffId

func (r *StaffTagRepo) DeleteByStaffId(ctx context.Context, tenantID uint64, staffId uint64) error

func (*StaffTagRepo) GetById

func (r *StaffTagRepo) GetById(ctx context.Context, tenantID uint64, id uint64) (*models.StaffTag, error)

func (*StaffTagRepo) Insert

func (r *StaffTagRepo) Insert(ctx context.Context, m *models.StaffTag) error

func (*StaffTagRepo) InsertOrUpdateById

func (r *StaffTagRepo) InsertOrUpdateById(ctx context.Context, m *models.StaffTag) error

func (*StaffTagRepo) ListByFilter

func (s *StaffTagRepo) ListByFilter(ctx context.Context, filter *models.StaffTagFilter) ([]*models.StaffTag, error)

func (*StaffTagRepo) UpdateById

func (r *StaffTagRepo) UpdateById(ctx context.Context, m *models.StaffTag) error

type TagRepo

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

func NewTagRepo

func NewTagRepo(db *sql.DB) *TagRepo

func (*TagRepo) CheckIfExistsById

func (r *TagRepo) CheckIfExistsById(ctx context.Context, tenantID uint64, id uint64) (bool, error)

func (*TagRepo) DeleteById

func (s *TagRepo) DeleteById(ctx context.Context, tenantID uint64, id uint64) error

func (*TagRepo) GetById

func (r *TagRepo) GetById(ctx context.Context, tenantID uint64, id uint64) (*models.Tag, error)

func (*TagRepo) GetByUUID

func (r *TagRepo) GetByUUID(ctx context.Context, tenantID uint64, uid string) (*models.Tag, error)

func (*TagRepo) GetIdByOldId

func (r *TagRepo) GetIdByOldId(ctx context.Context, tenantID uint64, oldId uint64) (uint64, error)

func (*TagRepo) Insert

func (r *TagRepo) Insert(ctx context.Context, m *models.Tag) error

func (*TagRepo) InsertOrUpdateById

func (r *TagRepo) InsertOrUpdateById(ctx context.Context, m *models.Tag) error

func (*TagRepo) UpdateById

func (r *TagRepo) UpdateById(ctx context.Context, m *models.Tag) error

type TaskItemRepo

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

func NewTaskItemRepo

func NewTaskItemRepo(db *sql.DB) *TaskItemRepo

func (*TaskItemRepo) CheckIfExistsById

func (r *TaskItemRepo) CheckIfExistsById(ctx context.Context, tenantID uint64, id uint64) (bool, error)

func (*TaskItemRepo) CountByFilter

func (s *TaskItemRepo) CountByFilter(ctx context.Context, f *models.TaskItemFilter) (uint64, error)

func (*TaskItemRepo) GetById

func (r *TaskItemRepo) GetById(ctx context.Context, tenantID uint64, id uint64) (*models.TaskItem, error)

func (*TaskItemRepo) GetByUUID

func (r *TaskItemRepo) GetByUUID(ctx context.Context, tenantID uint64, uid string) (*models.TaskItem, error)

func (*TaskItemRepo) GetIdByOldId

func (r *TaskItemRepo) GetIdByOldId(ctx context.Context, tenantID uint64, oldId uint64) (uint64, error)

func (*TaskItemRepo) Insert

func (r *TaskItemRepo) Insert(ctx context.Context, m *models.TaskItem) error

func (*TaskItemRepo) InsertOrUpdateById

func (r *TaskItemRepo) InsertOrUpdateById(ctx context.Context, m *models.TaskItem) error

func (*TaskItemRepo) ListByFilter

func (s *TaskItemRepo) ListByFilter(ctx context.Context, filter *models.TaskItemFilter) ([]*models.TaskItem, error)

func (*TaskItemRepo) UpdateById

func (r *TaskItemRepo) UpdateById(ctx context.Context, m *models.TaskItem) error

type TenantRepo

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

func NewTenantRepo

func NewTenantRepo(db *sql.DB) *TenantRepo

func (*TenantRepo) CheckIfExistsById

func (r *TenantRepo) CheckIfExistsById(ctx context.Context, id uint64) (bool, error)

func (*TenantRepo) CheckIfExistsByName

func (r *TenantRepo) CheckIfExistsByName(ctx context.Context, name string) (bool, error)

func (*TenantRepo) CheckIfExistsBySchemaName

func (r *TenantRepo) CheckIfExistsBySchemaName(ctx context.Context, schemaName string) (bool, error)

func (*TenantRepo) GetById

func (r *TenantRepo) GetById(ctx context.Context, id uint64) (*models.Tenant, error)

func (*TenantRepo) GetByName

func (r *TenantRepo) GetByName(ctx context.Context, name string) (*models.Tenant, error)

func (*TenantRepo) GetByOldId

func (r *TenantRepo) GetByOldId(ctx context.Context, oldId uint64) (*models.Tenant, error)

func (*TenantRepo) GetBySchemaName

func (r *TenantRepo) GetBySchemaName(ctx context.Context, schemaName string) (*models.Tenant, error)

func (*TenantRepo) GetSchemaNameById

func (r *TenantRepo) GetSchemaNameById(ctx context.Context, id uint64) (string, error)

func (*TenantRepo) Insert

func (r *TenantRepo) Insert(ctx context.Context, m *models.Tenant) error

func (*TenantRepo) InsertOrUpdateById

func (r *TenantRepo) InsertOrUpdateById(ctx context.Context, m *models.Tenant) error

func (*TenantRepo) InsertOrUpdateBySchemaName

func (r *TenantRepo) InsertOrUpdateBySchemaName(ctx context.Context, m *models.Tenant) error

func (*TenantRepo) ListAllPKs

func (s *TenantRepo) ListAllPKs(ctx context.Context) ([]uint64, error)

func (*TenantRepo) UpdateById

func (r *TenantRepo) UpdateById(ctx context.Context, m *models.Tenant) error

func (*TenantRepo) UpdateBySchemaName

func (r *TenantRepo) UpdateBySchemaName(ctx context.Context, m *models.Tenant) error

type UserRepo

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

func NewUserRepo

func NewUserRepo(db *sql.DB) *UserRepo

func (*UserRepo) CheckIfExistsByEmail

func (r *UserRepo) CheckIfExistsByEmail(ctx context.Context, tenantID uint64, email string) (bool, error)

func (*UserRepo) CheckIfExistsById

func (r *UserRepo) CheckIfExistsById(ctx context.Context, tenantID uint64, id uint64) (bool, error)

func (*UserRepo) GetByEmail

func (r *UserRepo) GetByEmail(ctx context.Context, tenantID uint64, email string) (*models.User, error)

func (*UserRepo) GetById

func (r *UserRepo) GetById(ctx context.Context, tenantID uint64, id uint64) (*models.User, error)

func (*UserRepo) GetByOldId

func (r *UserRepo) GetByOldId(ctx context.Context, oldId uint64) (*models.User, error)

func (*UserRepo) GetByUUID

func (r *UserRepo) GetByUUID(ctx context.Context, tenantID uint64, uid string) (*models.User, error)

func (*UserRepo) GetIdByOldId

func (r *UserRepo) GetIdByOldId(ctx context.Context, tenantID uint64, oldId uint64) (uint64, error)

func (*UserRepo) Insert

func (r *UserRepo) Insert(ctx context.Context, m *models.User) error

func (*UserRepo) InsertOrUpdateByEmail

func (r *UserRepo) InsertOrUpdateByEmail(ctx context.Context, m *models.User) error

func (*UserRepo) InsertOrUpdateById

func (r *UserRepo) InsertOrUpdateById(ctx context.Context, m *models.User) error

func (*UserRepo) UpdateByEmail

func (r *UserRepo) UpdateByEmail(ctx context.Context, m *models.User) error

func (*UserRepo) UpdateById

func (r *UserRepo) UpdateById(ctx context.Context, m *models.User) error

type VehicleTypeRepo

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

func NewVehicleTypeRepo

func NewVehicleTypeRepo(db *sql.DB) *VehicleTypeRepo

func (*VehicleTypeRepo) CheckIfExistsById

func (r *VehicleTypeRepo) CheckIfExistsById(ctx context.Context, tenantID uint64, id uint64) (bool, error)

func (*VehicleTypeRepo) DeleteById

func (s *VehicleTypeRepo) DeleteById(ctx context.Context, tenantID uint64, id uint64) error

func (*VehicleTypeRepo) GetById

func (r *VehicleTypeRepo) GetById(ctx context.Context, tenantID uint64, id uint64) (*models.VehicleType, error)

func (*VehicleTypeRepo) GetByUUID

func (r *VehicleTypeRepo) GetByUUID(ctx context.Context, tenantID uint64, uid string) (*models.VehicleType, error)

func (*VehicleTypeRepo) GetIdByOldId

func (r *VehicleTypeRepo) GetIdByOldId(ctx context.Context, tenantID uint64, oid uint64) (uint64, error)

func (*VehicleTypeRepo) Insert

func (*VehicleTypeRepo) InsertOrUpdateById

func (r *VehicleTypeRepo) InsertOrUpdateById(ctx context.Context, m *models.VehicleType) error

func (*VehicleTypeRepo) UpdateById

func (r *VehicleTypeRepo) UpdateById(ctx context.Context, m *models.VehicleType) error

type WorkOrderCommentRepo

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

func NewWorkOrderCommentRepo

func NewWorkOrderCommentRepo(db *sql.DB) *WorkOrderCommentRepo

func (*WorkOrderCommentRepo) CheckIfExistsById

func (r *WorkOrderCommentRepo) CheckIfExistsById(ctx context.Context, tenantID uint64, id uint64) (bool, error)

func (*WorkOrderCommentRepo) CountByFilter

func (*WorkOrderCommentRepo) GetById

func (r *WorkOrderCommentRepo) GetById(ctx context.Context, tenantID uint64, id uint64) (*models.WorkOrderComment, error)

func (*WorkOrderCommentRepo) GetByOld

func (r *WorkOrderCommentRepo) GetByOld(ctx context.Context, tenantID uint64, oldId uint64) (*models.WorkOrderComment, error)

func (*WorkOrderCommentRepo) GetByUUID

func (r *WorkOrderCommentRepo) GetByUUID(ctx context.Context, tenantID uint64, uid string) (*models.WorkOrderComment, error)

func (*WorkOrderCommentRepo) GetLatestPKByOrderId

func (r *WorkOrderCommentRepo) GetLatestPKByOrderId(ctx context.Context, tenantID uint64, oid uint64) (uint64, error)

func (*WorkOrderCommentRepo) Insert

func (*WorkOrderCommentRepo) InsertOrUpdateById

func (r *WorkOrderCommentRepo) InsertOrUpdateById(ctx context.Context, m *models.WorkOrderComment) error

func (*WorkOrderCommentRepo) ListByFilter

func (*WorkOrderCommentRepo) UpdateById

type WorkOrderDepositRepo

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

func NewWorkOrderDepositRepo

func NewWorkOrderDepositRepo(db *sql.DB) *WorkOrderDepositRepo

func (*WorkOrderDepositRepo) CheckIfExistsById

func (r *WorkOrderDepositRepo) CheckIfExistsById(ctx context.Context, tenantID uint64, id uint64) (bool, error)

func (*WorkOrderDepositRepo) CountByFilter

func (*WorkOrderDepositRepo) DeleteById

func (r *WorkOrderDepositRepo) DeleteById(ctx context.Context, tenantID uint64, id uint64) error

func (*WorkOrderDepositRepo) GetById

func (r *WorkOrderDepositRepo) GetById(ctx context.Context, tenantID uint64, id uint64) (*models.WorkOrderDeposit, error)

func (*WorkOrderDepositRepo) GetByUUID

func (r *WorkOrderDepositRepo) GetByUUID(ctx context.Context, tenantID uint64, uid string) (*models.WorkOrderDeposit, error)

func (*WorkOrderDepositRepo) GetIdByOldId

func (r *WorkOrderDepositRepo) GetIdByOldId(ctx context.Context, tenantID uint64, oldId uint64) (uint64, error)

func (*WorkOrderDepositRepo) Insert

func (*WorkOrderDepositRepo) InsertOrUpdateById

func (r *WorkOrderDepositRepo) InsertOrUpdateById(ctx context.Context, m *models.WorkOrderDeposit) error

func (*WorkOrderDepositRepo) ListByFilter

func (*WorkOrderDepositRepo) UpdateById

type WorkOrderInvoiceRepo

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

func NewWorkOrderInvoiceRepo

func NewWorkOrderInvoiceRepo(db *sql.DB) *WorkOrderInvoiceRepo

func (*WorkOrderInvoiceRepo) CheckIfExistsById

func (r *WorkOrderInvoiceRepo) CheckIfExistsById(ctx context.Context, tenantID uint64, id uint64) (bool, error)

func (*WorkOrderInvoiceRepo) GetById

func (r *WorkOrderInvoiceRepo) GetById(ctx context.Context, tenantID uint64, id uint64) (*models.WorkOrderInvoice, error)

func (*WorkOrderInvoiceRepo) GetByOld

func (r *WorkOrderInvoiceRepo) GetByOld(ctx context.Context, tenantID uint64, oldId uint64) (*models.WorkOrderInvoice, error)

func (*WorkOrderInvoiceRepo) GetByOrderID

func (r *WorkOrderInvoiceRepo) GetByOrderID(ctx context.Context, tenantID uint64, orderID uint64) (*models.WorkOrderInvoice, error)

func (*WorkOrderInvoiceRepo) Insert

func (*WorkOrderInvoiceRepo) InsertOrUpdateById

func (r *WorkOrderInvoiceRepo) InsertOrUpdateById(ctx context.Context, m *models.WorkOrderInvoice) error

func (*WorkOrderInvoiceRepo) UpdateById

type WorkOrderRepo

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

func NewWorkOrderRepo

func NewWorkOrderRepo(db *sql.DB) *WorkOrderRepo

func (*WorkOrderRepo) CheckIfExistsById

func (r *WorkOrderRepo) CheckIfExistsById(ctx context.Context, tenantID uint64, id uint64) (bool, error)

func (*WorkOrderRepo) GetById

func (r *WorkOrderRepo) GetById(ctx context.Context, tenantID uint64, id uint64) (*models.WorkOrder, error)

func (*WorkOrderRepo) GetByOngoingWorkOrderId

func (r *WorkOrderRepo) GetByOngoingWorkOrderId(ctx context.Context, tenantID uint64, ongoingWorkOrderId uint64) (*models.WorkOrder, error)

func (*WorkOrderRepo) GetByUUID

func (r *WorkOrderRepo) GetByUUID(ctx context.Context, tenantID uint64, uid string) (*models.WorkOrder, error)

func (*WorkOrderRepo) GetIdByOldId

func (r *WorkOrderRepo) GetIdByOldId(ctx context.Context, tid uint64, oid uint64) (uint64, error)

func (*WorkOrderRepo) Insert

func (r *WorkOrderRepo) Insert(ctx context.Context, m *models.WorkOrder) error

func (*WorkOrderRepo) InsertOrUpdateById

func (r *WorkOrderRepo) InsertOrUpdateById(ctx context.Context, m *models.WorkOrder) error

func (*WorkOrderRepo) ListByFilter

func (s *WorkOrderRepo) ListByFilter(ctx context.Context, f *models.WorkOrderFilter) ([]*models.WorkOrder, error)

func (*WorkOrderRepo) UpdateById

func (r *WorkOrderRepo) UpdateById(ctx context.Context, m *models.WorkOrder) error

type WorkOrderServiceFeeRepo

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

func NewWorkOrderServiceFeeRepo

func NewWorkOrderServiceFeeRepo(db *sql.DB) *WorkOrderServiceFeeRepo

func (*WorkOrderServiceFeeRepo) CheckIfExistsById

func (r *WorkOrderServiceFeeRepo) CheckIfExistsById(ctx context.Context, tenantID uint64, id uint64) (bool, error)

func (*WorkOrderServiceFeeRepo) DeleteById

func (s *WorkOrderServiceFeeRepo) DeleteById(ctx context.Context, tenantID uint64, id uint64) error

func (*WorkOrderServiceFeeRepo) GetById

func (*WorkOrderServiceFeeRepo) GetByUUID

func (r *WorkOrderServiceFeeRepo) GetByUUID(ctx context.Context, tenantID uint64, uid string) (*models.WorkOrderServiceFee, error)

func (*WorkOrderServiceFeeRepo) GetIdByOldId

func (r *WorkOrderServiceFeeRepo) GetIdByOldId(ctx context.Context, tenantID uint64, oid uint64) (uint64, error)

func (*WorkOrderServiceFeeRepo) Insert

func (*WorkOrderServiceFeeRepo) InsertOrUpdateById

func (r *WorkOrderServiceFeeRepo) InsertOrUpdateById(ctx context.Context, m *models.WorkOrderServiceFee) error

func (*WorkOrderServiceFeeRepo) UpdateById

type WorkOrderSkillSetRepo

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

func NewWorkOrderSkillSetRepo

func NewWorkOrderSkillSetRepo(db *sql.DB) *WorkOrderSkillSetRepo

func (*WorkOrderSkillSetRepo) CheckIfExistsById

func (r *WorkOrderSkillSetRepo) CheckIfExistsById(ctx context.Context, tenantID uint64, id uint64) (bool, error)

func (*WorkOrderSkillSetRepo) CountByFilter

func (*WorkOrderSkillSetRepo) DeleteByOrderId

func (r *WorkOrderSkillSetRepo) DeleteByOrderId(ctx context.Context, tenantID uint64, orderId uint64) error

func (*WorkOrderSkillSetRepo) GetById

func (r *WorkOrderSkillSetRepo) GetById(ctx context.Context, tenantID uint64, id uint64) (*models.WorkOrderSkillSet, error)

func (*WorkOrderSkillSetRepo) GetByOld

func (r *WorkOrderSkillSetRepo) GetByOld(ctx context.Context, tenantID uint64, oldId uint64) (*models.WorkOrderSkillSet, error)

func (*WorkOrderSkillSetRepo) GetByUUID

func (r *WorkOrderSkillSetRepo) GetByUUID(ctx context.Context, tenantID uint64, uid string) (*models.WorkOrderSkillSet, error)

func (*WorkOrderSkillSetRepo) Insert

func (*WorkOrderSkillSetRepo) InsertOrUpdateById

func (r *WorkOrderSkillSetRepo) InsertOrUpdateById(ctx context.Context, m *models.WorkOrderSkillSet) error

func (*WorkOrderSkillSetRepo) ListByFilter

func (*WorkOrderSkillSetRepo) ListPKsByFilter

func (s *WorkOrderSkillSetRepo) ListPKsByFilter(ctx context.Context, filter *models.WorkOrderSkillSetFilter) ([]uint64, error)

func (*WorkOrderSkillSetRepo) ListValuesFromColumnAndByFilter

func (s *WorkOrderSkillSetRepo) ListValuesFromColumnAndByFilter(ctx context.Context, columnName string, filter *models.WorkOrderSkillSetFilter) ([]uint64, error)

func (*WorkOrderSkillSetRepo) UpdateById

type WorkOrderTagRepo

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

func NewWorkOrderTagRepo

func NewWorkOrderTagRepo(db *sql.DB) *WorkOrderTagRepo

func (*WorkOrderTagRepo) CheckIfExistsById

func (r *WorkOrderTagRepo) CheckIfExistsById(ctx context.Context, tenantID uint64, id uint64) (bool, error)

func (*WorkOrderTagRepo) CountByFilter

func (s *WorkOrderTagRepo) CountByFilter(ctx context.Context, f *models.WorkOrderTagFilter) (uint64, error)

func (*WorkOrderTagRepo) DeleteByOrderId

func (r *WorkOrderTagRepo) DeleteByOrderId(ctx context.Context, tenantID uint64, orderId uint64) error

func (*WorkOrderTagRepo) GetById

func (r *WorkOrderTagRepo) GetById(ctx context.Context, tenantID uint64, id uint64) (*models.WorkOrderTag, error)

func (*WorkOrderTagRepo) GetByOld

func (r *WorkOrderTagRepo) GetByOld(ctx context.Context, tenantID uint64, oldId uint64) (*models.WorkOrderTag, error)

func (*WorkOrderTagRepo) GetByUUID

func (r *WorkOrderTagRepo) GetByUUID(ctx context.Context, tenantID uint64, uid string) (*models.WorkOrderTag, error)

func (*WorkOrderTagRepo) Insert

func (*WorkOrderTagRepo) InsertOrUpdateById

func (r *WorkOrderTagRepo) InsertOrUpdateById(ctx context.Context, m *models.WorkOrderTag) error

func (*WorkOrderTagRepo) ListByFilter

func (s *WorkOrderTagRepo) ListByFilter(ctx context.Context, filter *models.WorkOrderTagFilter) ([]*models.WorkOrderTag, error)

func (*WorkOrderTagRepo) UpdateById

func (r *WorkOrderTagRepo) UpdateById(ctx context.Context, m *models.WorkOrderTag) error

Jump to

Keyboard shortcuts

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