feat: completed development wecom message
This commit is contained in:
@@ -13,6 +13,7 @@ type ServiceContext struct {
|
||||
DB *gorm.DB
|
||||
Prefix string
|
||||
ChoreSvcName string
|
||||
WecomSvcName string
|
||||
}
|
||||
|
||||
func NewServiceContext(c config.Config, db *gorm.DB) *ServiceContext {
|
||||
@@ -20,10 +21,15 @@ func NewServiceContext(c config.Config, db *gorm.DB) *ServiceContext {
|
||||
if choreSvc == utils.StringEmpty {
|
||||
logx.Error("config services.chore empty")
|
||||
}
|
||||
wecomSvc := utils.GetConfigString("services.wecom")
|
||||
if wecomSvc == utils.StringEmpty {
|
||||
logx.Error("config services.wecom empty")
|
||||
}
|
||||
return &ServiceContext{
|
||||
Config: c,
|
||||
DB: db,
|
||||
Prefix: utils.GetConfigString("mysql.prefix"),
|
||||
ChoreSvcName: choreSvc,
|
||||
WecomSvcName: wecomSvc,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user