Documentation ¶
Index ¶
- func GetClient(port string) (auth.AuthorizationClient, error)
- type Core
- func (core *Core) AddComment(filmId uint64, userId uint64, rating uint16, text string) (bool, error)
- func (core *Core) DeleteComment(idUser uint64, idFilm uint64) error
- func (core *Core) GetFilmComments(filmId uint64, first uint64, limit uint64) ([]models.CommentItem, error)
- func (core *Core) GetUserId(ctx context.Context, sid string) (uint64, error)
- type ICore
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Core ¶
type Core struct {
// contains filtered or unexported fields
}
func GetCore ¶
func GetCore(cfg_sql *configs.CommentCfg, lg *slog.Logger, comments comment.ICommentRepo) *Core
func (*Core) AddComment ¶
func (*Core) GetFilmComments ¶
type ICore ¶
type ICore interface { GetFilmComments(filmId uint64, first uint64, limit uint64) ([]models.CommentItem, error) AddComment(filmId uint64, userId uint64, rating uint16, text string) (bool, error) GetUserId(ctx context.Context, sid string) (uint64, error) DeleteComment(idUser uint64, idFilm uint64) error }
Click to show internal directories.
Click to hide internal directories.