Documentation ¶
Index ¶
- type ActivitySheetItemRepo
- func (r *ActivitySheetItemRepo) CheckIfExistsById(ctx context.Context, tenantID uint64, id uint64) (bool, error)
- func (s *ActivitySheetItemRepo) CountByFilter(ctx context.Context, f *models.ActivitySheetItemFilter) (uint64, error)
- func (r *ActivitySheetItemRepo) GetById(ctx context.Context, tenantID uint64, id uint64) (*models.ActivitySheetItem, error)
- func (r *ActivitySheetItemRepo) GetByPK(ctx context.Context, pk *models.ActivitySheetItemPK) (*models.ActivitySheetItem, error)
- func (r *ActivitySheetItemRepo) GetByUUID(ctx context.Context, tenantID uint64, uid string) (*models.ActivitySheetItem, error)
- func (r *ActivitySheetItemRepo) GetIdByOldId(ctx context.Context, tenantID uint64, oldId uint64) (uint64, error)
- func (r *ActivitySheetItemRepo) Insert(ctx context.Context, m *models.ActivitySheetItem) error
- func (r *ActivitySheetItemRepo) InsertOrUpdateById(ctx context.Context, m *models.ActivitySheetItem) error
- func (s *ActivitySheetItemRepo) ListByFilter(ctx context.Context, filter *models.ActivitySheetItemFilter) ([]*models.ActivitySheetItem, error)
- func (s *ActivitySheetItemRepo) ListValuesFromColumnAndByFilter(ctx context.Context, columnName string, filter *models.ActivitySheetItemFilter) ([]uint64, error)
- func (r *ActivitySheetItemRepo) UpdateById(ctx context.Context, m *models.ActivitySheetItem) error
- type AssociateAwayLogRepo
- func (r *AssociateAwayLogRepo) CheckIfExistsById(ctx context.Context, tenantID uint64, id uint64) (bool, error)
- func (s *AssociateAwayLogRepo) CountByFilter(ctx context.Context, f *models.AssociateAwayLogFilter) (uint64, error)
- func (s *AssociateAwayLogRepo) DeleteById(ctx context.Context, tenantID uint64, id uint64) error
- func (r *AssociateAwayLogRepo) GetById(ctx context.Context, tenantID uint64, id uint64) (*models.AssociateAwayLog, error)
- func (r *AssociateAwayLogRepo) GetByOld(ctx context.Context, tenantID uint64, oldId uint64) (*models.AssociateAwayLog, error)
- func (r *AssociateAwayLogRepo) GetByUUID(ctx context.Context, tenantID uint64, uid string) (*models.AssociateAwayLog, error)
- func (r *AssociateAwayLogRepo) Insert(ctx context.Context, m *models.AssociateAwayLog) error
- func (r *AssociateAwayLogRepo) InsertOrUpdateById(ctx context.Context, m *models.AssociateAwayLog) error
- func (s *AssociateAwayLogRepo) ListByFilter(ctx context.Context, f *models.AssociateAwayLogFilter) ([]*models.AssociateAwayLog, error)
- func (r *AssociateAwayLogRepo) UpdateById(ctx context.Context, m *models.AssociateAwayLog) error
- type AssociateCommentRepo
- func (r *AssociateCommentRepo) CheckIfExistsById(ctx context.Context, tenantID uint64, id uint64) (bool, error)
- func (s *AssociateCommentRepo) CountByFilter(ctx context.Context, f *models.AssociateCommentFilter) (uint64, error)
- func (r *AssociateCommentRepo) GetById(ctx context.Context, tenantID uint64, id uint64) (*models.AssociateComment, error)
- func (r *AssociateCommentRepo) GetByOld(ctx context.Context, tenantID uint64, oldId uint64) (*models.AssociateComment, error)
- func (r *AssociateCommentRepo) GetByUUID(ctx context.Context, tenantID uint64, uid string) (*models.AssociateComment, error)
- func (r *AssociateCommentRepo) Insert(ctx context.Context, m *models.AssociateComment) error
- func (r *AssociateCommentRepo) InsertOrUpdateById(ctx context.Context, m *models.AssociateComment) error
- func (s *AssociateCommentRepo) ListByFilter(ctx context.Context, filter *models.AssociateCommentFilter) ([]*models.AssociateComment, error)
- func (r *AssociateCommentRepo) UpdateById(ctx context.Context, m *models.AssociateComment) error
- type AssociateInsuranceRequirementRepo
- func (r *AssociateInsuranceRequirementRepo) CheckIfExistsById(ctx context.Context, tenantID uint64, id uint64) (bool, error)
- func (s *AssociateInsuranceRequirementRepo) CountByFilter(ctx context.Context, f *models.AssociateInsuranceRequirementFilter) (uint64, error)
- func (r *AssociateInsuranceRequirementRepo) DeleteByAssociateId(ctx context.Context, tenantID uint64, associateId uint64) error
- func (r *AssociateInsuranceRequirementRepo) GetById(ctx context.Context, tenantID uint64, id uint64) (*models.AssociateInsuranceRequirement, error)
- func (r *AssociateInsuranceRequirementRepo) GetIdByOldId(ctx context.Context, tid uint64, oid uint64) (uint64, error)
- func (r *AssociateInsuranceRequirementRepo) Insert(ctx context.Context, m *models.AssociateInsuranceRequirement) error
- func (r *AssociateInsuranceRequirementRepo) InsertOrUpdateById(ctx context.Context, m *models.AssociateInsuranceRequirement) error
- func (s *AssociateInsuranceRequirementRepo) ListByFilter(ctx context.Context, filter *models.AssociateInsuranceRequirementFilter) ([]*models.AssociateInsuranceRequirement, error)
- func (s *AssociateInsuranceRequirementRepo) ListValuesFromColumnAndByFilter(ctx context.Context, column string, ...) ([]uint64, error)
- func (r *AssociateInsuranceRequirementRepo) UpdateById(ctx context.Context, m *models.AssociateInsuranceRequirement) error
- type AssociateRepo
- func (r *AssociateRepo) CheckIfExistsByEmail(ctx context.Context, tenantID uint64, email string) (bool, error)
- func (r *AssociateRepo) CheckIfExistsById(ctx context.Context, tenantID uint64, id uint64) (bool, error)
- func (s *AssociateRepo) DeleteById(ctx context.Context, tenantID uint64, id uint64) error
- func (r *AssociateRepo) GetById(ctx context.Context, tenantID uint64, id uint64) (*models.Associate, error)
- func (r *AssociateRepo) GetByUUID(ctx context.Context, tenantID uint64, uid string) (*models.Associate, error)
- func (r *AssociateRepo) GetIdByOldId(ctx context.Context, tid uint64, oid uint64) (uint64, error)
- func (r *AssociateRepo) Insert(ctx context.Context, m *models.Associate) error
- func (r *AssociateRepo) InsertOrUpdateById(ctx context.Context, m *models.Associate) error
- func (s *AssociateRepo) ListByFilter(ctx context.Context, f *models.AssociateFilter) ([]*models.Associate, error)
- func (r *AssociateRepo) UpdateById(ctx context.Context, m *models.Associate) error
- type AssociateSkillSetRepo
- func (s *AssociateSkillSetRepo) AssociatePKsBySkillSetPKs(ctx context.Context, tenantId uint64, skillSetPKs []uint64) ([]uint64, error)
- func (r *AssociateSkillSetRepo) CheckIfExistsById(ctx context.Context, tenantID uint64, id uint64) (bool, error)
- func (s *AssociateSkillSetRepo) CountByFilter(ctx context.Context, f *models.AssociateSkillSetFilter) (uint64, error)
- func (r *AssociateSkillSetRepo) DeleteByAssociateId(ctx context.Context, tenantID uint64, associateId uint64) error
- func (r *AssociateSkillSetRepo) GetById(ctx context.Context, tenantID uint64, id uint64) (*models.AssociateSkillSet, error)
- func (r *AssociateSkillSetRepo) GetByOld(ctx context.Context, tenantID uint64, oldId uint64) (*models.AssociateSkillSet, error)
- func (r *AssociateSkillSetRepo) Insert(ctx context.Context, m *models.AssociateSkillSet) error
- func (r *AssociateSkillSetRepo) InsertOrUpdateById(ctx context.Context, m *models.AssociateSkillSet) error
- func (s *AssociateSkillSetRepo) ListByFilter(ctx context.Context, filter *models.AssociateSkillSetFilter) ([]*models.AssociateSkillSet, error)
- func (s *AssociateSkillSetRepo) ListValuesFromColumnAndByFilter(ctx context.Context, column string, filter *models.AssociateSkillSetFilter) ([]uint64, error)
- func (r *AssociateSkillSetRepo) UpdateById(ctx context.Context, m *models.AssociateSkillSet) error
- type AssociateTagRepo
- func (s *AssociateTagRepo) AssociatePKsByTagPKs(ctx context.Context, tenantId uint64, tagPKs []uint64) ([]uint64, error)
- func (r *AssociateTagRepo) CheckIfExistsById(ctx context.Context, tenantID uint64, id uint64) (bool, error)
- func (s *AssociateTagRepo) CountByFilter(ctx context.Context, f *models.AssociateTagFilter) (uint64, error)
- func (r *AssociateTagRepo) DeleteByAssociateId(ctx context.Context, tenantID uint64, associateId uint64) error
- func (r *AssociateTagRepo) GetById(ctx context.Context, tenantID uint64, id uint64) (*models.AssociateTag, error)
- func (r *AssociateTagRepo) GetByOld(ctx context.Context, tenantID uint64, oldId uint64) (*models.AssociateTag, error)
- func (r *AssociateTagRepo) Insert(ctx context.Context, m *models.AssociateTag) error
- func (r *AssociateTagRepo) InsertOrUpdateById(ctx context.Context, m *models.AssociateTag) error
- func (s *AssociateTagRepo) ListByFilter(ctx context.Context, filter *models.AssociateTagFilter) ([]*models.AssociateTag, error)
- func (r *AssociateTagRepo) UpdateById(ctx context.Context, m *models.AssociateTag) error
- type AssociateVehicleTypeRepo
- func (r *AssociateVehicleTypeRepo) CheckIfExistsById(ctx context.Context, tenantID uint64, id uint64) (bool, error)
- func (s *AssociateVehicleTypeRepo) CountByFilter(ctx context.Context, f *models.AssociateVehicleTypeFilter) (uint64, error)
- func (r *AssociateVehicleTypeRepo) DeleteByAssociateId(ctx context.Context, tenantID uint64, associateId uint64) error
- func (r *AssociateVehicleTypeRepo) GetById(ctx context.Context, tenantID uint64, id uint64) (*models.AssociateVehicleType, error)
- func (r *AssociateVehicleTypeRepo) GetByOld(ctx context.Context, tenantID uint64, oldId uint64) (*models.AssociateVehicleType, error)
- func (r *AssociateVehicleTypeRepo) Insert(ctx context.Context, m *models.AssociateVehicleType) error
- func (r *AssociateVehicleTypeRepo) InsertOrUpdateById(ctx context.Context, m *models.AssociateVehicleType) error
- func (s *AssociateVehicleTypeRepo) ListByFilter(ctx context.Context, filter *models.AssociateVehicleTypeFilter) ([]*models.AssociateVehicleType, error)
- func (r *AssociateVehicleTypeRepo) UpdateById(ctx context.Context, m *models.AssociateVehicleType) error
- type BulletinBoardItemRepo
- func (r *BulletinBoardItemRepo) CheckIfExistsById(ctx context.Context, tenantID uint64, id uint64) (bool, error)
- func (s *BulletinBoardItemRepo) CountByFilter(ctx context.Context, f *models.BulletinBoardItemFilter) (uint64, error)
- func (s *BulletinBoardItemRepo) DeleteById(ctx context.Context, tenantID uint64, id uint64) error
- func (r *BulletinBoardItemRepo) GetById(ctx context.Context, tenantID uint64, id uint64) (*models.BulletinBoardItem, error)
- func (r *BulletinBoardItemRepo) GetByOld(ctx context.Context, tenantID uint64, oldId uint64) (*models.BulletinBoardItem, error)
- func (r *BulletinBoardItemRepo) GetByUUID(ctx context.Context, tenantID uint64, uid string) (*models.BulletinBoardItem, error)
- func (r *BulletinBoardItemRepo) Insert(ctx context.Context, m *models.BulletinBoardItem) error
- func (r *BulletinBoardItemRepo) InsertOrUpdateById(ctx context.Context, m *models.BulletinBoardItem) error
- func (s *BulletinBoardItemRepo) ListByFilter(ctx context.Context, filter *models.BulletinBoardItemFilter) ([]*models.BulletinBoardItem, error)
- func (r *BulletinBoardItemRepo) UpdateById(ctx context.Context, m *models.BulletinBoardItem) error
- type CommentRepo
- func (r *CommentRepo) CheckIfExistsById(ctx context.Context, tenantID uint64, id uint64) (bool, error)
- func (r *CommentRepo) GetById(ctx context.Context, tenantID uint64, id uint64) (*models.Comment, error)
- func (r *CommentRepo) GetByUUID(ctx context.Context, tenantID uint64, uid string) (*models.Comment, error)
- func (r *CommentRepo) GetIdByOldId(ctx context.Context, tid uint64, oid uint64) (uint64, error)
- func (r *CommentRepo) Insert(ctx context.Context, m *models.Comment) error
- func (r *CommentRepo) InsertOrUpdateById(ctx context.Context, m *models.Comment) error
- func (r *CommentRepo) UpdateById(ctx context.Context, m *models.Comment) error
- type CustomerCommentRepo
- func (r *CustomerCommentRepo) CheckIfExistsById(ctx context.Context, tenantID uint64, id uint64) (bool, error)
- func (s *CustomerCommentRepo) CountByFilter(ctx context.Context, f *models.CustomerCommentFilter) (uint64, error)
- func (r *CustomerCommentRepo) GetById(ctx context.Context, tenantID uint64, id uint64) (*models.CustomerComment, error)
- func (r *CustomerCommentRepo) GetByUUID(ctx context.Context, tenantID uint64, uid string) (*models.CustomerComment, error)
- func (r *CustomerCommentRepo) Insert(ctx context.Context, m *models.CustomerComment) error
- func (r *CustomerCommentRepo) InsertOrUpdateById(ctx context.Context, m *models.CustomerComment) error
- func (s *CustomerCommentRepo) ListByFilter(ctx context.Context, filter *models.CustomerCommentFilter) ([]*models.CustomerComment, error)
- func (r *CustomerCommentRepo) UpdateById(ctx context.Context, m *models.CustomerComment) error
- type CustomerRepo
- func (r *CustomerRepo) CheckIfExistsByEmail(ctx context.Context, tenantID uint64, email string) (bool, error)
- func (r *CustomerRepo) CheckIfExistsById(ctx context.Context, tenantID uint64, id uint64) (bool, error)
- func (s *CustomerRepo) DeleteById(ctx context.Context, tenantID uint64, id uint64) error
- func (r *CustomerRepo) GetByEmail(ctx context.Context, tenantID uint64, email string) (*models.Customer, error)
- func (r *CustomerRepo) GetById(ctx context.Context, tenantID uint64, id uint64) (*models.Customer, error)
- func (r *CustomerRepo) GetByUUID(ctx context.Context, tenantID uint64, uid string) (*models.Customer, error)
- func (r *CustomerRepo) GetIdByOldId(ctx context.Context, tid uint64, oid uint64) (uint64, error)
- func (r *CustomerRepo) Insert(ctx context.Context, m *models.Customer) error
- func (r *CustomerRepo) InsertOrUpdateById(ctx context.Context, m *models.Customer) error
- func (s *CustomerRepo) ListByFilter(ctx context.Context, f *models.CustomerFilter) ([]*models.Customer, error)
- func (r *CustomerRepo) UpdateById(ctx context.Context, m *models.Customer) error
- type CustomerTagRepo
- func (r *CustomerTagRepo) CheckIfExistsById(ctx context.Context, tenantID uint64, id uint64) (bool, error)
- func (s *CustomerTagRepo) CountByFilter(ctx context.Context, f *models.CustomerTagFilter) (uint64, error)
- func (r *CustomerTagRepo) DeleteByCustomerId(ctx context.Context, tenantID uint64, customerId uint64) error
- func (r *CustomerTagRepo) GetById(ctx context.Context, tenantID uint64, id uint64) (*models.CustomerTag, error)
- func (r *CustomerTagRepo) Insert(ctx context.Context, m *models.CustomerTag) error
- func (r *CustomerTagRepo) InsertOrUpdateById(ctx context.Context, m *models.CustomerTag) error
- func (s *CustomerTagRepo) ListByFilter(ctx context.Context, filter *models.CustomerTagFilter) ([]*models.CustomerTag, error)
- func (r *CustomerTagRepo) UpdateById(ctx context.Context, m *models.CustomerTag) error
- type HowHearAboutUsItemRepo
- func (r *HowHearAboutUsItemRepo) CheckIfExistsById(ctx context.Context, tenantID uint64, id uint64) (bool, error)
- func (s *HowHearAboutUsItemRepo) DeleteById(ctx context.Context, tenantID uint64, id uint64) error
- func (r *HowHearAboutUsItemRepo) GetById(ctx context.Context, tenantID uint64, id uint64) (*models.HowHearAboutUsItem, error)
- func (r *HowHearAboutUsItemRepo) GetByOld(ctx context.Context, tenantID uint64, oldId uint64) (*models.HowHearAboutUsItem, error)
- func (r *HowHearAboutUsItemRepo) GetByUUID(ctx context.Context, tenantID uint64, uid string) (*models.HowHearAboutUsItem, error)
- func (r *HowHearAboutUsItemRepo) Insert(ctx context.Context, m *models.HowHearAboutUsItem) error
- func (r *HowHearAboutUsItemRepo) InsertOrUpdateById(ctx context.Context, m *models.HowHearAboutUsItem) error
- func (r *HowHearAboutUsItemRepo) UpdateById(ctx context.Context, m *models.HowHearAboutUsItem) error
- type InsuranceRequirementRepo
- func (r *InsuranceRequirementRepo) CheckIfExistsById(ctx context.Context, tenantID uint64, id uint64) (bool, error)
- func (s *InsuranceRequirementRepo) CountByFilter(ctx context.Context, f *models.InsuranceRequirementFilter) (uint64, error)
- func (s *InsuranceRequirementRepo) DeleteById(ctx context.Context, tenantID uint64, id uint64) error
- func (r *InsuranceRequirementRepo) GetById(ctx context.Context, tenantID uint64, id uint64) (*models.InsuranceRequirement, error)
- func (r *InsuranceRequirementRepo) GetByUUID(ctx context.Context, tenantID uint64, uid string) (*models.InsuranceRequirement, error)
- func (r *InsuranceRequirementRepo) GetIdByTenantIdAndOldId(ctx context.Context, tid uint64, oid uint64) (uint64, error)
- func (r *InsuranceRequirementRepo) Insert(ctx context.Context, m *models.InsuranceRequirement) error
- func (r *InsuranceRequirementRepo) InsertOrUpdateById(ctx context.Context, m *models.InsuranceRequirement) error
- func (s *InsuranceRequirementRepo) ListByFilter(ctx context.Context, f *models.InsuranceRequirementFilter) ([]*models.InsuranceRequirement, error)
- func (r *InsuranceRequirementRepo) UpdateById(ctx context.Context, m *models.InsuranceRequirement) error
- type LiteActivitySheetItemRepo
- type LiteAssociateAwayLogRepo
- type LiteAssociateRepo
- func (s *LiteAssociateRepo) CountByFilter(ctx context.Context, f *models.LiteAssociateFilter) (uint64, error)
- func (s *LiteAssociateRepo) ListByFilter(ctx context.Context, f *models.LiteAssociateFilter) ([]*models.LiteAssociate, error)
- func (s *LiteAssociateRepo) ListPKsByFilter(ctx context.Context, f *models.LiteAssociateFilter) ([]uint64, error)
- type LiteBulletinBoardItemRepo
- type LiteCustomerRepo
- type LiteDeactivatedCustomerRepo
- type LiteFinancialRepo
- type LiteHowHearAboutUsItemRepo
- type LiteInsuranceRequirementRepo
- type LiteOngoingWorkOrderRepo
- type LitePartnerRepo
- type LitePrivateFileRepo
- type LiteSkillSetRepo
- type LiteStaffRepo
- type LiteTagRepo
- type LiteTaskItemRepo
- type LiteTenantRepo
- func (s *LiteTenantRepo) CountByFilter(ctx context.Context, filter *models.LiteTenantFilter) (uint64, error)
- func (s *LiteTenantRepo) ListAllIds(ctx context.Context) ([]uint64, error)
- func (s *LiteTenantRepo) ListByFilter(ctx context.Context, filter *models.LiteTenantFilter) ([]*models.LiteTenant, error)
- type LiteVehicleTypeRepo
- type LiteWorkOrderDepositRepo
- type LiteWorkOrderRepo
- type LiteWorkOrderServiceFeeRepo
- type OngoingWorkOrderCommentRepo
- func (r *OngoingWorkOrderCommentRepo) CheckIfExistsById(ctx context.Context, tenantID uint64, id uint64) (bool, error)
- func (s *OngoingWorkOrderCommentRepo) CountByFilter(ctx context.Context, f *models.OngoingWorkOrderCommentFilter) (uint64, error)
- func (r *OngoingWorkOrderCommentRepo) GetById(ctx context.Context, tenantID uint64, id uint64) (*models.OngoingWorkOrderComment, error)
- func (r *OngoingWorkOrderCommentRepo) GetByOld(ctx context.Context, tenantID uint64, oldId uint64) (*models.OngoingWorkOrderComment, error)
- func (r *OngoingWorkOrderCommentRepo) GetByUUID(ctx context.Context, tenantID uint64, uid string) (*models.OngoingWorkOrderComment, error)
- func (r *OngoingWorkOrderCommentRepo) Insert(ctx context.Context, m *models.OngoingWorkOrderComment) error
- func (r *OngoingWorkOrderCommentRepo) InsertOrUpdateById(ctx context.Context, m *models.OngoingWorkOrderComment) error
- func (s *OngoingWorkOrderCommentRepo) ListByFilter(ctx context.Context, filter *models.OngoingWorkOrderCommentFilter) ([]*models.OngoingWorkOrderComment, error)
- func (r *OngoingWorkOrderCommentRepo) UpdateById(ctx context.Context, m *models.OngoingWorkOrderComment) error
- type OngoingWorkOrderRepo
- func (r *OngoingWorkOrderRepo) CheckIfExistsById(ctx context.Context, tenantID uint64, id uint64) (bool, error)
- func (r *OngoingWorkOrderRepo) GetById(ctx context.Context, tenantID uint64, id uint64) (*models.OngoingWorkOrder, error)
- func (r *OngoingWorkOrderRepo) GetByUUID(ctx context.Context, tenantID uint64, uid string) (*models.OngoingWorkOrder, error)
- func (r *OngoingWorkOrderRepo) GetIdByOldId(ctx context.Context, tenantID uint64, oid uint64) (uint64, error)
- func (r *OngoingWorkOrderRepo) Insert(ctx context.Context, m *models.OngoingWorkOrder) error
- func (r *OngoingWorkOrderRepo) InsertOrUpdateById(ctx context.Context, m *models.OngoingWorkOrder) error
- func (s *OngoingWorkOrderRepo) ListByFilter(ctx context.Context, filter *models.OngoingWorkOrderFilter) ([]*models.OngoingWorkOrder, error)
- func (r *OngoingWorkOrderRepo) UpdateById(ctx context.Context, m *models.OngoingWorkOrder) error
- type PartnerCommentRepo
- func (r *PartnerCommentRepo) CheckIfExistsById(ctx context.Context, tenantID uint64, id uint64) (bool, error)
- func (s *PartnerCommentRepo) CountByFilter(ctx context.Context, f *models.PartnerCommentFilter) (uint64, error)
- func (r *PartnerCommentRepo) GetById(ctx context.Context, tenantID uint64, id uint64) (*models.PartnerComment, error)
- func (r *PartnerCommentRepo) GetByOld(ctx context.Context, tenantID uint64, oldId uint64) (*models.PartnerComment, error)
- func (r *PartnerCommentRepo) GetByUUID(ctx context.Context, tenantID uint64, uid string) (*models.PartnerComment, error)
- func (r *PartnerCommentRepo) Insert(ctx context.Context, m *models.PartnerComment) error
- func (r *PartnerCommentRepo) InsertOrUpdateById(ctx context.Context, m *models.PartnerComment) error
- func (s *PartnerCommentRepo) ListByFilter(ctx context.Context, filter *models.PartnerCommentFilter) ([]*models.PartnerComment, error)
- func (r *PartnerCommentRepo) UpdateById(ctx context.Context, m *models.PartnerComment) error
- type PartnerRepo
- func (r *PartnerRepo) CheckIfExistsById(ctx context.Context, tenantID uint64, id uint64) (bool, error)
- func (s *PartnerRepo) DeleteById(ctx context.Context, tenantID uint64, id uint64) error
- func (r *PartnerRepo) GetById(ctx context.Context, tenantID uint64, id uint64) (*models.Partner, error)
- func (r *PartnerRepo) GetByUUID(ctx context.Context, tenantID uint64, uid string) (*models.Partner, error)
- func (r *PartnerRepo) GetIdByOldId(ctx context.Context, tenantID uint64, oid uint64) (uint64, error)
- func (r *PartnerRepo) Insert(ctx context.Context, m *models.Partner) error
- func (r *PartnerRepo) InsertOrUpdateById(ctx context.Context, m *models.Partner) error
- func (s *PartnerRepo) ListByFilter(ctx context.Context, filter *models.PartnerFilter) ([]*models.Partner, error)
- func (r *PartnerRepo) UpdateById(ctx context.Context, m *models.Partner) error
- type PartnerTagRepo
- func (r *PartnerTagRepo) CheckIfExistsById(ctx context.Context, tenantID uint64, id uint64) (bool, error)
- func (s *PartnerTagRepo) CountByFilter(ctx context.Context, f *models.PartnerTagFilter) (uint64, error)
- func (r *PartnerTagRepo) DeleteByPartnerId(ctx context.Context, tenantID uint64, partnerId uint64) error
- func (r *PartnerTagRepo) GetById(ctx context.Context, tenantID uint64, id uint64) (*models.PartnerTag, error)
- func (r *PartnerTagRepo) Insert(ctx context.Context, m *models.PartnerTag) error
- func (r *PartnerTagRepo) InsertOrUpdateById(ctx context.Context, m *models.PartnerTag) error
- func (s *PartnerTagRepo) ListByFilter(ctx context.Context, filter *models.PartnerTagFilter) ([]*models.PartnerTag, error)
- func (r *PartnerTagRepo) UpdateById(ctx context.Context, m *models.PartnerTag) error
- type PrivateFileRepo
- func (r *PrivateFileRepo) CheckIfExistsById(ctx context.Context, tenantID uint64, id uint64) (bool, error)
- func (r *PrivateFileRepo) CheckIfExistsByS3Key(ctx context.Context, tenantID uint64, s3Key string) (bool, error)
- func (r *PrivateFileRepo) GetById(ctx context.Context, tenantID uint64, id uint64) (*models.PrivateFile, error)
- func (r *PrivateFileRepo) GetByUUID(ctx context.Context, tenantID uint64, uid string) (*models.PrivateFile, error)
- func (r *PrivateFileRepo) GetIdByOldId(ctx context.Context, tenantID uint64, oldId uint64) (uint64, error)
- func (r *PrivateFileRepo) Insert(ctx context.Context, m *models.PrivateFile) error
- func (r *PrivateFileRepo) InsertOrUpdateById(ctx context.Context, m *models.PrivateFile) error
- func (r *PrivateFileRepo) UpdateById(ctx context.Context, m *models.PrivateFile) error
- type SessionRepo
- type SkillSetInsuranceRequirementRepo
- func (r *SkillSetInsuranceRequirementRepo) CheckIfExistsById(ctx context.Context, tenantID uint64, id uint64) (bool, error)
- func (s *SkillSetInsuranceRequirementRepo) CountByFilter(ctx context.Context, f *models.SkillSetInsuranceRequirementFilter) (uint64, error)
- func (r *SkillSetInsuranceRequirementRepo) DeleteBySkillSetId(ctx context.Context, tenantID uint64, associateId uint64) error
- func (r *SkillSetInsuranceRequirementRepo) GetById(ctx context.Context, tenantID uint64, id uint64) (*models.SkillSetInsuranceRequirement, error)
- func (r *SkillSetInsuranceRequirementRepo) GetByOld(ctx context.Context, tenantID uint64, oldId uint64) (*models.SkillSetInsuranceRequirement, error)
- func (r *SkillSetInsuranceRequirementRepo) GetByUUID(ctx context.Context, tenantID uint64, uid string) (*models.SkillSetInsuranceRequirement, error)
- func (r *SkillSetInsuranceRequirementRepo) GetIdByOldId(ctx context.Context, tenantID uint64, oid uint64) (uint64, error)
- func (r *SkillSetInsuranceRequirementRepo) Insert(ctx context.Context, m *models.SkillSetInsuranceRequirement) error
- func (r *SkillSetInsuranceRequirementRepo) InsertOrUpdateById(ctx context.Context, m *models.SkillSetInsuranceRequirement) error
- func (s *SkillSetInsuranceRequirementRepo) ListByFilter(ctx context.Context, filter *models.SkillSetInsuranceRequirementFilter) ([]*models.SkillSetInsuranceRequirement, error)
- func (r *SkillSetInsuranceRequirementRepo) UpdateById(ctx context.Context, m *models.SkillSetInsuranceRequirement) error
- type SkillSetRepo
- func (r *SkillSetRepo) CheckIfExistsById(ctx context.Context, tenantID uint64, id uint64) (bool, error)
- func (s *SkillSetRepo) CountByFilter(ctx context.Context, f *models.SkillSetFilter) (uint64, error)
- func (s *SkillSetRepo) DeleteById(ctx context.Context, tenantID uint64, id uint64) error
- func (r *SkillSetRepo) GetById(ctx context.Context, tenantID uint64, id uint64) (*models.SkillSet, error)
- func (r *SkillSetRepo) GetByUUID(ctx context.Context, tenantID uint64, uid string) (*models.SkillSet, error)
- func (r *SkillSetRepo) GetIdByTenantIdAndOldId(ctx context.Context, tid uint64, oid uint64) (uint64, error)
- func (r *SkillSetRepo) Insert(ctx context.Context, m *models.SkillSet) error
- func (r *SkillSetRepo) InsertOrUpdateById(ctx context.Context, m *models.SkillSet) error
- func (s *SkillSetRepo) ListByFilter(ctx context.Context, f *models.SkillSetFilter) ([]*models.SkillSet, error)
- func (r *SkillSetRepo) UpdateById(ctx context.Context, m *models.SkillSet) error
- type StaffCommentRepo
- func (r *StaffCommentRepo) CheckIfExistsById(ctx context.Context, tenantID uint64, id uint64) (bool, error)
- func (s *StaffCommentRepo) CountByFilter(ctx context.Context, f *models.StaffCommentFilter) (uint64, error)
- func (r *StaffCommentRepo) GetById(ctx context.Context, tenantID uint64, id uint64) (*models.StaffComment, error)
- func (r *StaffCommentRepo) GetByUUID(ctx context.Context, tenantID uint64, uid string) (*models.StaffComment, error)
- func (r *StaffCommentRepo) Insert(ctx context.Context, m *models.StaffComment) error
- func (r *StaffCommentRepo) InsertOrUpdateById(ctx context.Context, m *models.StaffComment) error
- func (s *StaffCommentRepo) ListByFilter(ctx context.Context, filter *models.StaffCommentFilter) ([]*models.StaffComment, error)
- func (r *StaffCommentRepo) UpdateById(ctx context.Context, m *models.StaffComment) error
- type StaffRepo
- func (r *StaffRepo) CheckIfExistsByEmail(ctx context.Context, tenantID uint64, email string) (bool, error)
- func (r *StaffRepo) CheckIfExistsById(ctx context.Context, tenantID uint64, id uint64) (bool, error)
- func (s *StaffRepo) DeleteById(ctx context.Context, tenantID uint64, id uint64) error
- func (r *StaffRepo) GetById(ctx context.Context, tenantID uint64, id uint64) (*models.Staff, error)
- func (r *StaffRepo) GetByUUID(ctx context.Context, tenantID uint64, uid string) (*models.Staff, error)
- func (r *StaffRepo) GetByUniqueKeyAndStringValue(ctx context.Context, key string, value string) (*models.Staff, error)
- func (r *StaffRepo) GetByUniqueKeyAndValue(ctx context.Context, key string, value uint64) (*models.Staff, error)
- func (r *StaffRepo) GetIdByOldId(ctx context.Context, tid uint64, oid uint64) (uint64, error)
- func (r *StaffRepo) Insert(ctx context.Context, m *models.Staff) error
- func (r *StaffRepo) InsertOrUpdateById(ctx context.Context, m *models.Staff) error
- func (s *StaffRepo) ListByFilter(ctx context.Context, f *models.StaffFilter) ([]*models.Staff, error)
- func (r *StaffRepo) UpdateById(ctx context.Context, m *models.Staff) error
- type StaffTagRepo
- func (r *StaffTagRepo) CheckIfExistsById(ctx context.Context, tenantID uint64, id uint64) (bool, error)
- func (s *StaffTagRepo) CountByFilter(ctx context.Context, f *models.StaffTagFilter) (uint64, error)
- func (r *StaffTagRepo) DeleteByStaffId(ctx context.Context, tenantID uint64, staffId uint64) error
- func (r *StaffTagRepo) GetById(ctx context.Context, tenantID uint64, id uint64) (*models.StaffTag, error)
- func (r *StaffTagRepo) Insert(ctx context.Context, m *models.StaffTag) error
- func (r *StaffTagRepo) InsertOrUpdateById(ctx context.Context, m *models.StaffTag) error
- func (s *StaffTagRepo) ListByFilter(ctx context.Context, filter *models.StaffTagFilter) ([]*models.StaffTag, error)
- func (r *StaffTagRepo) UpdateById(ctx context.Context, m *models.StaffTag) error
- type TagRepo
- func (r *TagRepo) CheckIfExistsById(ctx context.Context, tenantID uint64, id uint64) (bool, error)
- func (s *TagRepo) DeleteById(ctx context.Context, tenantID uint64, id uint64) error
- func (r *TagRepo) GetById(ctx context.Context, tenantID uint64, id uint64) (*models.Tag, error)
- func (r *TagRepo) GetByUUID(ctx context.Context, tenantID uint64, uid string) (*models.Tag, error)
- func (r *TagRepo) GetIdByOldId(ctx context.Context, tenantID uint64, oldId uint64) (uint64, error)
- func (r *TagRepo) Insert(ctx context.Context, m *models.Tag) error
- func (r *TagRepo) InsertOrUpdateById(ctx context.Context, m *models.Tag) error
- func (r *TagRepo) UpdateById(ctx context.Context, m *models.Tag) error
- type TaskItemRepo
- func (r *TaskItemRepo) CheckIfExistsById(ctx context.Context, tenantID uint64, id uint64) (bool, error)
- func (s *TaskItemRepo) CountByFilter(ctx context.Context, f *models.TaskItemFilter) (uint64, error)
- func (r *TaskItemRepo) GetById(ctx context.Context, tenantID uint64, id uint64) (*models.TaskItem, error)
- func (r *TaskItemRepo) GetByUUID(ctx context.Context, tenantID uint64, uid string) (*models.TaskItem, error)
- func (r *TaskItemRepo) GetIdByOldId(ctx context.Context, tenantID uint64, oldId uint64) (uint64, error)
- func (r *TaskItemRepo) Insert(ctx context.Context, m *models.TaskItem) error
- func (r *TaskItemRepo) InsertOrUpdateById(ctx context.Context, m *models.TaskItem) error
- func (s *TaskItemRepo) ListByFilter(ctx context.Context, filter *models.TaskItemFilter) ([]*models.TaskItem, error)
- func (r *TaskItemRepo) UpdateById(ctx context.Context, m *models.TaskItem) error
- type TenantRepo
- func (r *TenantRepo) CheckIfExistsById(ctx context.Context, id uint64) (bool, error)
- func (r *TenantRepo) CheckIfExistsByName(ctx context.Context, name string) (bool, error)
- func (r *TenantRepo) CheckIfExistsBySchemaName(ctx context.Context, schemaName string) (bool, error)
- func (r *TenantRepo) GetById(ctx context.Context, id uint64) (*models.Tenant, error)
- func (r *TenantRepo) GetByName(ctx context.Context, name string) (*models.Tenant, error)
- func (r *TenantRepo) GetByOldId(ctx context.Context, oldId uint64) (*models.Tenant, error)
- func (r *TenantRepo) GetBySchemaName(ctx context.Context, schemaName string) (*models.Tenant, error)
- func (r *TenantRepo) GetSchemaNameById(ctx context.Context, id uint64) (string, error)
- func (r *TenantRepo) Insert(ctx context.Context, m *models.Tenant) error
- func (r *TenantRepo) InsertOrUpdateById(ctx context.Context, m *models.Tenant) error
- func (r *TenantRepo) InsertOrUpdateBySchemaName(ctx context.Context, m *models.Tenant) error
- func (s *TenantRepo) ListAllPKs(ctx context.Context) ([]uint64, error)
- func (r *TenantRepo) UpdateById(ctx context.Context, m *models.Tenant) error
- func (r *TenantRepo) UpdateBySchemaName(ctx context.Context, m *models.Tenant) error
- type UserRepo
- func (r *UserRepo) CheckIfExistsByEmail(ctx context.Context, tenantID uint64, email string) (bool, error)
- func (r *UserRepo) CheckIfExistsById(ctx context.Context, tenantID uint64, id uint64) (bool, error)
- func (r *UserRepo) GetByEmail(ctx context.Context, tenantID uint64, email string) (*models.User, error)
- func (r *UserRepo) GetById(ctx context.Context, tenantID uint64, id uint64) (*models.User, error)
- func (r *UserRepo) GetByOldId(ctx context.Context, oldId uint64) (*models.User, error)
- func (r *UserRepo) GetByUUID(ctx context.Context, tenantID uint64, uid string) (*models.User, error)
- func (r *UserRepo) GetIdByOldId(ctx context.Context, tenantID uint64, oldId uint64) (uint64, error)
- func (r *UserRepo) Insert(ctx context.Context, m *models.User) error
- func (r *UserRepo) InsertOrUpdateByEmail(ctx context.Context, m *models.User) error
- func (r *UserRepo) InsertOrUpdateById(ctx context.Context, m *models.User) error
- func (r *UserRepo) UpdateByEmail(ctx context.Context, m *models.User) error
- func (r *UserRepo) UpdateById(ctx context.Context, m *models.User) error
- type VehicleTypeRepo
- func (r *VehicleTypeRepo) CheckIfExistsById(ctx context.Context, tenantID uint64, id uint64) (bool, error)
- func (s *VehicleTypeRepo) DeleteById(ctx context.Context, tenantID uint64, id uint64) error
- func (r *VehicleTypeRepo) GetById(ctx context.Context, tenantID uint64, id uint64) (*models.VehicleType, error)
- func (r *VehicleTypeRepo) GetByUUID(ctx context.Context, tenantID uint64, uid string) (*models.VehicleType, error)
- func (r *VehicleTypeRepo) GetIdByOldId(ctx context.Context, tenantID uint64, oid uint64) (uint64, error)
- func (r *VehicleTypeRepo) Insert(ctx context.Context, m *models.VehicleType) error
- func (r *VehicleTypeRepo) InsertOrUpdateById(ctx context.Context, m *models.VehicleType) error
- func (r *VehicleTypeRepo) UpdateById(ctx context.Context, m *models.VehicleType) error
- type WorkOrderCommentRepo
- func (r *WorkOrderCommentRepo) CheckIfExistsById(ctx context.Context, tenantID uint64, id uint64) (bool, error)
- func (s *WorkOrderCommentRepo) CountByFilter(ctx context.Context, f *models.WorkOrderCommentFilter) (uint64, error)
- func (r *WorkOrderCommentRepo) GetById(ctx context.Context, tenantID uint64, id uint64) (*models.WorkOrderComment, error)
- func (r *WorkOrderCommentRepo) GetByOld(ctx context.Context, tenantID uint64, oldId uint64) (*models.WorkOrderComment, error)
- func (r *WorkOrderCommentRepo) GetByUUID(ctx context.Context, tenantID uint64, uid string) (*models.WorkOrderComment, error)
- func (r *WorkOrderCommentRepo) GetLatestPKByOrderId(ctx context.Context, tenantID uint64, oid uint64) (uint64, error)
- func (r *WorkOrderCommentRepo) Insert(ctx context.Context, m *models.WorkOrderComment) error
- func (r *WorkOrderCommentRepo) InsertOrUpdateById(ctx context.Context, m *models.WorkOrderComment) error
- func (s *WorkOrderCommentRepo) ListByFilter(ctx context.Context, filter *models.WorkOrderCommentFilter) ([]*models.WorkOrderComment, error)
- func (r *WorkOrderCommentRepo) UpdateById(ctx context.Context, m *models.WorkOrderComment) error
- type WorkOrderDepositRepo
- func (r *WorkOrderDepositRepo) CheckIfExistsById(ctx context.Context, tenantID uint64, id uint64) (bool, error)
- func (s *WorkOrderDepositRepo) CountByFilter(ctx context.Context, f *models.WorkOrderDepositFilter) (uint64, error)
- func (r *WorkOrderDepositRepo) DeleteById(ctx context.Context, tenantID uint64, id uint64) error
- func (r *WorkOrderDepositRepo) GetById(ctx context.Context, tenantID uint64, id uint64) (*models.WorkOrderDeposit, error)
- func (r *WorkOrderDepositRepo) GetByUUID(ctx context.Context, tenantID uint64, uid string) (*models.WorkOrderDeposit, error)
- func (r *WorkOrderDepositRepo) GetIdByOldId(ctx context.Context, tenantID uint64, oldId uint64) (uint64, error)
- func (r *WorkOrderDepositRepo) Insert(ctx context.Context, m *models.WorkOrderDeposit) error
- func (r *WorkOrderDepositRepo) InsertOrUpdateById(ctx context.Context, m *models.WorkOrderDeposit) error
- func (s *WorkOrderDepositRepo) ListByFilter(ctx context.Context, filter *models.WorkOrderDepositFilter) ([]*models.WorkOrderDeposit, error)
- func (r *WorkOrderDepositRepo) UpdateById(ctx context.Context, m *models.WorkOrderDeposit) error
- type WorkOrderInvoiceRepo
- func (r *WorkOrderInvoiceRepo) CheckIfExistsById(ctx context.Context, tenantID uint64, id uint64) (bool, error)
- func (r *WorkOrderInvoiceRepo) GetById(ctx context.Context, tenantID uint64, id uint64) (*models.WorkOrderInvoice, error)
- func (r *WorkOrderInvoiceRepo) GetByOld(ctx context.Context, tenantID uint64, oldId uint64) (*models.WorkOrderInvoice, error)
- func (r *WorkOrderInvoiceRepo) GetByOrderID(ctx context.Context, tenantID uint64, orderID uint64) (*models.WorkOrderInvoice, error)
- func (r *WorkOrderInvoiceRepo) Insert(ctx context.Context, m *models.WorkOrderInvoice) error
- func (r *WorkOrderInvoiceRepo) InsertOrUpdateById(ctx context.Context, m *models.WorkOrderInvoice) error
- func (r *WorkOrderInvoiceRepo) UpdateById(ctx context.Context, m *models.WorkOrderInvoice) error
- type WorkOrderRepo
- func (r *WorkOrderRepo) CheckIfExistsById(ctx context.Context, tenantID uint64, id uint64) (bool, error)
- func (r *WorkOrderRepo) GetById(ctx context.Context, tenantID uint64, id uint64) (*models.WorkOrder, error)
- func (r *WorkOrderRepo) GetByOngoingWorkOrderId(ctx context.Context, tenantID uint64, ongoingWorkOrderId uint64) (*models.WorkOrder, error)
- func (r *WorkOrderRepo) GetByUUID(ctx context.Context, tenantID uint64, uid string) (*models.WorkOrder, error)
- func (r *WorkOrderRepo) GetIdByOldId(ctx context.Context, tid uint64, oid uint64) (uint64, error)
- func (r *WorkOrderRepo) Insert(ctx context.Context, m *models.WorkOrder) error
- func (r *WorkOrderRepo) InsertOrUpdateById(ctx context.Context, m *models.WorkOrder) error
- func (s *WorkOrderRepo) ListByFilter(ctx context.Context, f *models.WorkOrderFilter) ([]*models.WorkOrder, error)
- func (r *WorkOrderRepo) UpdateById(ctx context.Context, m *models.WorkOrder) error
- type WorkOrderServiceFeeRepo
- func (r *WorkOrderServiceFeeRepo) CheckIfExistsById(ctx context.Context, tenantID uint64, id uint64) (bool, error)
- func (s *WorkOrderServiceFeeRepo) DeleteById(ctx context.Context, tenantID uint64, id uint64) error
- func (r *WorkOrderServiceFeeRepo) GetById(ctx context.Context, tenantID uint64, id uint64) (*models.WorkOrderServiceFee, error)
- func (r *WorkOrderServiceFeeRepo) GetByUUID(ctx context.Context, tenantID uint64, uid string) (*models.WorkOrderServiceFee, error)
- func (r *WorkOrderServiceFeeRepo) GetIdByOldId(ctx context.Context, tenantID uint64, oid uint64) (uint64, error)
- func (r *WorkOrderServiceFeeRepo) Insert(ctx context.Context, m *models.WorkOrderServiceFee) error
- func (r *WorkOrderServiceFeeRepo) InsertOrUpdateById(ctx context.Context, m *models.WorkOrderServiceFee) error
- func (r *WorkOrderServiceFeeRepo) UpdateById(ctx context.Context, m *models.WorkOrderServiceFee) error
- type WorkOrderSkillSetRepo
- func (r *WorkOrderSkillSetRepo) CheckIfExistsById(ctx context.Context, tenantID uint64, id uint64) (bool, error)
- func (s *WorkOrderSkillSetRepo) CountByFilter(ctx context.Context, f *models.WorkOrderSkillSetFilter) (uint64, error)
- func (r *WorkOrderSkillSetRepo) DeleteByOrderId(ctx context.Context, tenantID uint64, orderId uint64) error
- func (r *WorkOrderSkillSetRepo) GetById(ctx context.Context, tenantID uint64, id uint64) (*models.WorkOrderSkillSet, error)
- func (r *WorkOrderSkillSetRepo) GetByOld(ctx context.Context, tenantID uint64, oldId uint64) (*models.WorkOrderSkillSet, error)
- func (r *WorkOrderSkillSetRepo) GetByUUID(ctx context.Context, tenantID uint64, uid string) (*models.WorkOrderSkillSet, error)
- func (r *WorkOrderSkillSetRepo) Insert(ctx context.Context, m *models.WorkOrderSkillSet) error
- func (r *WorkOrderSkillSetRepo) InsertOrUpdateById(ctx context.Context, m *models.WorkOrderSkillSet) error
- func (s *WorkOrderSkillSetRepo) ListByFilter(ctx context.Context, filter *models.WorkOrderSkillSetFilter) ([]*models.WorkOrderSkillSet, error)
- func (s *WorkOrderSkillSetRepo) ListPKsByFilter(ctx context.Context, filter *models.WorkOrderSkillSetFilter) ([]uint64, error)
- func (s *WorkOrderSkillSetRepo) ListValuesFromColumnAndByFilter(ctx context.Context, columnName string, filter *models.WorkOrderSkillSetFilter) ([]uint64, error)
- func (r *WorkOrderSkillSetRepo) UpdateById(ctx context.Context, m *models.WorkOrderSkillSet) error
- type WorkOrderTagRepo
- func (r *WorkOrderTagRepo) CheckIfExistsById(ctx context.Context, tenantID uint64, id uint64) (bool, error)
- func (s *WorkOrderTagRepo) CountByFilter(ctx context.Context, f *models.WorkOrderTagFilter) (uint64, error)
- func (r *WorkOrderTagRepo) DeleteByOrderId(ctx context.Context, tenantID uint64, orderId uint64) error
- func (r *WorkOrderTagRepo) GetById(ctx context.Context, tenantID uint64, id uint64) (*models.WorkOrderTag, error)
- func (r *WorkOrderTagRepo) GetByOld(ctx context.Context, tenantID uint64, oldId uint64) (*models.WorkOrderTag, error)
- func (r *WorkOrderTagRepo) GetByUUID(ctx context.Context, tenantID uint64, uid string) (*models.WorkOrderTag, error)
- func (r *WorkOrderTagRepo) Insert(ctx context.Context, m *models.WorkOrderTag) error
- func (r *WorkOrderTagRepo) InsertOrUpdateById(ctx context.Context, m *models.WorkOrderTag) error
- func (s *WorkOrderTagRepo) ListByFilter(ctx context.Context, filter *models.WorkOrderTagFilter) ([]*models.WorkOrderTag, error)
- func (r *WorkOrderTagRepo) UpdateById(ctx context.Context, m *models.WorkOrderTag) error
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 (*ActivitySheetItemRepo) CountByFilter ¶
func (s *ActivitySheetItemRepo) CountByFilter(ctx context.Context, f *models.ActivitySheetItemFilter) (uint64, error)
func (*ActivitySheetItemRepo) GetById ¶
func (r *ActivitySheetItemRepo) GetById(ctx context.Context, tenantID uint64, id uint64) (*models.ActivitySheetItem, error)
func (*ActivitySheetItemRepo) GetByPK ¶
func (r *ActivitySheetItemRepo) GetByPK(ctx context.Context, pk *models.ActivitySheetItemPK) (*models.ActivitySheetItem, error)
func (*ActivitySheetItemRepo) GetByUUID ¶
func (r *ActivitySheetItemRepo) GetByUUID(ctx context.Context, tenantID uint64, uid string) (*models.ActivitySheetItem, error)
func (*ActivitySheetItemRepo) GetIdByOldId ¶
func (*ActivitySheetItemRepo) Insert ¶
func (r *ActivitySheetItemRepo) Insert(ctx context.Context, m *models.ActivitySheetItem) error
func (*ActivitySheetItemRepo) InsertOrUpdateById ¶
func (r *ActivitySheetItemRepo) InsertOrUpdateById(ctx context.Context, m *models.ActivitySheetItem) error
func (*ActivitySheetItemRepo) ListByFilter ¶
func (s *ActivitySheetItemRepo) ListByFilter(ctx context.Context, filter *models.ActivitySheetItemFilter) ([]*models.ActivitySheetItem, error)
func (*ActivitySheetItemRepo) ListValuesFromColumnAndByFilter ¶
func (s *ActivitySheetItemRepo) ListValuesFromColumnAndByFilter(ctx context.Context, columnName string, filter *models.ActivitySheetItemFilter) ([]uint64, error)
func (*ActivitySheetItemRepo) UpdateById ¶
func (r *ActivitySheetItemRepo) UpdateById(ctx context.Context, m *models.ActivitySheetItem) error
type AssociateAwayLogRepo ¶
type AssociateAwayLogRepo struct {
// contains filtered or unexported fields
}
func NewAssociateAwayLogRepo ¶
func NewAssociateAwayLogRepo(db *sql.DB) *AssociateAwayLogRepo
func (*AssociateAwayLogRepo) CheckIfExistsById ¶
func (*AssociateAwayLogRepo) CountByFilter ¶
func (s *AssociateAwayLogRepo) CountByFilter(ctx context.Context, f *models.AssociateAwayLogFilter) (uint64, error)
func (*AssociateAwayLogRepo) DeleteById ¶
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 (r *AssociateAwayLogRepo) Insert(ctx context.Context, m *models.AssociateAwayLog) error
func (*AssociateAwayLogRepo) InsertOrUpdateById ¶
func (r *AssociateAwayLogRepo) InsertOrUpdateById(ctx context.Context, m *models.AssociateAwayLog) error
func (*AssociateAwayLogRepo) ListByFilter ¶
func (s *AssociateAwayLogRepo) ListByFilter(ctx context.Context, f *models.AssociateAwayLogFilter) ([]*models.AssociateAwayLog, error)
func (*AssociateAwayLogRepo) UpdateById ¶
func (r *AssociateAwayLogRepo) UpdateById(ctx context.Context, m *models.AssociateAwayLog) error
type AssociateCommentRepo ¶
type AssociateCommentRepo struct {
// contains filtered or unexported fields
}
func NewAssociateCommentRepo ¶
func NewAssociateCommentRepo(db *sql.DB) *AssociateCommentRepo
func (*AssociateCommentRepo) CheckIfExistsById ¶
func (*AssociateCommentRepo) CountByFilter ¶
func (s *AssociateCommentRepo) CountByFilter(ctx context.Context, f *models.AssociateCommentFilter) (uint64, error)
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 (r *AssociateCommentRepo) Insert(ctx context.Context, m *models.AssociateComment) error
func (*AssociateCommentRepo) InsertOrUpdateById ¶
func (r *AssociateCommentRepo) InsertOrUpdateById(ctx context.Context, m *models.AssociateComment) error
func (*AssociateCommentRepo) ListByFilter ¶
func (s *AssociateCommentRepo) ListByFilter(ctx context.Context, filter *models.AssociateCommentFilter) ([]*models.AssociateComment, error)
func (*AssociateCommentRepo) UpdateById ¶
func (r *AssociateCommentRepo) UpdateById(ctx context.Context, m *models.AssociateComment) error
type AssociateInsuranceRequirementRepo ¶
type AssociateInsuranceRequirementRepo struct {
// contains filtered or unexported fields
}
func NewAssociateInsuranceRequirementRepo ¶
func NewAssociateInsuranceRequirementRepo(db *sql.DB) *AssociateInsuranceRequirementRepo
func (*AssociateInsuranceRequirementRepo) CheckIfExistsById ¶
func (*AssociateInsuranceRequirementRepo) CountByFilter ¶
func (s *AssociateInsuranceRequirementRepo) CountByFilter(ctx context.Context, f *models.AssociateInsuranceRequirementFilter) (uint64, error)
func (*AssociateInsuranceRequirementRepo) DeleteByAssociateId ¶
func (*AssociateInsuranceRequirementRepo) GetById ¶
func (r *AssociateInsuranceRequirementRepo) GetById(ctx context.Context, tenantID uint64, id uint64) (*models.AssociateInsuranceRequirement, error)
func (*AssociateInsuranceRequirementRepo) GetIdByOldId ¶
func (*AssociateInsuranceRequirementRepo) Insert ¶
func (r *AssociateInsuranceRequirementRepo) Insert(ctx context.Context, m *models.AssociateInsuranceRequirement) error
func (*AssociateInsuranceRequirementRepo) InsertOrUpdateById ¶
func (r *AssociateInsuranceRequirementRepo) InsertOrUpdateById(ctx context.Context, m *models.AssociateInsuranceRequirement) error
func (*AssociateInsuranceRequirementRepo) ListByFilter ¶
func (s *AssociateInsuranceRequirementRepo) ListByFilter(ctx context.Context, filter *models.AssociateInsuranceRequirementFilter) ([]*models.AssociateInsuranceRequirement, error)
func (*AssociateInsuranceRequirementRepo) ListValuesFromColumnAndByFilter ¶
func (s *AssociateInsuranceRequirementRepo) ListValuesFromColumnAndByFilter(ctx context.Context, column string, filter *models.AssociateInsuranceRequirementFilter) ([]uint64, error)
func (*AssociateInsuranceRequirementRepo) UpdateById ¶
func (r *AssociateInsuranceRequirementRepo) UpdateById(ctx context.Context, m *models.AssociateInsuranceRequirement) error
type AssociateRepo ¶
type AssociateRepo struct {
// contains filtered or unexported fields
}
func NewAssociateRepo ¶
func NewAssociateRepo(db *sql.DB) *AssociateRepo
func (*AssociateRepo) CheckIfExistsByEmail ¶
func (*AssociateRepo) CheckIfExistsById ¶
func (*AssociateRepo) DeleteById ¶
func (*AssociateRepo) GetIdByOldId ¶
func (*AssociateRepo) InsertOrUpdateById ¶
func (*AssociateRepo) ListByFilter ¶
func (s *AssociateRepo) ListByFilter(ctx context.Context, f *models.AssociateFilter) ([]*models.Associate, error)
func (*AssociateRepo) UpdateById ¶
type AssociateSkillSetRepo ¶
type AssociateSkillSetRepo struct {
// contains filtered or unexported fields
}
func NewAssociateSkillSetRepo ¶
func NewAssociateSkillSetRepo(db *sql.DB) *AssociateSkillSetRepo
func (*AssociateSkillSetRepo) AssociatePKsBySkillSetPKs ¶
func (*AssociateSkillSetRepo) CheckIfExistsById ¶
func (*AssociateSkillSetRepo) CountByFilter ¶
func (s *AssociateSkillSetRepo) CountByFilter(ctx context.Context, f *models.AssociateSkillSetFilter) (uint64, error)
func (*AssociateSkillSetRepo) DeleteByAssociateId ¶
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 (r *AssociateSkillSetRepo) Insert(ctx context.Context, m *models.AssociateSkillSet) error
func (*AssociateSkillSetRepo) InsertOrUpdateById ¶
func (r *AssociateSkillSetRepo) InsertOrUpdateById(ctx context.Context, m *models.AssociateSkillSet) error
func (*AssociateSkillSetRepo) ListByFilter ¶
func (s *AssociateSkillSetRepo) ListByFilter(ctx context.Context, filter *models.AssociateSkillSetFilter) ([]*models.AssociateSkillSet, error)
func (*AssociateSkillSetRepo) ListValuesFromColumnAndByFilter ¶
func (s *AssociateSkillSetRepo) ListValuesFromColumnAndByFilter(ctx context.Context, column string, filter *models.AssociateSkillSetFilter) ([]uint64, error)
func (*AssociateSkillSetRepo) UpdateById ¶
func (r *AssociateSkillSetRepo) UpdateById(ctx context.Context, m *models.AssociateSkillSet) error
type AssociateTagRepo ¶
type AssociateTagRepo struct {
// contains filtered or unexported fields
}
func NewAssociateTagRepo ¶
func NewAssociateTagRepo(db *sql.DB) *AssociateTagRepo
func (*AssociateTagRepo) AssociatePKsByTagPKs ¶
func (*AssociateTagRepo) CheckIfExistsById ¶
func (*AssociateTagRepo) CountByFilter ¶
func (s *AssociateTagRepo) CountByFilter(ctx context.Context, f *models.AssociateTagFilter) (uint64, error)
func (*AssociateTagRepo) DeleteByAssociateId ¶
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 (r *AssociateTagRepo) Insert(ctx context.Context, m *models.AssociateTag) error
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 (*AssociateVehicleTypeRepo) CountByFilter ¶
func (s *AssociateVehicleTypeRepo) CountByFilter(ctx context.Context, f *models.AssociateVehicleTypeFilter) (uint64, error)
func (*AssociateVehicleTypeRepo) DeleteByAssociateId ¶
func (*AssociateVehicleTypeRepo) GetById ¶
func (r *AssociateVehicleTypeRepo) GetById(ctx context.Context, tenantID uint64, id uint64) (*models.AssociateVehicleType, error)
func (*AssociateVehicleTypeRepo) GetByOld ¶
func (r *AssociateVehicleTypeRepo) GetByOld(ctx context.Context, tenantID uint64, oldId uint64) (*models.AssociateVehicleType, error)
func (*AssociateVehicleTypeRepo) Insert ¶
func (r *AssociateVehicleTypeRepo) Insert(ctx context.Context, m *models.AssociateVehicleType) error
func (*AssociateVehicleTypeRepo) InsertOrUpdateById ¶
func (r *AssociateVehicleTypeRepo) InsertOrUpdateById(ctx context.Context, m *models.AssociateVehicleType) error
func (*AssociateVehicleTypeRepo) ListByFilter ¶
func (s *AssociateVehicleTypeRepo) ListByFilter(ctx context.Context, filter *models.AssociateVehicleTypeFilter) ([]*models.AssociateVehicleType, error)
func (*AssociateVehicleTypeRepo) UpdateById ¶
func (r *AssociateVehicleTypeRepo) UpdateById(ctx context.Context, m *models.AssociateVehicleType) error
type BulletinBoardItemRepo ¶
type BulletinBoardItemRepo struct {
// contains filtered or unexported fields
}
func NewBulletinBoardItemRepo ¶
func NewBulletinBoardItemRepo(db *sql.DB) *BulletinBoardItemRepo
func (*BulletinBoardItemRepo) CheckIfExistsById ¶
func (*BulletinBoardItemRepo) CountByFilter ¶
func (s *BulletinBoardItemRepo) CountByFilter(ctx context.Context, f *models.BulletinBoardItemFilter) (uint64, error)
func (*BulletinBoardItemRepo) DeleteById ¶
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 (r *BulletinBoardItemRepo) Insert(ctx context.Context, m *models.BulletinBoardItem) error
func (*BulletinBoardItemRepo) InsertOrUpdateById ¶
func (r *BulletinBoardItemRepo) InsertOrUpdateById(ctx context.Context, m *models.BulletinBoardItem) error
func (*BulletinBoardItemRepo) ListByFilter ¶
func (s *BulletinBoardItemRepo) ListByFilter(ctx context.Context, filter *models.BulletinBoardItemFilter) ([]*models.BulletinBoardItem, error)
func (*BulletinBoardItemRepo) UpdateById ¶
func (r *BulletinBoardItemRepo) UpdateById(ctx context.Context, m *models.BulletinBoardItem) error
type CommentRepo ¶
type CommentRepo struct {
// contains filtered or unexported fields
}
func NewCommentRepo ¶
func NewCommentRepo(db *sql.DB) *CommentRepo
func (*CommentRepo) CheckIfExistsById ¶
func (*CommentRepo) GetIdByOldId ¶
func (*CommentRepo) InsertOrUpdateById ¶
func (*CommentRepo) UpdateById ¶
type CustomerCommentRepo ¶
type CustomerCommentRepo struct {
// contains filtered or unexported fields
}
func NewCustomerCommentRepo ¶
func NewCustomerCommentRepo(db *sql.DB) *CustomerCommentRepo
func (*CustomerCommentRepo) CheckIfExistsById ¶
func (*CustomerCommentRepo) CountByFilter ¶
func (s *CustomerCommentRepo) CountByFilter(ctx context.Context, f *models.CustomerCommentFilter) (uint64, error)
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 (r *CustomerCommentRepo) Insert(ctx context.Context, m *models.CustomerComment) error
func (*CustomerCommentRepo) InsertOrUpdateById ¶
func (r *CustomerCommentRepo) InsertOrUpdateById(ctx context.Context, m *models.CustomerComment) error
func (*CustomerCommentRepo) ListByFilter ¶
func (s *CustomerCommentRepo) ListByFilter(ctx context.Context, filter *models.CustomerCommentFilter) ([]*models.CustomerComment, error)
func (*CustomerCommentRepo) UpdateById ¶
func (r *CustomerCommentRepo) UpdateById(ctx context.Context, m *models.CustomerComment) error
type CustomerRepo ¶
type CustomerRepo struct {
// contains filtered or unexported fields
}
func NewCustomerRepo ¶
func NewCustomerRepo(db *sql.DB) *CustomerRepo
func (*CustomerRepo) CheckIfExistsByEmail ¶
func (*CustomerRepo) CheckIfExistsById ¶
func (*CustomerRepo) DeleteById ¶
func (*CustomerRepo) GetByEmail ¶
func (*CustomerRepo) GetIdByOldId ¶
func (*CustomerRepo) InsertOrUpdateById ¶
func (*CustomerRepo) ListByFilter ¶
func (s *CustomerRepo) ListByFilter(ctx context.Context, f *models.CustomerFilter) ([]*models.Customer, error)
func (*CustomerRepo) UpdateById ¶
type CustomerTagRepo ¶
type CustomerTagRepo struct {
// contains filtered or unexported fields
}
func NewCustomerTagRepo ¶
func NewCustomerTagRepo(db *sql.DB) *CustomerTagRepo
func (*CustomerTagRepo) CheckIfExistsById ¶
func (*CustomerTagRepo) CountByFilter ¶
func (s *CustomerTagRepo) CountByFilter(ctx context.Context, f *models.CustomerTagFilter) (uint64, error)
func (*CustomerTagRepo) DeleteByCustomerId ¶
func (*CustomerTagRepo) GetById ¶
func (r *CustomerTagRepo) GetById(ctx context.Context, tenantID uint64, id uint64) (*models.CustomerTag, error)
func (*CustomerTagRepo) Insert ¶
func (r *CustomerTagRepo) Insert(ctx context.Context, m *models.CustomerTag) error
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 (*HowHearAboutUsItemRepo) DeleteById ¶
func (*HowHearAboutUsItemRepo) GetById ¶
func (r *HowHearAboutUsItemRepo) GetById(ctx context.Context, tenantID uint64, id uint64) (*models.HowHearAboutUsItem, error)
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 (r *HowHearAboutUsItemRepo) Insert(ctx context.Context, m *models.HowHearAboutUsItem) error
func (*HowHearAboutUsItemRepo) InsertOrUpdateById ¶
func (r *HowHearAboutUsItemRepo) InsertOrUpdateById(ctx context.Context, m *models.HowHearAboutUsItem) error
func (*HowHearAboutUsItemRepo) UpdateById ¶
func (r *HowHearAboutUsItemRepo) UpdateById(ctx context.Context, m *models.HowHearAboutUsItem) error
type InsuranceRequirementRepo ¶
type InsuranceRequirementRepo struct {
// contains filtered or unexported fields
}
func NewInsuranceRequirementRepo ¶
func NewInsuranceRequirementRepo(db *sql.DB) *InsuranceRequirementRepo
func (*InsuranceRequirementRepo) CheckIfExistsById ¶
func (*InsuranceRequirementRepo) CountByFilter ¶
func (s *InsuranceRequirementRepo) CountByFilter(ctx context.Context, f *models.InsuranceRequirementFilter) (uint64, error)
func (*InsuranceRequirementRepo) DeleteById ¶
func (*InsuranceRequirementRepo) GetById ¶
func (r *InsuranceRequirementRepo) GetById(ctx context.Context, tenantID uint64, id uint64) (*models.InsuranceRequirement, error)
func (*InsuranceRequirementRepo) GetByUUID ¶
func (r *InsuranceRequirementRepo) GetByUUID(ctx context.Context, tenantID uint64, uid string) (*models.InsuranceRequirement, error)
func (*InsuranceRequirementRepo) GetIdByTenantIdAndOldId ¶
func (*InsuranceRequirementRepo) Insert ¶
func (r *InsuranceRequirementRepo) Insert(ctx context.Context, m *models.InsuranceRequirement) error
func (*InsuranceRequirementRepo) InsertOrUpdateById ¶
func (r *InsuranceRequirementRepo) InsertOrUpdateById(ctx context.Context, m *models.InsuranceRequirement) error
func (*InsuranceRequirementRepo) ListByFilter ¶
func (s *InsuranceRequirementRepo) ListByFilter(ctx context.Context, f *models.InsuranceRequirementFilter) ([]*models.InsuranceRequirement, error)
func (*InsuranceRequirementRepo) UpdateById ¶
func (r *InsuranceRequirementRepo) UpdateById(ctx context.Context, m *models.InsuranceRequirement) error
type LiteActivitySheetItemRepo ¶
type LiteActivitySheetItemRepo struct {
// contains filtered or unexported fields
}
func NewLiteActivitySheetItemRepo ¶
func NewLiteActivitySheetItemRepo(db *sql.DB) *LiteActivitySheetItemRepo
func (*LiteActivitySheetItemRepo) CountByFilter ¶
func (s *LiteActivitySheetItemRepo) CountByFilter(ctx context.Context, f *models.LiteActivitySheetItemFilter) (uint64, error)
func (*LiteActivitySheetItemRepo) ListByFilter ¶
func (s *LiteActivitySheetItemRepo) ListByFilter(ctx context.Context, f *models.LiteActivitySheetItemFilter) ([]*models.LiteActivitySheetItem, error)
type LiteAssociateAwayLogRepo ¶
type LiteAssociateAwayLogRepo struct {
// contains filtered or unexported fields
}
func NewLiteAssociateAwayLogRepo ¶
func NewLiteAssociateAwayLogRepo(db *sql.DB) *LiteAssociateAwayLogRepo
func (*LiteAssociateAwayLogRepo) CountByFilter ¶
func (s *LiteAssociateAwayLogRepo) CountByFilter(ctx context.Context, f *models.LiteAssociateAwayLogFilter) (uint64, error)
func (*LiteAssociateAwayLogRepo) ListByFilter ¶
func (s *LiteAssociateAwayLogRepo) ListByFilter(ctx context.Context, filter *models.LiteAssociateAwayLogFilter) ([]*models.LiteAssociateAwayLog, error)
type LiteAssociateRepo ¶
type LiteAssociateRepo struct {
// contains filtered or unexported fields
}
func NewLiteAssociateRepo ¶
func NewLiteAssociateRepo(db *sql.DB) *LiteAssociateRepo
func (*LiteAssociateRepo) CountByFilter ¶
func (s *LiteAssociateRepo) CountByFilter(ctx context.Context, f *models.LiteAssociateFilter) (uint64, error)
func (*LiteAssociateRepo) ListByFilter ¶
func (s *LiteAssociateRepo) ListByFilter(ctx context.Context, f *models.LiteAssociateFilter) ([]*models.LiteAssociate, error)
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 (s *LiteBulletinBoardItemRepo) CountByFilter(ctx context.Context, f *models.LiteBulletinBoardItemFilter) (uint64, error)
func (*LiteBulletinBoardItemRepo) ListByFilter ¶
func (s *LiteBulletinBoardItemRepo) ListByFilter(ctx context.Context, filter *models.LiteBulletinBoardItemFilter) ([]*models.LiteBulletinBoardItem, error)
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 ¶
func (s *LiteCustomerRepo) ListByFilter(ctx context.Context, f *models.LiteCustomerFilter) ([]*models.LiteCustomer, error)
type LiteDeactivatedCustomerRepo ¶
type LiteDeactivatedCustomerRepo struct {
// contains filtered or unexported fields
}
func NewLiteDeactivatedCustomerRepo ¶
func NewLiteDeactivatedCustomerRepo(db *sql.DB) *LiteDeactivatedCustomerRepo
func (*LiteDeactivatedCustomerRepo) CountByFilter ¶
func (s *LiteDeactivatedCustomerRepo) CountByFilter(ctx context.Context, f *models.LiteDeactivatedCustomerFilter) (uint64, error)
func (*LiteDeactivatedCustomerRepo) ListByFilter ¶
func (s *LiteDeactivatedCustomerRepo) ListByFilter(ctx context.Context, filter *models.LiteDeactivatedCustomerFilter) ([]*models.LiteDeactivatedCustomer, error)
type LiteFinancialRepo ¶
type LiteFinancialRepo struct {
// contains filtered or unexported fields
}
func NewLiteFinancialRepo ¶
func NewLiteFinancialRepo(db *sql.DB) *LiteFinancialRepo
func (*LiteFinancialRepo) CountByFilter ¶
func (s *LiteFinancialRepo) CountByFilter(ctx context.Context, f *models.LiteFinancialFilter) (uint64, error)
func (*LiteFinancialRepo) ListByFilter ¶
func (s *LiteFinancialRepo) ListByFilter(ctx context.Context, f *models.LiteFinancialFilter) ([]*models.LiteFinancial, error)
type LiteHowHearAboutUsItemRepo ¶
type LiteHowHearAboutUsItemRepo struct {
// contains filtered or unexported fields
}
func NewLiteHowHearAboutUsItemRepo ¶
func NewLiteHowHearAboutUsItemRepo(db *sql.DB) *LiteHowHearAboutUsItemRepo
func (*LiteHowHearAboutUsItemRepo) CountByFilter ¶
func (s *LiteHowHearAboutUsItemRepo) CountByFilter(ctx context.Context, f *models.LiteHowHearAboutUsItemFilter) (uint64, error)
func (*LiteHowHearAboutUsItemRepo) ListByFilter ¶
func (s *LiteHowHearAboutUsItemRepo) ListByFilter(ctx context.Context, filter *models.LiteHowHearAboutUsItemFilter) ([]*models.LiteHowHearAboutUsItem, error)
type LiteInsuranceRequirementRepo ¶
type LiteInsuranceRequirementRepo struct {
// contains filtered or unexported fields
}
func NewLiteInsuranceRequirementRepo ¶
func NewLiteInsuranceRequirementRepo(db *sql.DB) *LiteInsuranceRequirementRepo
func (*LiteInsuranceRequirementRepo) CountByFilter ¶
func (s *LiteInsuranceRequirementRepo) CountByFilter(ctx context.Context, f *models.LiteInsuranceRequirementFilter) (uint64, error)
func (*LiteInsuranceRequirementRepo) ListByFilter ¶
func (s *LiteInsuranceRequirementRepo) ListByFilter(ctx context.Context, filter *models.LiteInsuranceRequirementFilter) ([]*models.LiteInsuranceRequirement, error)
type LiteOngoingWorkOrderRepo ¶
type LiteOngoingWorkOrderRepo struct {
// contains filtered or unexported fields
}
func NewLiteOngoingWorkOrderRepo ¶
func NewLiteOngoingWorkOrderRepo(db *sql.DB) *LiteOngoingWorkOrderRepo
func (*LiteOngoingWorkOrderRepo) CountByFilter ¶
func (s *LiteOngoingWorkOrderRepo) CountByFilter(ctx context.Context, f *models.LiteOngoingWorkOrderFilter) (uint64, error)
func (*LiteOngoingWorkOrderRepo) ListByFilter ¶
func (s *LiteOngoingWorkOrderRepo) ListByFilter(ctx context.Context, f *models.LiteOngoingWorkOrderFilter) ([]*models.LiteOngoingWorkOrder, error)
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 ¶
func (s *LitePartnerRepo) ListByFilter(ctx context.Context, f *models.LitePartnerFilter) ([]*models.LitePartner, error)
type LitePrivateFileRepo ¶
type LitePrivateFileRepo struct {
// contains filtered or unexported fields
}
func NewLitePrivateFileRepo ¶
func NewLitePrivateFileRepo(db *sql.DB) *LitePrivateFileRepo
func (*LitePrivateFileRepo) CountByFilter ¶
func (s *LitePrivateFileRepo) CountByFilter(ctx context.Context, f *models.LitePrivateFileFilter) (uint64, error)
func (*LitePrivateFileRepo) ListByFilter ¶
func (s *LitePrivateFileRepo) ListByFilter(ctx context.Context, filter *models.LitePrivateFileFilter) ([]*models.LitePrivateFile, error)
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 ¶
func (s *LiteTaskItemRepo) ListByFilter(ctx context.Context, f *models.LiteTaskItemFilter) ([]*models.LiteTaskItem, error)
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 (s *LiteVehicleTypeRepo) CountByFilter(ctx context.Context, f *models.LiteVehicleTypeFilter) (uint64, error)
func (*LiteVehicleTypeRepo) ListByFilter ¶
func (s *LiteVehicleTypeRepo) ListByFilter(ctx context.Context, filter *models.LiteVehicleTypeFilter) ([]*models.LiteVehicleType, error)
type LiteWorkOrderDepositRepo ¶
type LiteWorkOrderDepositRepo struct {
// contains filtered or unexported fields
}
func NewLiteWorkOrderDepositRepo ¶
func NewLiteWorkOrderDepositRepo(db *sql.DB) *LiteWorkOrderDepositRepo
func (*LiteWorkOrderDepositRepo) CountByFilter ¶
func (s *LiteWorkOrderDepositRepo) CountByFilter(ctx context.Context, f *models.LiteWorkOrderDepositFilter) (uint64, error)
func (*LiteWorkOrderDepositRepo) ListByFilter ¶
func (s *LiteWorkOrderDepositRepo) ListByFilter(ctx context.Context, filter *models.LiteWorkOrderDepositFilter) ([]*models.LiteWorkOrderDeposit, error)
type LiteWorkOrderRepo ¶
type LiteWorkOrderRepo struct {
// contains filtered or unexported fields
}
func NewLiteWorkOrderRepo ¶
func NewLiteWorkOrderRepo(db *sql.DB) *LiteWorkOrderRepo
func (*LiteWorkOrderRepo) CountByFilter ¶
func (s *LiteWorkOrderRepo) CountByFilter(ctx context.Context, f *models.LiteWorkOrderFilter) (uint64, error)
func (*LiteWorkOrderRepo) ListByFilter ¶
func (s *LiteWorkOrderRepo) ListByFilter(ctx context.Context, f *models.LiteWorkOrderFilter) ([]*models.LiteWorkOrder, error)
type LiteWorkOrderServiceFeeRepo ¶
type LiteWorkOrderServiceFeeRepo struct {
// contains filtered or unexported fields
}
func NewLiteWorkOrderServiceFeeRepo ¶
func NewLiteWorkOrderServiceFeeRepo(db *sql.DB) *LiteWorkOrderServiceFeeRepo
func (*LiteWorkOrderServiceFeeRepo) CountByFilter ¶
func (s *LiteWorkOrderServiceFeeRepo) CountByFilter(ctx context.Context, f *models.LiteWorkOrderServiceFeeFilter) (uint64, error)
func (*LiteWorkOrderServiceFeeRepo) ListByFilter ¶
func (s *LiteWorkOrderServiceFeeRepo) ListByFilter(ctx context.Context, filter *models.LiteWorkOrderServiceFeeFilter) ([]*models.LiteWorkOrderServiceFee, error)
type OngoingWorkOrderCommentRepo ¶
type OngoingWorkOrderCommentRepo struct {
// contains filtered or unexported fields
}
func NewOngoingWorkOrderCommentRepo ¶
func NewOngoingWorkOrderCommentRepo(db *sql.DB) *OngoingWorkOrderCommentRepo
func (*OngoingWorkOrderCommentRepo) CheckIfExistsById ¶
func (*OngoingWorkOrderCommentRepo) CountByFilter ¶
func (s *OngoingWorkOrderCommentRepo) CountByFilter(ctx context.Context, f *models.OngoingWorkOrderCommentFilter) (uint64, error)
func (*OngoingWorkOrderCommentRepo) GetById ¶
func (r *OngoingWorkOrderCommentRepo) GetById(ctx context.Context, tenantID uint64, id uint64) (*models.OngoingWorkOrderComment, error)
func (*OngoingWorkOrderCommentRepo) GetByOld ¶
func (r *OngoingWorkOrderCommentRepo) GetByOld(ctx context.Context, tenantID uint64, oldId uint64) (*models.OngoingWorkOrderComment, error)
func (*OngoingWorkOrderCommentRepo) GetByUUID ¶
func (r *OngoingWorkOrderCommentRepo) GetByUUID(ctx context.Context, tenantID uint64, uid string) (*models.OngoingWorkOrderComment, error)
func (*OngoingWorkOrderCommentRepo) Insert ¶
func (r *OngoingWorkOrderCommentRepo) Insert(ctx context.Context, m *models.OngoingWorkOrderComment) error
func (*OngoingWorkOrderCommentRepo) InsertOrUpdateById ¶
func (r *OngoingWorkOrderCommentRepo) InsertOrUpdateById(ctx context.Context, m *models.OngoingWorkOrderComment) error
func (*OngoingWorkOrderCommentRepo) ListByFilter ¶
func (s *OngoingWorkOrderCommentRepo) ListByFilter(ctx context.Context, filter *models.OngoingWorkOrderCommentFilter) ([]*models.OngoingWorkOrderComment, error)
func (*OngoingWorkOrderCommentRepo) UpdateById ¶
func (r *OngoingWorkOrderCommentRepo) UpdateById(ctx context.Context, m *models.OngoingWorkOrderComment) error
type OngoingWorkOrderRepo ¶
type OngoingWorkOrderRepo struct {
// contains filtered or unexported fields
}
func NewOngoingWorkOrderRepo ¶
func NewOngoingWorkOrderRepo(db *sql.DB) *OngoingWorkOrderRepo
func (*OngoingWorkOrderRepo) CheckIfExistsById ¶
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 (*OngoingWorkOrderRepo) Insert ¶
func (r *OngoingWorkOrderRepo) Insert(ctx context.Context, m *models.OngoingWorkOrder) error
func (*OngoingWorkOrderRepo) InsertOrUpdateById ¶
func (r *OngoingWorkOrderRepo) InsertOrUpdateById(ctx context.Context, m *models.OngoingWorkOrder) error
func (*OngoingWorkOrderRepo) ListByFilter ¶
func (s *OngoingWorkOrderRepo) ListByFilter(ctx context.Context, filter *models.OngoingWorkOrderFilter) ([]*models.OngoingWorkOrder, error)
func (*OngoingWorkOrderRepo) UpdateById ¶
func (r *OngoingWorkOrderRepo) UpdateById(ctx context.Context, m *models.OngoingWorkOrder) error
type PartnerCommentRepo ¶
type PartnerCommentRepo struct {
// contains filtered or unexported fields
}
func NewPartnerCommentRepo ¶
func NewPartnerCommentRepo(db *sql.DB) *PartnerCommentRepo
func (*PartnerCommentRepo) CheckIfExistsById ¶
func (*PartnerCommentRepo) CountByFilter ¶
func (s *PartnerCommentRepo) CountByFilter(ctx context.Context, f *models.PartnerCommentFilter) (uint64, error)
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 (r *PartnerCommentRepo) Insert(ctx context.Context, m *models.PartnerComment) error
func (*PartnerCommentRepo) InsertOrUpdateById ¶
func (r *PartnerCommentRepo) InsertOrUpdateById(ctx context.Context, m *models.PartnerComment) error
func (*PartnerCommentRepo) ListByFilter ¶
func (s *PartnerCommentRepo) ListByFilter(ctx context.Context, filter *models.PartnerCommentFilter) ([]*models.PartnerComment, error)
func (*PartnerCommentRepo) UpdateById ¶
func (r *PartnerCommentRepo) UpdateById(ctx context.Context, m *models.PartnerComment) error
type PartnerRepo ¶
type PartnerRepo struct {
// contains filtered or unexported fields
}
func NewPartnerRepo ¶
func NewPartnerRepo(db *sql.DB) *PartnerRepo
func (*PartnerRepo) CheckIfExistsById ¶
func (*PartnerRepo) DeleteById ¶
func (*PartnerRepo) GetIdByOldId ¶
func (*PartnerRepo) InsertOrUpdateById ¶
func (*PartnerRepo) ListByFilter ¶
func (s *PartnerRepo) ListByFilter(ctx context.Context, filter *models.PartnerFilter) ([]*models.Partner, error)
func (*PartnerRepo) UpdateById ¶
type PartnerTagRepo ¶
type PartnerTagRepo struct {
// contains filtered or unexported fields
}
func NewPartnerTagRepo ¶
func NewPartnerTagRepo(db *sql.DB) *PartnerTagRepo
func (*PartnerTagRepo) CheckIfExistsById ¶
func (*PartnerTagRepo) CountByFilter ¶
func (s *PartnerTagRepo) CountByFilter(ctx context.Context, f *models.PartnerTagFilter) (uint64, error)
func (*PartnerTagRepo) DeleteByPartnerId ¶
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 (*PrivateFileRepo) CheckIfExistsByS3Key ¶
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 (*PrivateFileRepo) Insert ¶
func (r *PrivateFileRepo) Insert(ctx context.Context, m *models.PrivateFile) error
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
type SkillSetInsuranceRequirementRepo ¶
type SkillSetInsuranceRequirementRepo struct {
// contains filtered or unexported fields
}
func NewSkillSetInsuranceRequirementRepo ¶
func NewSkillSetInsuranceRequirementRepo(db *sql.DB) *SkillSetInsuranceRequirementRepo
func (*SkillSetInsuranceRequirementRepo) CheckIfExistsById ¶
func (*SkillSetInsuranceRequirementRepo) CountByFilter ¶
func (s *SkillSetInsuranceRequirementRepo) CountByFilter(ctx context.Context, f *models.SkillSetInsuranceRequirementFilter) (uint64, error)
func (*SkillSetInsuranceRequirementRepo) DeleteBySkillSetId ¶
func (*SkillSetInsuranceRequirementRepo) GetById ¶
func (r *SkillSetInsuranceRequirementRepo) GetById(ctx context.Context, tenantID uint64, id uint64) (*models.SkillSetInsuranceRequirement, error)
func (*SkillSetInsuranceRequirementRepo) GetByOld ¶
func (r *SkillSetInsuranceRequirementRepo) GetByOld(ctx context.Context, tenantID uint64, oldId uint64) (*models.SkillSetInsuranceRequirement, error)
func (*SkillSetInsuranceRequirementRepo) GetByUUID ¶
func (r *SkillSetInsuranceRequirementRepo) GetByUUID(ctx context.Context, tenantID uint64, uid string) (*models.SkillSetInsuranceRequirement, error)
func (*SkillSetInsuranceRequirementRepo) GetIdByOldId ¶
func (*SkillSetInsuranceRequirementRepo) Insert ¶
func (r *SkillSetInsuranceRequirementRepo) Insert(ctx context.Context, m *models.SkillSetInsuranceRequirement) error
func (*SkillSetInsuranceRequirementRepo) InsertOrUpdateById ¶
func (r *SkillSetInsuranceRequirementRepo) InsertOrUpdateById(ctx context.Context, m *models.SkillSetInsuranceRequirement) error
func (*SkillSetInsuranceRequirementRepo) ListByFilter ¶
func (s *SkillSetInsuranceRequirementRepo) ListByFilter(ctx context.Context, filter *models.SkillSetInsuranceRequirementFilter) ([]*models.SkillSetInsuranceRequirement, error)
func (*SkillSetInsuranceRequirementRepo) UpdateById ¶
func (r *SkillSetInsuranceRequirementRepo) UpdateById(ctx context.Context, m *models.SkillSetInsuranceRequirement) error
type SkillSetRepo ¶
type SkillSetRepo struct {
// contains filtered or unexported fields
}
func NewSkillSetRepo ¶
func NewSkillSetRepo(db *sql.DB) *SkillSetRepo
func (*SkillSetRepo) CheckIfExistsById ¶
func (*SkillSetRepo) CountByFilter ¶
func (s *SkillSetRepo) CountByFilter(ctx context.Context, f *models.SkillSetFilter) (uint64, error)
func (*SkillSetRepo) DeleteById ¶
func (*SkillSetRepo) GetIdByTenantIdAndOldId ¶
func (*SkillSetRepo) InsertOrUpdateById ¶
func (*SkillSetRepo) ListByFilter ¶
func (s *SkillSetRepo) ListByFilter(ctx context.Context, f *models.SkillSetFilter) ([]*models.SkillSet, error)
func (*SkillSetRepo) UpdateById ¶
type StaffCommentRepo ¶
type StaffCommentRepo struct {
// contains filtered or unexported fields
}
func NewStaffCommentRepo ¶
func NewStaffCommentRepo(db *sql.DB) *StaffCommentRepo
func (*StaffCommentRepo) CheckIfExistsById ¶
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 (r *StaffCommentRepo) Insert(ctx context.Context, m *models.StaffComment) error
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 (*StaffRepo) CheckIfExistsByEmail ¶
func (*StaffRepo) CheckIfExistsById ¶
func (*StaffRepo) DeleteById ¶
func (*StaffRepo) GetByUniqueKeyAndStringValue ¶
func (*StaffRepo) GetByUniqueKeyAndValue ¶
func (*StaffRepo) GetIdByOldId ¶
func (*StaffRepo) InsertOrUpdateById ¶
func (*StaffRepo) ListByFilter ¶
type StaffTagRepo ¶
type StaffTagRepo struct {
// contains filtered or unexported fields
}
func NewStaffTagRepo ¶
func NewStaffTagRepo(db *sql.DB) *StaffTagRepo
func (*StaffTagRepo) CheckIfExistsById ¶
func (*StaffTagRepo) CountByFilter ¶
func (s *StaffTagRepo) CountByFilter(ctx context.Context, f *models.StaffTagFilter) (uint64, error)
func (*StaffTagRepo) DeleteByStaffId ¶
func (*StaffTagRepo) InsertOrUpdateById ¶
func (*StaffTagRepo) ListByFilter ¶
func (s *StaffTagRepo) ListByFilter(ctx context.Context, filter *models.StaffTagFilter) ([]*models.StaffTag, error)
func (*StaffTagRepo) UpdateById ¶
type TagRepo ¶
type TagRepo struct {
// contains filtered or unexported fields
}
func NewTagRepo ¶
func (*TagRepo) CheckIfExistsById ¶
func (*TagRepo) DeleteById ¶
func (*TagRepo) GetIdByOldId ¶
func (*TagRepo) InsertOrUpdateById ¶
type TaskItemRepo ¶
type TaskItemRepo struct {
// contains filtered or unexported fields
}
func NewTaskItemRepo ¶
func NewTaskItemRepo(db *sql.DB) *TaskItemRepo
func (*TaskItemRepo) CheckIfExistsById ¶
func (*TaskItemRepo) CountByFilter ¶
func (s *TaskItemRepo) CountByFilter(ctx context.Context, f *models.TaskItemFilter) (uint64, error)
func (*TaskItemRepo) GetIdByOldId ¶
func (*TaskItemRepo) InsertOrUpdateById ¶
func (*TaskItemRepo) ListByFilter ¶
func (s *TaskItemRepo) ListByFilter(ctx context.Context, filter *models.TaskItemFilter) ([]*models.TaskItem, error)
func (*TaskItemRepo) UpdateById ¶
type TenantRepo ¶
type TenantRepo struct {
// contains filtered or unexported fields
}
func NewTenantRepo ¶
func NewTenantRepo(db *sql.DB) *TenantRepo
func (*TenantRepo) CheckIfExistsById ¶
func (*TenantRepo) CheckIfExistsByName ¶
func (*TenantRepo) CheckIfExistsBySchemaName ¶
func (*TenantRepo) GetByOldId ¶
func (*TenantRepo) GetBySchemaName ¶
func (*TenantRepo) GetSchemaNameById ¶
func (*TenantRepo) InsertOrUpdateById ¶
func (*TenantRepo) InsertOrUpdateBySchemaName ¶
func (*TenantRepo) ListAllPKs ¶
func (s *TenantRepo) ListAllPKs(ctx context.Context) ([]uint64, error)
func (*TenantRepo) UpdateById ¶
func (*TenantRepo) UpdateBySchemaName ¶
type UserRepo ¶
type UserRepo struct {
// contains filtered or unexported fields
}
func NewUserRepo ¶
func (*UserRepo) CheckIfExistsByEmail ¶
func (*UserRepo) CheckIfExistsById ¶
func (*UserRepo) GetByEmail ¶
func (*UserRepo) GetByOldId ¶
func (*UserRepo) GetIdByOldId ¶
func (*UserRepo) InsertOrUpdateByEmail ¶
func (*UserRepo) InsertOrUpdateById ¶
func (*UserRepo) UpdateByEmail ¶
type VehicleTypeRepo ¶
type VehicleTypeRepo struct {
// contains filtered or unexported fields
}
func NewVehicleTypeRepo ¶
func NewVehicleTypeRepo(db *sql.DB) *VehicleTypeRepo
func (*VehicleTypeRepo) CheckIfExistsById ¶
func (*VehicleTypeRepo) DeleteById ¶
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 (*VehicleTypeRepo) Insert ¶
func (r *VehicleTypeRepo) Insert(ctx context.Context, m *models.VehicleType) error
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 (*WorkOrderCommentRepo) CountByFilter ¶
func (s *WorkOrderCommentRepo) CountByFilter(ctx context.Context, f *models.WorkOrderCommentFilter) (uint64, error)
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 (*WorkOrderCommentRepo) Insert ¶
func (r *WorkOrderCommentRepo) Insert(ctx context.Context, m *models.WorkOrderComment) error
func (*WorkOrderCommentRepo) InsertOrUpdateById ¶
func (r *WorkOrderCommentRepo) InsertOrUpdateById(ctx context.Context, m *models.WorkOrderComment) error
func (*WorkOrderCommentRepo) ListByFilter ¶
func (s *WorkOrderCommentRepo) ListByFilter(ctx context.Context, filter *models.WorkOrderCommentFilter) ([]*models.WorkOrderComment, error)
func (*WorkOrderCommentRepo) UpdateById ¶
func (r *WorkOrderCommentRepo) UpdateById(ctx context.Context, m *models.WorkOrderComment) error
type WorkOrderDepositRepo ¶
type WorkOrderDepositRepo struct {
// contains filtered or unexported fields
}
func NewWorkOrderDepositRepo ¶
func NewWorkOrderDepositRepo(db *sql.DB) *WorkOrderDepositRepo
func (*WorkOrderDepositRepo) CheckIfExistsById ¶
func (*WorkOrderDepositRepo) CountByFilter ¶
func (s *WorkOrderDepositRepo) CountByFilter(ctx context.Context, f *models.WorkOrderDepositFilter) (uint64, error)
func (*WorkOrderDepositRepo) DeleteById ¶
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 (*WorkOrderDepositRepo) Insert ¶
func (r *WorkOrderDepositRepo) Insert(ctx context.Context, m *models.WorkOrderDeposit) error
func (*WorkOrderDepositRepo) InsertOrUpdateById ¶
func (r *WorkOrderDepositRepo) InsertOrUpdateById(ctx context.Context, m *models.WorkOrderDeposit) error
func (*WorkOrderDepositRepo) ListByFilter ¶
func (s *WorkOrderDepositRepo) ListByFilter(ctx context.Context, filter *models.WorkOrderDepositFilter) ([]*models.WorkOrderDeposit, error)
func (*WorkOrderDepositRepo) UpdateById ¶
func (r *WorkOrderDepositRepo) UpdateById(ctx context.Context, m *models.WorkOrderDeposit) error
type WorkOrderInvoiceRepo ¶
type WorkOrderInvoiceRepo struct {
// contains filtered or unexported fields
}
func NewWorkOrderInvoiceRepo ¶
func NewWorkOrderInvoiceRepo(db *sql.DB) *WorkOrderInvoiceRepo
func (*WorkOrderInvoiceRepo) CheckIfExistsById ¶
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 (r *WorkOrderInvoiceRepo) Insert(ctx context.Context, m *models.WorkOrderInvoice) error
func (*WorkOrderInvoiceRepo) InsertOrUpdateById ¶
func (r *WorkOrderInvoiceRepo) InsertOrUpdateById(ctx context.Context, m *models.WorkOrderInvoice) error
func (*WorkOrderInvoiceRepo) UpdateById ¶
func (r *WorkOrderInvoiceRepo) UpdateById(ctx context.Context, m *models.WorkOrderInvoice) error
type WorkOrderRepo ¶
type WorkOrderRepo struct {
// contains filtered or unexported fields
}
func NewWorkOrderRepo ¶
func NewWorkOrderRepo(db *sql.DB) *WorkOrderRepo
func (*WorkOrderRepo) CheckIfExistsById ¶
func (*WorkOrderRepo) GetByOngoingWorkOrderId ¶
func (*WorkOrderRepo) GetIdByOldId ¶
func (*WorkOrderRepo) InsertOrUpdateById ¶
func (*WorkOrderRepo) ListByFilter ¶
func (s *WorkOrderRepo) ListByFilter(ctx context.Context, f *models.WorkOrderFilter) ([]*models.WorkOrder, error)
func (*WorkOrderRepo) UpdateById ¶
type WorkOrderServiceFeeRepo ¶
type WorkOrderServiceFeeRepo struct {
// contains filtered or unexported fields
}
func NewWorkOrderServiceFeeRepo ¶
func NewWorkOrderServiceFeeRepo(db *sql.DB) *WorkOrderServiceFeeRepo
func (*WorkOrderServiceFeeRepo) CheckIfExistsById ¶
func (*WorkOrderServiceFeeRepo) DeleteById ¶
func (*WorkOrderServiceFeeRepo) GetById ¶
func (r *WorkOrderServiceFeeRepo) GetById(ctx context.Context, tenantID uint64, id uint64) (*models.WorkOrderServiceFee, error)
func (*WorkOrderServiceFeeRepo) GetByUUID ¶
func (r *WorkOrderServiceFeeRepo) GetByUUID(ctx context.Context, tenantID uint64, uid string) (*models.WorkOrderServiceFee, error)
func (*WorkOrderServiceFeeRepo) GetIdByOldId ¶
func (*WorkOrderServiceFeeRepo) Insert ¶
func (r *WorkOrderServiceFeeRepo) Insert(ctx context.Context, m *models.WorkOrderServiceFee) error
func (*WorkOrderServiceFeeRepo) InsertOrUpdateById ¶
func (r *WorkOrderServiceFeeRepo) InsertOrUpdateById(ctx context.Context, m *models.WorkOrderServiceFee) error
func (*WorkOrderServiceFeeRepo) UpdateById ¶
func (r *WorkOrderServiceFeeRepo) UpdateById(ctx context.Context, m *models.WorkOrderServiceFee) error
type WorkOrderSkillSetRepo ¶
type WorkOrderSkillSetRepo struct {
// contains filtered or unexported fields
}
func NewWorkOrderSkillSetRepo ¶
func NewWorkOrderSkillSetRepo(db *sql.DB) *WorkOrderSkillSetRepo
func (*WorkOrderSkillSetRepo) CheckIfExistsById ¶
func (*WorkOrderSkillSetRepo) CountByFilter ¶
func (s *WorkOrderSkillSetRepo) CountByFilter(ctx context.Context, f *models.WorkOrderSkillSetFilter) (uint64, error)
func (*WorkOrderSkillSetRepo) DeleteByOrderId ¶
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 (r *WorkOrderSkillSetRepo) Insert(ctx context.Context, m *models.WorkOrderSkillSet) error
func (*WorkOrderSkillSetRepo) InsertOrUpdateById ¶
func (r *WorkOrderSkillSetRepo) InsertOrUpdateById(ctx context.Context, m *models.WorkOrderSkillSet) error
func (*WorkOrderSkillSetRepo) ListByFilter ¶
func (s *WorkOrderSkillSetRepo) ListByFilter(ctx context.Context, filter *models.WorkOrderSkillSetFilter) ([]*models.WorkOrderSkillSet, error)
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 ¶
func (r *WorkOrderSkillSetRepo) UpdateById(ctx context.Context, m *models.WorkOrderSkillSet) error
type WorkOrderTagRepo ¶
type WorkOrderTagRepo struct {
// contains filtered or unexported fields
}
func NewWorkOrderTagRepo ¶
func NewWorkOrderTagRepo(db *sql.DB) *WorkOrderTagRepo
func (*WorkOrderTagRepo) CheckIfExistsById ¶
func (*WorkOrderTagRepo) CountByFilter ¶
func (s *WorkOrderTagRepo) CountByFilter(ctx context.Context, f *models.WorkOrderTagFilter) (uint64, error)
func (*WorkOrderTagRepo) DeleteByOrderId ¶
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 (r *WorkOrderTagRepo) Insert(ctx context.Context, m *models.WorkOrderTag) error
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
Source Files ¶
- activity_sheet_items.go
- associate.go
- associate_away_log.go
- associate_comment.go
- associate_insurance_requirement.go
- associate_skill_set.go
- associate_tag.go
- associate_vehicle_type.go
- bulletin_board_item.go
- comment.go
- customer.go
- customer_comment.go
- customer_tag.go
- how_hear_about_us_item.go
- insurance_requirement.go
- lite_activity_sheet_items.go
- lite_associate.go
- lite_associate_away_log.go
- lite_bulletin_board_item.go
- lite_customer.go
- lite_deactivated_customer.go
- lite_financial.go
- lite_how_hear_about_us_item.go
- lite_insurance_requirement.go
- lite_ongoing_work_order.go
- lite_partner.go
- lite_private_file.go
- lite_skill_set.go
- lite_staff.go
- lite_tag.go
- lite_task_item.go
- lite_tenant.go
- lite_vehicle_type.go
- lite_work_order.go
- lite_work_order_deposit.go
- lite_work_order_service_fee.go
- ongoing_work_order.go
- ongoing_work_order_comment.go
- partner.go
- partner_comment.go
- partner_tag.go
- private_file.go
- session.go
- skill_set.go
- skill_set_insurance_requirement.go
- staff.go
- staff_comment.go
- staff_tag.go
- tag.go
- task_item.go
- tenant.go
- user.go
- vehicle_type.go
- work_order.go
- work_order_comment.go
- work_order_deposit.go
- work_order_filter.go
- work_order_invoice.go
- work_order_service_fee.go
- work_order_skill_set.go
- work_order_tag.go
Click to show internal directories.
Click to hide internal directories.