iris

package
v0.1.23 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 4, 2023 License: Apache-2.0 Imports: 13 Imported by: 3

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

func Party

func Party() func(rbac iris.Party)

Party v1 模块

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL