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.
 
 
 

27 lines
475 B

package tvvip
import (
"go-common/app/interface/main/tv/conf"
"go-common/app/service/main/tv/api"
"go-common/library/log"
)
// Service .
type Service struct {
conf *conf.Config
tvVipClient api.TVServiceClient
}
// New .
func New(c *conf.Config) *Service {
tvVipClient, err := api.NewClient(c.TvVipClient)
if err != nil {
log.Error("client.Dial err(%v)", err)
panic(err)
}
srv := &Service{
conf: c,
tvVipClient: tvVipClient,
}
return srv
}