(repo repository.InteractiveRepository, l *zap.Logger)
| 27 | } |
| 28 | |
| 29 | func NewInteractiveService(repo repository.InteractiveRepository, l *zap.Logger) InteractiveService { |
| 30 | return &interactiveService{ |
| 31 | repo: repo, |
| 32 | l: l, |
| 33 | } |
| 34 | } |
| 35 | |
| 36 | // Like 处理点赞逻辑 |
| 37 | func (i *interactiveService) Like(ctx context.Context, postId uint, uid int64) error { |