package activity

import (
	"context"

	v1 "server/api/activity/v1"
	"server/internal/model"
	"server/internal/service"
)

func (c *ControllerV1) ItemDel(ctx context.Context, req *v1.ItemDelReq) (res *v1.ItemDelRes, err error) {
	out, err := service.SignInRewardDetails().Delete(ctx, &model.SignInRewardDetailDeleteIn{Id: req.Id})
	if err != nil {
		return nil, err
	}
	return &v1.ItemDelRes{Success: out.Success}, nil
}
