// Code generated by Kitex v0.5.1. DO NOT EDIT.
package orderservice

import (
	server "github.com/cloudwego/kitex/server"
	order "github.com/cqqqq777/go-kitex-mall/shared/kitex_gen/order"
)

// NewServer creates a server.Server with the given handler and options.
func NewServer(handler order.OrderService, opts ...server.Option) server.Server {
	var options []server.Option

	options = append(options, opts...)

	svr := server.NewServer(options...)
	if err := svr.RegisterService(serviceInfo(), handler); err != nil {
		panic(err)
	}
	return svr
}
