package activity

import (
	"context"

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

func (c *ControllerV1) ItemGet(ctx context.Context, req *v1.ItemGetReq) (res *v1.ItemGetRes, err error) {
	out, err := service.SignInRewardDetails().Get(ctx, &model.SignInRewardDetailGetIn{Id: req.Id})
	if err != nil {
		return nil, err
	}
	return &v1.ItemGetRes{SignInRewardDetail: out.SignInRewardDetail}, nil
}
