users

package
v0.0.0-...-58bd1cf Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var UserCsvImportJobHandler = handlers.NewJobHandler(newUserCsvImportJobController)

Functions

func UserCreate

func UserCreate(c *xin.Context)

func UserCsvExport

func UserCsvExport(c *xin.Context)

func UserCsvImportSample

func UserCsvImportSample(c *xin.Context)

func UserDeleteBatch

func UserDeleteBatch(c *xin.Context)

func UserDeletes

func UserDeletes(c *xin.Context)

func UserEdit

func UserEdit(c *xin.Context)

func UserIndex

func UserIndex(c *xin.Context)

func UserList

func UserList(c *xin.Context)

func UserNew

func UserNew(c *xin.Context)

func UserUpdate

func UserUpdate(c *xin.Context)

func UserUpdates

func UserUpdates(c *xin.Context)

func UserView

func UserView(c *xin.Context)

Types

type UserCsvImportJobController

type UserCsvImportJobController struct {
	handlers.JobController
}

func (*UserCsvImportJobController) Start

func (ucijc *UserCsvImportJobController) Start(c *xin.Context)

type UserQueryArg

type UserQueryArg struct {
	argutil.QueryArg

	ID     int64    `json:"id" form:"id,strip"`
	Name   string   `json:"name" form:"name,strip"`
	Email  string   `json:"email" form:"email,strip"`
	Role   []string `json:"role" form:"role,strip"`
	Status []string `json:"status" form:"status,strip"`
	CIDR   string   `json:"cidr" form:"cidr,strip"`
}

func (*UserQueryArg) AddWhere

func (uqa *UserQueryArg) AddWhere(c *xin.Context, sqb *sqlx.Builder)

func (*UserQueryArg) HasFilter

func (uqa *UserQueryArg) HasFilter() bool

func (*UserQueryArg) Normalize

func (uqa *UserQueryArg) Normalize(c *xin.Context)

type UserUpdatesArg

type UserUpdatesArg struct {
	ID     string  `json:"id,omitempty" form:"id,strip"`
	Role   string  `json:"role,omitempty" form:"role,strip"`
	Status string  `json:"status,omitempty" form:"status,strip"`
	CIDR   *string `json:"cidr,omitempty" form:"cidr,strip" validate:"omitempty,cidrs"`
}

func (*UserUpdatesArg) IsEmpty

func (uua *UserUpdatesArg) IsEmpty() bool

Jump to

Keyboard shortcuts

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