Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AggOpDTO ¶
type AggOpDTO struct { BizId int64 BizIdList []int64 AggType v1.FavoriteAggregateType FavoriteType v1.FavoriteType }
type FavoriteService ¶
type FavoriteService interface { AddFavorite(ctx context.Context, dto *WriteOpDTO) error RemoveFavorite(ctx context.Context, dto *WriteOpDTO) error ListFavorite(ctx context.Context, dto *AggOpDTO, limit, offset int) ([]int64, error) CountFavorite(ctx context.Context, dto *AggOpDTO) ([]*v1.CountFavoriteResponseItem, error) IsFavorite(ctx context.Context, dto []*v1.IsFavoriteRequestItem) ([]*v1.IsFavoriteResponseItem, error) }
type WriteOpDTO ¶
type WriteOpDTO struct { UserId int64 TargetId int64 TargetType v1.FavoriteTarget FavoriteType v1.FavoriteType }
func (*WriteOpDTO) Check ¶
func (dto *WriteOpDTO) Check() error
Click to show internal directories.
Click to hide internal directories.