go-zero/example/shorturl/api/internal/svc/servicecontext.go

12 lines
201 B
Go
Raw Normal View History

2020-09-01 16:04:39 +08:00
package svc
import "shorturl/api/internal/config"
type ServiceContext struct {
Config config.Config
}
func NewServiceContext(c config.Config) *ServiceContext {
return &ServiceContext{Config: c}
}