35 lines
688 B
Go
35 lines
688 B
Go
// Code scaffolded by goctl. Safe to edit.
|
|
// goctl 1.10.1
|
|
|
|
package interaction
|
|
|
|
import (
|
|
"context"
|
|
|
|
"sundynix-micro-go/app/radio/api/internal/svc"
|
|
"sundynix-micro-go/app/radio/api/internal/types"
|
|
|
|
"github.com/zeromicro/go-zero/core/logx"
|
|
)
|
|
|
|
type ToggleLikeLogic struct {
|
|
logx.Logger
|
|
ctx context.Context
|
|
svcCtx *svc.ServiceContext
|
|
}
|
|
|
|
// 点赞/取消点赞
|
|
func NewToggleLikeLogic(ctx context.Context, svcCtx *svc.ServiceContext) *ToggleLikeLogic {
|
|
return &ToggleLikeLogic{
|
|
Logger: logx.WithContext(ctx),
|
|
ctx: ctx,
|
|
svcCtx: svcCtx,
|
|
}
|
|
}
|
|
|
|
func (l *ToggleLikeLogic) ToggleLike(req *types.LikeReq) error {
|
|
// todo: add your logic here and delete this line
|
|
|
|
return nil
|
|
}
|