-
Notifications
You must be signed in to change notification settings - Fork 0
/
module.go
33 lines (26 loc) · 824 Bytes
/
module.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
package passportserver
import (
"embed"
"github.com/bitwormhole/passport-server/gen/gen4server"
"github.com/starter-go/application"
"github.com/starter-go/security-gin-gorm/modules/securitygingorm"
)
const (
theModuleName = "github.com/bitwormhole/passport-server"
theModuleVersion = "v0.0.0"
theModuleRevision = 0
theModuleResPath = "src/main/resources"
)
//go:embed "src/main/resources"
var theModuleResFS embed.FS
// Module 导出模块 "github.com/bitwormhole/passport-server"
func Module() application.Module {
mb := application.ModuleBuilder{}
mb.Name(theModuleName)
mb.Version(theModuleVersion)
mb.Revision(theModuleRevision)
mb.EmbedResources(theModuleResFS, theModuleResPath)
mb.Components(gen4server.ExportComForPassportServer)
mb.Depend(securitygingorm.Module())
return mb.Create()
}