Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var LoginResponse = httptest.Responses{ {Key: "accessToken", Value: "", Type: "notempty"}, {Key: "user", Value: httptest.Responses{ {Key: "id", Value: 0, Type: "ge"}}}, }
View Source
var LoginUrl = "/api/v1/auth/login"
View Source
var LogoutUrl = "/api/v1/users/logout"
View Source
var PartyFunc = func(wi *web_iris.WebServer) { err := multi.InitDriver(&multi.Config{DriverType: "jwt", HmacSecret: nil}) if err != nil { zap_server.ZAPLOG.Panic("err") } wi.AddModule(web_iris.Party{ Perfix: "/api/v1", PartyFunc: Party(), }) }
加载模块
View Source
var SeedFunc = func(wi *web_iris.WebServer, mc *migration.MigrationCmd) { mc.AddMigration(perm.GetMigration(), role.GetMigration(), user.GetMigration(), operation.GetMigration()) routes, _ := wi.GetSources() mc.AddSeed(perm.New(routes), role.Source, user.Source) }
填充数据
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.