feat: wecom curd

This commit is contained in:
zzw
2026-08-31 11:10:15 +08:00
parent 53d203ee14
commit d618ac32b0
37 changed files with 2707 additions and 33 deletions
@@ -0,0 +1,28 @@
package svc
import (
"lone-services/pkg/utils"
"lone-services/services/wecom/internal/config"
"github.com/zeromicro/go-zero/core/logx"
"gorm.io/gorm"
)
type ServiceContext struct {
Config config.Config
DB *gorm.DB
SaleSvcName string
}
func NewServiceContext(c config.Config, db *gorm.DB) *ServiceContext {
saleSvc := utils.GetConfigString("services.sale")
if saleSvc == utils.StringEmpty {
logx.Error("config services.sale empty")
}
return &ServiceContext{
Config: c,
DB: db,
SaleSvcName: saleSvc,
}
}