TinySkin/service/web.go
2023-09-25 01:04:11 +08:00

23 lines
385 B
Go

package service
import (
"net/http"
"github.com/xmdhs/authlib-skin/config"
"github.com/xmdhs/authlib-skin/db/ent"
)
type WebService struct {
config config.Config
client *ent.Client
httpClient *http.Client
}
func NewWebService(c config.Config, e *ent.Client, hc *http.Client) *WebService {
return &WebService{
config: c,
client: e,
httpClient: hc,
}
}