servicecontext.go 354 B

123456789101112131415161718
  1. package svc
  2. import (
  3. "app.yhyue.com/moapp/jyInfo/rpc/common/internal/config"
  4. "app.yhyue.com/moapp/jyInfo/rpc/model/province"
  5. )
  6. type ServiceContext struct {
  7. Config config.Config
  8. AreaModel model.AreaModel
  9. }
  10. func NewServiceContext(c config.Config) *ServiceContext {
  11. return &ServiceContext{
  12. Config: c,
  13. AreaModel: model.NewAreaModel(),
  14. }
  15. }