mirror of
https://github.com/zeromicro/go-zero.git
synced 2026-05-10 16:30:01 +08:00
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