* INFRA-3664 : Make get users in conversation api more performant * INFRA-3664 : Add apis for incident user sync and get users in incident performance improvements * INFRA-3664 : Self review * INFRA-3664 : Add migration script * INFRA-3664 : Review comments * INFRA-3664 : Constant chanes * INFRA-3664 : Add rate limit constants * INFRA-3664 : Add rate limit constants * INFRA-3664 : Fix failing tests * INFRA-3664 : Add UT's
17 lines
693 B
Go
17 lines
693 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)
|
|
FindHoustonUsersBySlackUserIds(slackUserIds []string) ([]UserEntity, error)
|
|
}
|