go-admin: github.com/GoAdminGroup/go-admin/plugins/admin/modules/guard Index | Files

package guard

import "github.com/GoAdminGroup/go-admin/plugins/admin/modules/guard"

Index

Package Files

delete.go edit.go export.go menu_delete.go menu_edit.go menu_new.go new.go update.go

func Delete Uses

func Delete(conn db.Connection) context.Handler

func EditForm Uses

func EditForm(srv service.List) context.Handler

func Export Uses

func Export(conn db.Connection) context.Handler
func MenuDelete(conn db.Connection) context.Handler
func MenuEdit(srv service.List) context.Handler
func MenuNew(srv service.List) context.Handler

func NewForm Uses

func NewForm(srv service.List) context.Handler

func ShowForm Uses

func ShowForm(conn db.Connection) context.Handler

func ShowNewForm Uses

func ShowNewForm(conn db.Connection) context.Handler

func Update Uses

func Update(ctx *context.Context)

type DeleteParam Uses

type DeleteParam struct {
    Panel  table.Table
    Id     string
    Prefix string
}

func GetDeleteParam Uses

func GetDeleteParam(ctx *context.Context) *DeleteParam

type EditFormParam Uses

type EditFormParam struct {
    Panel        table.Table
    Id           string
    Prefix       string
    Param        parameter.Parameters
    Path         string
    MultiForm    *multipart.Form
    PreviousPath string
    Alert        template2.HTML
    FromList     bool
}

func GetEditFormParam Uses

func GetEditFormParam(ctx *context.Context) *EditFormParam

func (EditFormParam) GetDeleteUrl Uses

func (e EditFormParam) GetDeleteUrl() string

func (EditFormParam) GetDetailUrl Uses

func (e EditFormParam) GetDetailUrl() string

func (EditFormParam) GetEditUrl Uses

func (e EditFormParam) GetEditUrl() string

func (EditFormParam) GetExportUrl Uses

func (e EditFormParam) GetExportUrl() string

func (*EditFormParam) GetInfoUrl Uses

func (e *EditFormParam) GetInfoUrl() string

func (EditFormParam) GetNewUrl Uses

func (e EditFormParam) GetNewUrl() string

func (EditFormParam) GetUpdateUrl Uses

func (e EditFormParam) GetUpdateUrl() string

func (*EditFormParam) GetUrl Uses

func (e *EditFormParam) GetUrl() string

func (EditFormParam) HasAlert Uses

func (e EditFormParam) HasAlert() bool

func (EditFormParam) IsManage Uses

func (e EditFormParam) IsManage() bool

func (EditFormParam) IsRole Uses

func (e EditFormParam) IsRole() bool

func (EditFormParam) Value Uses

func (e EditFormParam) Value() form.Values

type ExportParam Uses

type ExportParam struct {
    Panel  table.Table
    Id     []string
    Prefix string
    IsAll  bool
}

func GetExportParam Uses

func GetExportParam(ctx *context.Context) *ExportParam
type MenuDeleteParam struct {
    Id string
}

func GetMenuDeleteParam Uses

func GetMenuDeleteParam(ctx *context.Context) *MenuDeleteParam
type MenuEditParam struct {
    Id       string
    Title    string
    Header   string
    ParentId int64
    Icon     string
    Uri      string
    Roles    []string
    Alert    template.HTML
}

func GetMenuEditParam Uses

func GetMenuEditParam(ctx *context.Context) *MenuEditParam
func (e MenuEditParam) HasAlert() bool
type MenuNewParam struct {
    Title    string
    Header   string
    ParentId int64
    Icon     string
    Uri      string
    Roles    []string
    Alert    template.HTML
}

func GetMenuNewParam Uses

func GetMenuNewParam(ctx *context.Context) *MenuNewParam
func (e MenuNewParam) HasAlert() bool

type NewFormParam Uses

type NewFormParam struct {
    Panel        table.Table
    Id           string
    Prefix       string
    Param        parameter.Parameters
    Path         string
    MultiForm    *multipart.Form
    PreviousPath string
    FromList     bool
    Alert        template.HTML
}

func GetNewFormParam Uses

func GetNewFormParam(ctx *context.Context) *NewFormParam

func (NewFormParam) GetDeleteUrl Uses

func (e NewFormParam) GetDeleteUrl() string

func (*NewFormParam) GetDetailUrl Uses

func (e *NewFormParam) GetDetailUrl() string

func (NewFormParam) GetEditUrl Uses

func (e NewFormParam) GetEditUrl() string

func (NewFormParam) GetExportUrl Uses

func (e NewFormParam) GetExportUrl() string

func (*NewFormParam) GetInfoUrl Uses

func (e *NewFormParam) GetInfoUrl() string

func (NewFormParam) GetNewUrl Uses

func (e NewFormParam) GetNewUrl() string

func (NewFormParam) GetUpdateUrl Uses

func (e NewFormParam) GetUpdateUrl() string

func (*NewFormParam) GetUrl Uses

func (e *NewFormParam) GetUrl() string

func (NewFormParam) HasAlert Uses

func (e NewFormParam) HasAlert() bool

func (NewFormParam) IsManage Uses

func (e NewFormParam) IsManage() bool

func (NewFormParam) IsRole Uses

func (e NewFormParam) IsRole() bool

func (NewFormParam) Value Uses

func (e NewFormParam) Value() form.Values

type ShowFormParam Uses

type ShowFormParam struct {
    Panel  table.Table
    Id     string
    Prefix string
    Param  parameter.Parameters
}

func GetShowFormParam Uses

func GetShowFormParam(ctx *context.Context) *ShowFormParam

func (*ShowFormParam) GetInfoUrl Uses

func (e *ShowFormParam) GetInfoUrl() string

func (*ShowFormParam) GetUrl Uses

func (e *ShowFormParam) GetUrl() string

type ShowNewFormParam Uses

type ShowNewFormParam struct {
    Panel  table.Table
    Prefix string
    Param  parameter.Parameters
}

func GetShowNewFormParam Uses

func GetShowNewFormParam(ctx *context.Context) *ShowNewFormParam

func (*ShowNewFormParam) GetInfoUrl Uses

func (e *ShowNewFormParam) GetInfoUrl() string

func (*ShowNewFormParam) GetUrl Uses

func (e *ShowNewFormParam) GetUrl() string

type UpdateParam Uses

type UpdateParam struct {
    Panel  table.Table
    Prefix string
    Value  form.Values
}

func GetUpdateParam Uses

func GetUpdateParam(ctx *context.Context) *UpdateParam

Package guard imports 17 packages (graph) and is imported by 4 packages. Updated 2020-01-23. Refresh now. Tools for package owners.