permission_group

package
v1.1.10 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2024 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FieldName        = "Name"
	FieldDescription = "Description"
)

Variables

View Source
var (
	ColumnName        = domain.ColumnName(FieldName)
	ColumnDescription = domain.ColumnName(FieldDescription)
)

Functions

This section is empty.

Types

type CreatePermissionGroupJsonBody

type CreatePermissionGroupJsonBody struct {
	Name        string `json:"name" binding:"required" assign:"toField:Name"`
	Description string `json:"description" assign:"toField:Description"`
}

type DeletePermissionGroupQueryParams

type DeletePermissionGroupQueryParams struct {
	request.IDQueryParam
}

type Entity

type Entity struct {
	entity.Base
	Name        string `sqlmapping:"column:name" sqlresult:"column:name" check:"required,lte=256,when=create/update"`
	Description string `sqlmapping:"column:description;updateClear" sqlresult:"column:description"`

	PermissionIDs []string `sqlmapping:"-" sqlresult:"-"`

	entity.UserIDFields
	entity.TimeFields
}

func (*Entity) DomainCNName

func (e *Entity) DomainCNName() string

func (*Entity) DomainCamelName

func (e *Entity) DomainCamelName() string

func (*Entity) GetFieldMap added in v1.1.0

func (e *Entity) GetFieldMap() map[string]string

type GetPermissionGroupQueryParams

type GetPermissionGroupQueryParams struct {
	request.IDQueryParam
}

type GetPermissionGroupsQueryParams

type GetPermissionGroupsQueryParams struct {
	request.BaseQueryParams
	Name        string `form:"name" assign:"toField:Name"`
	Description string `form:"description" assign:"toField:Description"`
}

type GetPermissionsOfPermissionGroupQueryParams

type GetPermissionsOfPermissionGroupQueryParams struct {
	request.BaseQueryWithIDParams
}

type Info

type Info struct {
	application.InfoIDField
	Name        string `json:"name" sqlresult:"column:name"`
	Description string `json:"description" sqlresult:"column:description"`
	application.InfoUserIDFields
	application.InfoTimeFields
}

type Simple

type Simple struct {
	// schema
	Schema string

	// 鉴权中间件
	AuthMiddleware binding.Middleware
}

Simple Bind参数

func (*Simple) Bind

func (simple *Simple) Bind(binder *binding.Binder)

type UpdatePermissionGroupJsonBody

type UpdatePermissionGroupJsonBody struct {
	request.IDJsonBody
	Name        string `json:"name" assign:"toField:Name"`
	Description string `json:"description" assign:"toField:Description"`
}

type UpdatePermissionsOfPermissionGroupJsonBody

type UpdatePermissionsOfPermissionGroupJsonBody struct {
	request.IDJsonBody
	PermissionIDs []string `json:"permissionIds" assign:"toField:PermissionIDs"`
}

Jump to

Keyboard shortcuts

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