27 lines
434 B
Go
27 lines
434 B
Go
package ocean
|
|
|
|
import (
|
|
"ocean/ocean/business"
|
|
"ocean/ocean/config"
|
|
"ocean/ocean/context"
|
|
)
|
|
|
|
type ocean struct {
|
|
ctx *context.Context
|
|
}
|
|
|
|
func NewOcean() *ocean {
|
|
return &ocean{
|
|
ctx: &context.Context{
|
|
Config: &config.Config{
|
|
BusinessCookie: make(map[string]string),
|
|
AdCookie: make(map[string]string),
|
|
},
|
|
},
|
|
}
|
|
}
|
|
|
|
func (o *ocean) GetBuisiness() *business.Client {
|
|
return business.NewClient(o.ctx.Config)
|
|
}
|