reqdto

package
v0.0.0-...-d6791e1 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateRoleDto

type CreateRoleDto struct {
	Name        string                     `json:"name" validate:"excludes=ADMIN,lte=255"`
	Description string                     `json:"description" validate:"lte=255"`
	Permissions []*CreateRolePermissionDto `json:"permissions,omitempty" validate:"dive" default:"[]"`
}

type CreateRolePermissionDto

type CreateRolePermissionDto struct {
	Code string `json:"code" validate:"required,lte=255"`
}

type GetListRolesDto

type GetListRolesDto struct {
	Skip   int    `query:"skip"`
	Offset int    `query:"offset"`
	Search string `query:"search"`
}

func TransformListRolesDto

func TransformListRolesDto(c echo.Context) (*pagination.PaginateStat, *GetListRolesDto, error)

type UpdateRoleDto

type UpdateRoleDto struct {
	Name        string                     `body:"name" validate:"excludes=ADMIN,lte=255"`
	Description string                     `body:"description"`
	Permissions []*CreateRolePermissionDto `body:"permissions" validate:"dive" default:"[]"`
}

Jump to

Keyboard shortcuts

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