Documentation ¶
Index ¶
- type EntgoRepository
- func (r *EntgoRepository) CreateDialog(u *domain.User, d *domain.Dialog) (*domain.Dialog, error)
- func (r *EntgoRepository) CreateMessage(m *domain.Message, d *domain.Dialog, turnErr error) (*domain.Message, error)
- func (r *EntgoRepository) CreateProject(u *domain.User, p *domain.Project) (*domain.Project, error)
- func (r *EntgoRepository) CreateUser(u *domain.User) (*domain.User, error)
- func (r *EntgoRepository) GetRandomProjectByUser() ([]*domain.Project, error)
- func (r *EntgoRepository) GetUserByTeamsID(teamsID string) (*domain.User, error)
- func (r *EntgoRepository) GetUserByUsername(username string) (*domain.User, error)
- func (r *EntgoRepository) GetUserCount() (int, error)
- func (r *EntgoRepository) GetUserDialog(u *domain.User) (*domain.Dialog, error)
- func (r *EntgoRepository) GetUserProjects(u *domain.User) ([]*domain.Project, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EntgoRepository ¶
type EntgoRepository struct {
// contains filtered or unexported fields
}
func NewEntgoRepository ¶
func NewEntgoRepository( client *ent.Client, logger *logger.Logger, ) *EntgoRepository
func (*EntgoRepository) CreateDialog ¶
func (*EntgoRepository) CreateMessage ¶
func (*EntgoRepository) CreateProject ¶
func (*EntgoRepository) CreateUser ¶
func (*EntgoRepository) GetRandomProjectByUser ¶
func (r *EntgoRepository) GetRandomProjectByUser() ([]*domain.Project, error)
func (*EntgoRepository) GetUserByTeamsID ¶
func (r *EntgoRepository) GetUserByTeamsID(teamsID string) (*domain.User, error)
func (*EntgoRepository) GetUserByUsername ¶
func (r *EntgoRepository) GetUserByUsername(username string) (*domain.User, error)
func (*EntgoRepository) GetUserCount ¶
func (r *EntgoRepository) GetUserCount() (int, error)
func (*EntgoRepository) GetUserDialog ¶
func (*EntgoRepository) GetUserProjects ¶
Click to show internal directories.
Click to hide internal directories.