Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InterestModule ¶
func InterestModule(sb *server.ServerBuiler)
Types ¶
type CreateInput ¶
type CreateInput struct { UserId string `json:"userId" binding:"required"` TargetId string `json:"targetId" binding:"required"` TargetType string `json:"targetType" binding:"required"` }
func (*CreateInput) ToEntity ¶
func (c *CreateInput) ToEntity() *Interest
type Repository ¶
type Repository interface { ddd.Repository[Interest] SetInterest(ctx context.Context, ins *Interest) int GetManyByUsers(ctx context.Context, userIds []primitive.ObjectID, targetType string) []Interest GetUsers(ctx context.Context, targetId []string, targetType string) []Interest DeleteBy(ctx context.Context, userId primitive.ObjectID, targetId, targetType string) int CheckMany(ctx context.Context, userId []primitive.ObjectID, targetId []string, targetType string) []Interest }
Click to show internal directories.
Click to hide internal directories.