// Code generated by goctl. DO NOT EDIT.
// goctl 1.9.2
// Source: snowflake.proto

package server

import (
	"context"

	"juwan-backend/app/snowflake/rpc/internal/logic"
	"juwan-backend/app/snowflake/rpc/internal/svc"
	"juwan-backend/app/snowflake/rpc/snowflake"
)

type SnowflakeServiceServer struct {
	svcCtx *svc.ServiceContext
	snowflake.UnimplementedSnowflakeServiceServer
}

func NewSnowflakeServiceServer(svcCtx *svc.ServiceContext) *SnowflakeServiceServer {
	return &SnowflakeServiceServer{
		svcCtx: svcCtx,
	}
}

func (s *SnowflakeServiceServer) NextId(ctx context.Context, in *snowflake.NextIdReq) (*snowflake.NextIdResp, error) {
	l := logic.NewNextIdLogic(ctx, s.svcCtx)
	return l.NextId(in)
}

func (s *SnowflakeServiceServer) NextIds(ctx context.Context, in *snowflake.NextIdsReq) (*snowflake.NextIdsResp, error) {
	l := logic.NewNextIdsLogic(ctx, s.svcCtx)
	return l.NextIds(in)
}
