package product

import (
	"context"

	pb "bsm/full/module/ec/mall/pb"
	"git.apinb.com/bsm-sdk/core/errcode"
)

// DetailBySpec 通过规格编号获取产品详情
func ItemDetailBySpec(ctx context.Context, in *pb.DetailBySpecRequest) (reply *pb.ListItem, err error) {
	if in.GetSpecNo() == "" {
		return nil, errcode.ErrInvalidArgument
	}

	// TODO: valid code

	// TODO: add your logic code & delete this line.

	return
}
