27 lines
341 B
Go
27 lines
341 B
Go
package client
|
|
|
|
import (
|
|
"go-common/library/net/rpc"
|
|
)
|
|
|
|
const (
|
|
_appid = "archive.service.upcredit"
|
|
)
|
|
|
|
//Service rpc service
|
|
type Service struct {
|
|
client *rpc.Client2
|
|
}
|
|
|
|
//RPC interface
|
|
type RPC interface {
|
|
}
|
|
|
|
//New create
|
|
func New(c *rpc.ClientConfig) (s *Service) {
|
|
s = &Service{
|
|
client: rpc.NewDiscoveryCli(_appid, c),
|
|
}
|
|
return
|
|
}
|