1 Star 0 Fork 0

water/goweb

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
service_api_list_entity_init.go 1.50 KB
一键复制 编辑 原始数据 按行查看 历史
leijmdas 提交于 1个月前 . add
package model
import (
"gitee.com/leijmdas/gobase/goconfig/common/base/baseiface"
"gitee.com/leijmdas/gobase/goconfig/common/basedi"
"github.com/sirupsen/logrus"
)
/*
* ********************************************************
* godi工具生成代码,不建议直接修改!
* ********************************************************
*/
/* ********************************************************
@Title 文件名称: service_api_list_entity_init.go
@Desp 描述: 自动注册注入
@Author 作者: leijmdas@163.com 时间(2024-09-10 15:56:04)
@Update 作者: leijmdas@163.com 时间(2024-09-10 15:56:04)
* *********************************************************/
const singleNameServiceApiListEntity = "*esmodel.ServiceApiListEntity-8eb4133963df4bedaa0a9e1e60367ae0"
// init register load
func init() {
registerBeanServiceApiListEntity()
}
// register ServiceApiListEntity
func registerBeanServiceApiListEntity() {
basedi.RegisterLoadBean(singleNameServiceApiListEntity, LoadServiceApiListEntity)
}
func FindBeanServiceApiListEntity() *ServiceApiListEntity {
bean, ok := basedi.FindBean(singleNameServiceApiListEntity).(*ServiceApiListEntity)
if !ok {
logrus.Errorf("FindBeanServiceApiListEntity: failed to cast bean to *ServiceApiListEntity")
return nil
}
return bean
}
func LoadServiceApiListEntity() baseiface.ISingleton {
var s = NewServiceApiListEntity()
InjectServiceApiListEntity(s)
return s
}
func InjectServiceApiListEntity(s *ServiceApiListEntity) {
// //logrus.Debug("inject")
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/leijmdas/goweb.git
git@gitee.com:leijmdas/goweb.git
leijmdas
goweb
goweb
v1.2.9

搜索帮助