You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
452 B

2 months ago
package rpc
import (
"github.com/TremblingV5/DouTok/kitex_gen/user/userservice"
"github.com/TremblingV5/DouTok/pkg/constants"
"github.com/TremblingV5/DouTok/pkg/services"
"github.com/cloudwego/kitex/client"
)
type Clients struct {
User *services.Service[userservice.Client]
}
func New(options []client.Option) *Clients {
return &Clients{
User: services.New[userservice.Client](constants.UserServerName, userservice.NewClient, options),
}
}