utils

package
v0.3.27 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PageCurrent = "page"
	PageSize    = "pageSize"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Pagination

type Pagination struct {
	Page     int `json:"page"`
	PageSize int `json:"pageSize"`
}

func NewPaginationFromIris

func NewPaginationFromIris(ctx iris.Context) *Pagination

type UserGroupNamespace added in v0.3.26

type UserGroupNamespace struct {
	Username  string `json:"username"`  // 用户名
	GroupName string `json:"groupName"` // 组名
	Namespace string `json:"namespace"` // 命名空间
}

func NewUserGroupNamespace added in v0.3.26

func NewUserGroupNamespace(username, groupname, namespace string) *UserGroupNamespace

func NewUserNamespaceFromIris

func NewUserNamespaceFromIris(ctx iris.Context) *UserGroupNamespace

func (*UserGroupNamespace) DatabaseName added in v0.3.26

func (un *UserGroupNamespace) DatabaseName() string

Jump to

Keyboard shortcuts

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