Help us shape the future of Go! Take the 2026 Go Developer Survey

request

package
v2.0.6 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2026 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BindRoleApiReq

type BindRoleApiReq struct {
	RoleId int64   `json:"roleId" form:"roleId" binding:"required"`
	ApiIds []int64 `json:"apiIds" form:"apiIds" binding:"required"`
}

type BindRoleResourceReq

type BindRoleResourceReq struct {
	RoleId      int64   `json:"roleId" form:"roleId" binding:"required"`
	ResourceIds []int64 `json:"resourceIds" form:"resourceIds" binding:"required"`
}

type ChangePasswordReq

type ChangePasswordReq struct {
	LoginName   string `json:"loginName" form:"loginName" binding:"required"`
	OldPassword string `json:"oldPassword" form:"oldPassword" binding:"required"`
	NewPassword string `json:"newPassword" form:"newPassword" binding:"required"`
}

type ChangeStatusReq

type ChangeStatusReq struct {
	ID     int64 `json:"id" form:"id" binding:"required"`
	Status *int  `json:"status" form:"status" binding:"required"`
}

type CreateDeptReq

type CreateDeptReq struct {
	ParentId  uint   `json:"parentId" form:"parentId"`
	Ancestors string `json:"ancestors" form:"ancestors"`
	Name      string `json:"name" form:"name" binding:"required"`
	Sort      int    `json:"sort" form:"sort"`
	Leader    string `json:"leader" form:"leader"`
	Mobile    string `json:"mobile" form:"mobile"`
	Type      string `json:"type" form:"type"`
}

type CreateDictReq

type CreateDictReq struct {
	Type     string `json:"type" form:"type" binding:"required"`
	ParentId int    `json:"parentId" form:"parentId"`
	Name     string `json:"name" form:"name" binding:"required"`
	Key      string `json:"key" form:"key" binding:"required"`
	Value    string `json:"value" form:"value" binding:"required"`
	Sort     int    `json:"sort" form:"sort"`
	Remark   string `json:"remark" form:"remark"`
}

type CreatePostReq

type CreatePostReq struct {
	PostCode string `json:"post_code" form:"post_code" binding:"required"`
	PostName string `json:"post_name" form:"post_name" binding:"required"`
	DeptId   int64  `json:"dept_id" form:"dept_id" binding:"required"`
}

type CreateResourceReq

type CreateResourceReq struct {
	ResourceLevel  int    `json:"menuLevel" form:"menuLevel" binding:"required"` // 资源等级(1主资源 2子资源)
	ParentId       uint   `json:"parentId" form:"parentId"`
	Path           string `json:"path" form:"path" binding:"required"`
	Name           string `json:"name" form:"name" binding:"required"`
	Component      string `json:"component" form:"component" binding:"required"`
	Redirect       string `json:"redirect" form:"redirect"`
	Icon           string `json:"icon" form:"icon"`
	Title          string `json:"title" form:"title" binding:"required"`
	Sort           int    `json:"sort" form:"sort"`
	Hidden         uint8  `json:"hidden" form:"hidden"`
	KeepAlive      uint8  `json:"keepAlive" form:"keepAlive"`
	AlwaysShow     uint8  `json:"alwaysShow" form:"alwaysShow"`
	Breadcrumb     uint8  `json:"breadcrumb" form:"breadcrumb"`
	Affix          uint8  `json:"affix" form:"affix"`
	ActiveResource string `json:"activeResource" form:"activeResource"`
	Status         int    `json:"status" form:"status"`
	ApiId          *uint  `json:"apiId" form:"apiId"` // 资源关联的apiId
}

type CreateRoleReq

type CreateRoleReq struct {
	Name        string `json:"name" form:"name" binding:"required"`
	Ident       string `json:"ident" form:"ident" binding:"required"`
	Description string `json:"description" form:"description"`
}

type CreateSysUserExtReq

type CreateSysUserExtReq struct {
	UserId uint `json:"userId" form:"userId" binding:"required"`
	ListSysUserExtReq
}

type DeleteByIdReq

type DeleteByIdReq struct {
	ID int64 `json:"id" form:"id" binding:"required"`
}

type GetApiReq

type GetApiReq struct {
	ID uint `json:"id" form:"id" binding:"required"`
}

type GetByIdReq

type GetByIdReq struct {
	ID *int64 `json:"id" form:"id" binding:"required"`
}

type GetCaptchaReq

type GetCaptchaReq struct {
	Width  int `json:"width" form:"width" binding:"required"`
	Height int `json:"height" form:"height" binding:"required"`
	Length int `json:"length" form:"length"`
	Type   int `json:"type" form:"type"` //0:数字 1:字母 2:算术
}

type GetDeptReq

type GetDeptReq struct {
	ID   uint   `json:"id" form:"id"`
	Name string `json:"name" form:"name"`
}

type GetDictReq

type GetDictReq struct {
	ID   uint   `json:"id" form:"id"`
	Type string `json:"type" form:"type"`
	Name string `json:"name" form:"name"`
	Key  string `json:"key" form:"key"`
}

type GetPostReq

type GetPostReq struct {
	ID       int64  `json:"id" form:"id"`
	PostCode string `json:"post_code" form:"post_code"`
	PostName string `json:"post_name" form:"post_name"`
}

type GetResourceReq

type GetResourceReq struct {
	ID    uint   `json:"id" form:"id"`
	Title string `json:"title" form:"title"` //资源标题
}

type GetRoleReq

type GetRoleReq struct {
	ID    uint   `json:"id" form:"id"`
	Name  string `json:"name" form:"name"`
	Ident string `json:"ident" form:"ident"`
}

type GetSysConfigReq

type GetSysConfigReq struct {
	ID  uint   `json:"id" form:"id"`   // ID
	Key string `json:"key" form:"key"` // 配置键名
}

type GetSysUserExtReq

type GetSysUserExtReq struct {
	UserId uint `json:"userId" form:"userId" binding:"required"`
}

type GetSysUserReq

type GetSysUserReq struct {
	ID        uint64 `json:"id" form:"id"`
	LoginName string `json:"loginName" form:"loginName"`
	Email     string `json:"email" form:"email"`
	Mobile    string `json:"mobile" form:"mobile"`
	NickName  string `json:"nickName" form:"nickName"`
}

type GetTreeResourceReq

type GetTreeResourceReq struct {
	ParentId uint `json:"parentId" form:"parentId"` //父级资源id,0表示获取所有一级资源
	ByRole   bool `json:"byRole" form:"byRole"`     // 按角色获取资源
}

type GetUriReq

type GetUriReq struct {
	Uri string `json:"uri" form:"uri" binding:"required"`
}

type ListApiReq

type ListApiReq struct {
	Group    string `json:"group" form:"group"`
	NeedAuth int    `json:"needAuth" form:"needAuth"`
	Page     int    `json:"page" form:"page"`
	PageSize int    `json:"pageSize" form:"pageSize"`
}

type ListDeptReq

type ListDeptReq struct {
	ParentId uint `json:"parentId" form:"parentId"`
	Page     int  `json:"page" form:"page"`
	PageSize int  `json:"pageSize" form:"pageSize"`
}

type ListDictReq

type ListDictReq struct {
	Type     string `json:"type" form:"type"`
	ParentId int    `json:"parentId" form:"parentId"`
	Name     string `json:"name" form:"name"`
	Page     int    `json:"page" form:"page"`
	PageSize int    `json:"pageSize" form:"pageSize"`
}

type ListPostReq

type ListPostReq struct {
	DeptId   int64 `json:"dept_id" form:"dept_id"`
	Page     int   `json:"page" form:"page"`
	PageSize int   `json:"pageSize" form:"pageSize"`
}

type ListResourceReq

type ListResourceReq struct {
	ParentId  uint   `json:"parentId" form:"parentId"`
	Path      string `json:"path" form:"path"`           //资源路径
	Name      string `json:"name" form:"name"`           //资源名称
	Component string `json:"component" form:"component"` //组件路径
	Title     string `json:"title" form:"title"`         //资源标题
	Status    int    `json:"status" form:"status"`
	Page      int    `json:"page" form:"page"`
	PageSize  int    `json:"pageSize" form:"pageSize"`
}

type ListRoleApiReq

type ListRoleApiReq struct {
	RoleId int64 `json:"roleId" form:"roleId" binding:"required"`
}

type ListRoleReq

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

type ListRoleResourceReq

type ListRoleResourceReq struct {
	RoleId int64 `json:"roleId" form:"roleId" binding:"required"`
}

type ListSysConfigReq

type ListSysConfigReq struct {
	Module   string `json:"module" form:"module"`     // 模块
	Page     int    `json:"page" form:"page"`         // 页码
	PageSize int    `json:"pageSize" form:"pageSize"` // 每页数量
}

type ListSysUserExtReq

type ListSysUserExtReq struct {
	DepartmentId int `json:"departmentId" form:"departmentId"`
	RoleId       int `json:"roleId" form:"roleId"`
	PositionId   int `json:"positionId" form:"positionId"`
	Page         int `json:"page" form:"page"`
	PageSize     int `json:"pageSize" form:"pageSize"`
}

type ListSysUserReq

type ListSysUserReq struct {
	Keyword  string `json:"keyword" form:"keyword"`
	Status   uint8  `json:"status" form:"status"`
	UserType string `json:"userType" form:"userType"`
	DeptId   uint64 `json:"deptId" form:"deptId"`
	RoleId   uint64 `json:"roleId" form:"roleId"`
	PostId   uint64 `json:"postId" form:"postId"`
	Page     int    `json:"page" form:"page"`
	PageSize int    `json:"pageSize" form:"pageSize"`
}

type LoginReq

type LoginReq struct {
	LoginName string            `json:"loginName" form:"loginName" binding:"required"` // 可以是用户名或邮箱或手机号,自动识别
	Password  string            `json:"password" form:"password" binding:"required"`
	Captcha   *VerifyCaptchaReq `json:"captcha" form:"captcha" binding:"required"`
}

type RegisterReq

type RegisterReq struct {
	LoginName string            `json:"loginName" form:"loginName" binding:"required"`
	Password  string            `json:"password" form:"password" binding:"required"`
	Email     string            `json:"email" form:"email"`
	Mobile    string            `json:"mobile" form:"mobile"`
	NickName  string            `json:"nickName" form:"nickName"`
	Sex       uint8             `json:"sex" form:"sex"`
	Avatar    string            `json:"avatar" form:"avatar"`
	Captcha   *VerifyCaptchaReq `json:"captcha" form:"captcha" binding:"required"`
}

type VerifyCaptchaReq

type VerifyCaptchaReq struct {
	ID   string `json:"id" form:"id" binding:"required"`
	Code string `json:"code" form:"code" binding:"required"`
}

type VerifyTokenReq

type VerifyTokenReq struct {
	Token string `json:"token" form:"token" binding:"required"`
}

Jump to

Keyboard shortcuts

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