mirror of
https://github.com/zeromicro/go-zero.git
synced 2025-01-27 20:38:41 +08:00
12 lines
201 B
Go
12 lines
201 B
Go
package svc
|
|
|
|
import "shorturl/api/internal/config"
|
|
|
|
type ServiceContext struct {
|
|
Config config.Config
|
|
}
|
|
|
|
func NewServiceContext(c config.Config) *ServiceContext {
|
|
return &ServiceContext{Config: c}
|
|
}
|