经皮湿水仪init and bind's all api

This commit is contained in:
2026-10-05 17:22:27 +08:00
parent 3d760eb6b9
commit d30b573833
52 changed files with 3092 additions and 250 deletions
@@ -0,0 +1,22 @@
package svc
import (
"lone-services/pkg/utils"
"lone-services/services/percutaneous/internal/config"
"gorm.io/gorm"
)
type ServiceContext struct {
Config config.Config
DB *gorm.DB
Prefix string
}
func NewServiceContext(c config.Config, db *gorm.DB) *ServiceContext {
return &ServiceContext{
Config: c,
DB: db,
Prefix: utils.GetConfigString("mysql.prefix"),
}
}