Files
houston-be/model/user/user_repository_interface.go
Vijay Joshi 288a7f8457 INFRA-3664 : Make get users in conversation api more performant, add api to sync incident users, module to track request statuses and remove old add incident-user api (#451)
* 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
2024-08-29 11:52:56 +05:30

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)
}