Files
houston-be/model/user/user_repository_interface.go
Vijay Joshi 8cd72b46a3 INFRA-2887 : Upsert users cron refactor (#412)
* INFRA-2887 : Upsert users cron refactor

* INFRA-2887 : Review changes

* INFRA-2887 : added UT's

* INFRA-2887 : Second round review changes

* INFRA-2887 : Add default ack

* INFRA-2887 : Add default ack

* INFRA-2887 : make flow async
2024-04-02 16:25:34 +05:30

16 lines
616 B
Go

package user
type IUserRepository interface {
Insert(users []UserEntity) error
Update(users []UserEntity) error
UpdateHoustonUser(user UserEntity) error
GetAllHoustonUsers() (*[]UserEntity, error)
IsAHoustonUser(nameOrSlackUserId string) (bool, *UserEntity)
FindHoustonUserBySlackUserId(slackUserId string) (*UserEntity, error)
InsertHoustonUser(user *UserEntity) error
GetHoustonUsersBySlackId(slackUserId []string) (*[]UserEntity, error)
GetAllActiveHoustonUserBots() ([]UserEntity, error)
GetHoustonUserByEmailId(emailId string) (*UserEntity, error)
GetHoustonUserById(id uint) (*UserEntity, error)
}