0 Star 0 Fork 0

one_love / blog-service

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
service.go 307 Bytes
一键复制 编辑 原始数据 按行查看 历史
one_love 提交于 2022-07-14 18:18 . On branch dev
package service
import (
"context"
"gitee.com/one_love/blog-service/global"
"gitee.com/one_love/blog-service/internal/dao"
)
type Service struct {
ctx context.Context
dao *dao.Dao
}
func New(ctx context.Context) Service {
svc := Service{ctx: ctx}
svc.dao = dao.New(global.DBEngine)
return svc
}
Go
1
https://gitee.com/one_love/blog-service.git
git@gitee.com:one_love/blog-service.git
one_love
blog-service
blog-service
b40c837dd65d

搜索帮助