add shorturl example code
This commit is contained in:
11
example/shorturl/api/internal/svc/servicecontext.go
Normal file
11
example/shorturl/api/internal/svc/servicecontext.go
Normal file
@@ -0,0 +1,11 @@
|
||||
package svc
|
||||
|
||||
import "shorturl/api/internal/config"
|
||||
|
||||
type ServiceContext struct {
|
||||
Config config.Config
|
||||
}
|
||||
|
||||
func NewServiceContext(c config.Config) *ServiceContext {
|
||||
return &ServiceContext{Config: c}
|
||||
}
|
||||
Reference in New Issue
Block a user