request

package
v0.5.17 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2024 License: GPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApiAddReq

type ApiAddReq struct {
	Method   string `json:"method" validate:"required,min=1,max=20"`
	Path     string `json:"path" validate:"required,min=1,max=100"`
	Category string `json:"category" validate:"required,min=1,max=50"`
	Remark   string `json:"remark" validate:"min=0,max=100"`
}

ApiAddReq 添加资源结构体

type ApiDeleteReq

type ApiDeleteReq struct {
	ApiIds []uint `json:"apiIds" validate:"required"`
}

ApiDeleteReq 删除资源结构体

type ApiGetTreeReq

type ApiGetTreeReq struct {
}

ApiGetTreeReq 获取资源树结构体

type ApiListReq

type ApiListReq struct {
	Method   string `json:"method" form:"method"`
	Path     string `json:"path" form:"path"`
	Category string `json:"category" form:"category"`
	Creator  string `json:"creator" form:"creator"`
	PageNum  int    `json:"pageNum" form:"pageNum"`
	PageSize int    `json:"pageSize" form:"pageSize"`
}

ApiListReq 获取资源列表结构体

type ApiUpdateReq

type ApiUpdateReq struct {
	ID       uint   `json:"id" validate:"required"`
	Method   string `json:"method" validate:"min=1,max=20"`
	Path     string `json:"path" validate:"min=1,max=100"`
	Category string `json:"category" validate:"min=1,max=50"`
	Remark   string `json:"remark" validate:"min=0,max=100"`
}

ApiUpdateReq 更新资源结构体

type BaseChangePwdReq

type BaseChangePwdReq struct {
	Mail string `json:"mail" validate:"required,min=0,max=100"`
	Code string `json:"code" validate:"required,len=6"`
}

BaseChangePwdReq 修改密码结构体

type BaseDashboardReq

type BaseDashboardReq struct {
}

BaseDashboardReq 系统首页展示数据结构体

type BaseSendCodeReq added in v0.5.8

type BaseSendCodeReq struct {
	Mail string `json:"mail" validate:"required,min=0,max=100"`
}

BaseSendCodeReq 发送验证码

type DecryptPasswdReq added in v0.5.5

type DecryptPasswdReq struct {
	Passwd string `json:"passwd" form:"passwd" validate:"required"`
}

DecryptPasswdReq

type DingGroupAddReq

type DingGroupAddReq struct {
	GroupType string `json:"groupType" validate:"required,min=1,max=20"`
	GroupName string `json:"groupName" validate:"required,min=1,max=128"`
	//父级Id 大于等于0 必填
	ParentId           uint   `json:"parentId" validate:"omitempty,min=0"`
	Remark             string `json:"remark" validate:"min=0,max=128"` // 分组的中文描述
	SourceDeptId       string `json:"sourceDeptId"`
	Source             string `json:"source"`
	SourceDeptParentId string `json:"SourceDeptParentId"`
	SourceUserNum      int    `json:"sourceUserNum"`
}

DingTalkGroupAddReq 添加钉钉资源结构体

type DingUserAddReq

type DingUserAddReq struct {
	Username      string `json:"username" validate:"required,min=2,max=50"`
	Password      string `json:"password"`
	Nickname      string `json:"nickname" validate:"required,min=0,max=50"`
	GivenName     string `json:"givenName" validate:"min=0,max=50"`
	Mail          string `json:"mail" validate:"required,min=0,max=100"`
	JobNumber     string `json:"jobNumber" validate:"required,min=0,max=20"`
	PostalAddress string `json:"postalAddress" validate:"min=0,max=255"`
	Departments   string `json:"departments" validate:"min=0,max=512"`
	Position      string `json:"position" validate:"min=0,max=128"`
	Mobile        string `json:"mobile" validate:"required,checkMobile"`
	Avatar        string `json:"avatar"`
	Introduction  string `json:"introduction" validate:"min=0,max=255"`
	Status        uint   `json:"status" validate:"oneof=1 2"`
	DepartmentId  []uint `json:"departmentId" validate:"required"`
	Source        string `json:"source" validate:"min=0,max=50"`
	RoleIds       []uint `json:"roleIds" validate:"required"`
	SourceUserId  string `json:"sourceUserId"`  // 第三方用户id
	SourceUnionId string `json:"sourceUnionId"` // 第三方唯一unionId
}

DingUserAddReq 钉钉用户创建资源结构体

type EncryptPasswdReq added in v0.5.5

type EncryptPasswdReq struct {
	Passwd string `json:"passwd" form:"passwd" validate:"required"`
}

EncryptPasswdReq

type FieldRelationAddReq added in v0.5.0

type FieldRelationAddReq struct {
	Flag       string            `json:"flag" validate:"required,min=1,max=20"`
	Attributes map[string]string `json:"attributes" validate:"required,gt=0"`
}

FieldRelationAddReq 添加资源结构体

type FieldRelationDeleteReq added in v0.5.0

type FieldRelationDeleteReq struct {
	FieldRelationIds []uint `json:"fieldRelationIds" validate:"required"`
}

FieldRelationDeleteReq 删除资源结构体

type FieldRelationListReq added in v0.5.0

type FieldRelationListReq struct {
}

FieldRelationListReq 获取资源列表结构体

type FieldRelationUpdateReq added in v0.5.0

type FieldRelationUpdateReq struct {
	ID         uint              `json:"id" validate:"required"`
	Flag       string            `json:"flag" validate:"required,min=1,max=20"`
	Attributes map[string]string `json:"attributes" validate:"required,gt=0"`
}

FieldRelationUpdateReq 更新资源结构体

type GroupAddReq

type GroupAddReq struct {
	GroupType string `json:"groupType" validate:"required,min=1,max=20"`
	GroupName string `json:"groupName" validate:"required,min=1,max=128"`
	//父级Id 大于等于0 必填
	ParentId uint   `json:"parentId" validate:"omitempty,min=0"`
	Remark   string `json:"remark" validate:"min=0,max=128"` // 分组的中文描述
}

GroupAddReq 添加资源结构体

type GroupAddUserReq

type GroupAddUserReq struct {
	GroupID uint   `json:"groupId" validate:"required"`
	UserIds []uint `json:"userIds" validate:"required"`
}

type GroupDeleteReq

type GroupDeleteReq struct {
	GroupIds []uint `json:"groupIds" validate:"required"`
}

GroupDeleteReq 删除资源结构体

type GroupGetTreeReq

type GroupGetTreeReq struct {
	GroupName string `json:"groupName" form:"groupName"`
	Remark    string `json:"remark" form:"remark"`
	PageNum   int    `json:"pageNum" form:"pageNum"`
	PageSize  int    `json:"pageSize" form:"pageSize"`
}

GroupGetTreeReq 获取资源树结构体

type GroupListAllReq

type GroupListAllReq struct {
	GroupName          string `json:"groupName" form:"groupName"`
	GroupType          string `json:"groupType" form:"groupType"`
	Remark             string `json:"remark" form:"remark"`
	Source             string `json:"source" form:"source"`
	SourceDeptId       string `json:"sourceDeptId"`
	SourceDeptParentId string `json:"SourceDeptParentId"`
}

GroupListAllReq 获取资源列表结构体,不分页

type GroupListReq

type GroupListReq struct {
	GroupName string `json:"groupName" form:"groupName"`
	Remark    string `json:"remark" form:"remark"`
	PageNum   int    `json:"pageNum" form:"pageNum"`
	PageSize  int    `json:"pageSize" form:"pageSize"`
	SyncState uint   `json:"syncState" form:"syncState"`
}

GroupListReq 获取资源列表结构体

type GroupRemoveUserReq

type GroupRemoveUserReq struct {
	GroupID uint   `json:"groupId" validate:"required"`
	UserIds []uint `json:"userIds" validate:"required"`
}

type GroupUpdateReq

type GroupUpdateReq struct {
	ID        uint   `json:"id" form:"id" validate:"required"`
	GroupName string `json:"groupName" validate:"required,min=1,max=128"`
	Remark    string `json:"remark" validate:"min=0,max=128"` // 分组的中文描述
}

GroupUpdateReq 更新资源结构体

type MenuAddReq struct {
	Name       string `json:"name" validate:"required,min=1,max=50"`
	Title      string `json:"title" validate:"required,min=1,max=50"`
	Icon       string `json:"icon" validate:"min=0,max=50"`
	Path       string `json:"path" validate:"required,min=1,max=100"`
	Redirect   string `json:"redirect" validate:"min=0,max=100"`
	Component  string `json:"component" validate:"required,min=1,max=100"`
	Sort       uint   `json:"sort" validate:"gte=1,lte=999"`
	Status     uint   `json:"status" validate:"oneof=1 2"`
	Hidden     uint   `json:"hidden" validate:"oneof=1 2"`
	NoCache    uint   `json:"noCache" validate:"oneof=1 2"`
	AlwaysShow uint   `json:"alwaysShow" validate:"oneof=1 2"`
	Breadcrumb uint   `json:"breadcrumb" validate:"oneof=1 2"`
	ActiveMenu string `json:"activeMenu" validate:"min=0,max=100"`
	ParentId   uint   `json:"parentId"`
}

MenuAddReq 添加资源结构体

type MenuDeleteReq struct {
	MenuIds []uint `json:"menuIds" validate:"required"`
}

MenuDeleteReq 删除资源结构体

type MenuGetAccessTreeReq struct {
	ID uint `json:"id" form:"id"`
}

MenuGetAccessTreeReq 获取用户菜单树

type MenuGetTreeReq struct {
}

MenuGetTreeReq 获取菜单树结构体

type MenuListReq struct {
}

MenuListReq 列表结构体

type MenuUpdateReq struct {
	ID         uint   `json:"id" validate:"required"`
	Name       string `json:"name" validate:"required,min=1,max=50"`
	Title      string `json:"title" validate:"required,min=1,max=50"`
	Icon       string `json:"icon" validate:"min=0,max=50"`
	Path       string `json:"path" validate:"required,min=1,max=100"`
	Redirect   string `json:"redirect" validate:"min=0,max=100"`
	Component  string `json:"component" validate:"min=0,max=100"`
	Sort       uint   `json:"sort" validate:"gte=1,lte=999"`
	Status     uint   `json:"status" validate:"oneof=1 2"`
	Hidden     uint   `json:"hidden" validate:"oneof=1 2"`
	NoCache    uint   `json:"noCache" validate:"oneof=1 2"`
	AlwaysShow uint   `json:"alwaysShow" validate:"oneof=1 2"`
	Breadcrumb uint   `json:"breadcrumb" validate:"oneof=1 2"`
	ActiveMenu string `json:"activeMenu" validate:"min=0,max=100"`
	ParentId   uint   `json:"parentId" validate:"gte=0"`
}

MenuUpdateReq 更新资源结构体

type OperationLogDeleteReq

type OperationLogDeleteReq struct {
	OperationLogIds []uint `json:"operationLogIds" validate:"required"`
}

OperationLogDeleteReq 批量删除操作日志结构体

type OperationLogListReq

type OperationLogListReq struct {
	Username string `json:"username" form:"username"`
	Ip       string `json:"ip" form:"ip"`
	Path     string `json:"path" form:"path"`
	Status   int    `json:"status" form:"status"`
	PageNum  int    `json:"pageNum" form:"pageNum"`
	PageSize int    `json:"pageSize" form:"pageSize"`
}

OperationLogListReq 操作日志请求结构体

type RegisterAndLoginReq

type RegisterAndLoginReq struct {
	Username string `form:"username" json:"username" binding:"required"`
	Password string `form:"password" json:"password" binding:"required"`
}

RegisterAndLoginReq 用户登录结构体

type RoleAddReq

type RoleAddReq struct {
	Name    string `json:"name" validate:"required,min=1,max=20"`
	Keyword string `json:"keyword" validate:"required,min=1,max=20"`
	Remark  string `json:"remark" validate:"min=0,max=100"`
	Status  uint   `json:"status" validate:"oneof=1 2"`
	Sort    uint   `json:"sort" validate:"gte=1,lte=999"`
}

RoleAddReq 添加资源结构体

type RoleDeleteReq

type RoleDeleteReq struct {
	RoleIds []uint `json:"roleIds" validate:"required"`
}

RoleDeleteReq 删除资源结构体

type RoleGetApiListReq

type RoleGetApiListReq struct {
	RoleID uint `json:"roleId" form:"roleId" validate:"required"`
}

RoleGetApiListReq 获取角色接口列表结构体

type RoleGetMenuListReq

type RoleGetMenuListReq struct {
	RoleID uint `json:"roleId" form:"roleId" validate:"required"`
}

RoleGetMenuListReq 获取角色菜单列表结构体

type RoleGetTreeReq

type RoleGetTreeReq struct {
}

RoleGetTreeReq 获取资源树结构体

type RoleListReq

type RoleListReq struct {
	Name     string `json:"name" form:"name"`
	Keyword  string `json:"keyword" form:"keyword"`
	Status   uint   `json:"status" form:"status"`
	PageNum  int    `json:"pageNum" form:"pageNum"`
	PageSize int    `json:"pageSize" form:"pageSize"`
}

RoleListReq 列表结构体

type RoleUpdateApisReq

type RoleUpdateApisReq struct {
	RoleID uint   `json:"roleId" validate:"required"`
	ApiIds []uint `json:"apiIds" validate:"required"`
}

RoleUpdateApisReq 更新角色接口结构体

type RoleUpdateMenusReq

type RoleUpdateMenusReq struct {
	RoleID  uint   `json:"roleId" validate:"required"`
	MenuIds []uint `json:"menuIds" validate:"required"`
}

RoleUpdateMenusReq 更新角色菜单结构体

type RoleUpdateReq

type RoleUpdateReq struct {
	ID      uint   `json:"id" validate:"required"`
	Name    string `json:"name" validate:"required,min=1,max=20"`
	Keyword string `json:"keyword" validate:"required,min=1,max=20"`
	Remark  string `json:"remark" validate:"min=0,max=100"`
	Status  uint   `json:"status" validate:"oneof=1 2"`
	Sort    uint   `json:"sort" validate:"gte=1,lte=999"`
}

RoleUpdateReq 更新资源结构体

type SyncDingTalkDeptsReq

type SyncDingTalkDeptsReq struct {
}

SyncDingTalkDeptsReq 同步钉钉部门信息

type SyncDingUserReq

type SyncDingUserReq struct {
}

SyncDingUserReq 同步钉钉用户信息

type SyncFeiShuDeptsReq added in v0.3.0

type SyncFeiShuDeptsReq struct {
}

SyncFeiShuDeptsReq 同步飞书部门信息

type SyncFeiShuUserReq added in v0.3.0

type SyncFeiShuUserReq struct {
}

SyncFeiShuUserReq 同步飞书用户信息

type SyncOpenLdapDeptsReq added in v0.5.0

type SyncOpenLdapDeptsReq struct {
}

SyncOpenLdapDeptsReq 同步原ldap部门信息

type SyncOpenLdapUserReq added in v0.5.0

type SyncOpenLdapUserReq struct {
}

SyncOpenLdapUserReq 同步ldap用户信息

type SyncSqlGrooupsReq added in v0.5.5

type SyncSqlGrooupsReq struct {
	GroupIds []uint `json:"groupIds" validate:"required"`
}

SyncOpenLdapDeptsReq 同步原ldap部门信息

type SyncSqlUserReq added in v0.5.5

type SyncSqlUserReq struct {
	UserIds []uint `json:"userIds" validate:"required"`
}

type SyncWeComDeptsReq added in v0.2.0

type SyncWeComDeptsReq struct {
}

SyncWeComDeptsReq 同步企业微信部门信息

type SyncWeComUserReq added in v0.2.0

type SyncWeComUserReq struct {
}

SyncWeComUserReq 同步企业微信用户信息

type UserAddReq

type UserAddReq struct {
	Username      string `json:"username" validate:"required,min=2,max=50"`
	Password      string `json:"password"`
	Nickname      string `json:"nickname" validate:"required,min=0,max=50"`
	GivenName     string `json:"givenName" validate:"min=0,max=50"`
	Mail          string `json:"mail" validate:"required,min=0,max=100"`
	JobNumber     string `json:"jobNumber" validate:"required,min=0,max=20"`
	PostalAddress string `json:"postalAddress" validate:"min=0,max=255"`
	Departments   string `json:"departments" validate:"min=0,max=512"`
	Position      string `json:"position" validate:"min=0,max=128"`
	Mobile        string `json:"mobile" validate:"required,checkMobile"`
	Avatar        string `json:"avatar"`
	Introduction  string `json:"introduction" validate:"min=0,max=255"`
	Status        uint   `json:"status" validate:"oneof=1 2"`
	DepartmentId  []uint `json:"departmentId" validate:"required"`
	Source        string `json:"source" validate:"min=0,max=50"`
	RoleIds       []uint `json:"roleIds" validate:"required"`
}

UserAddReq 创建资源结构体

type UserChangePwdReq

type UserChangePwdReq struct {
	OldPassword string `json:"oldPassword" validate:"required"`
	NewPassword string `json:"newPassword" validate:"required"`
}

UserChangePwdReq 修改密码结构体

type UserChangeUserStatusReq

type UserChangeUserStatusReq struct {
	ID     uint `json:"id" validate:"required"`
	Status uint `json:"status" validate:"oneof=1 2"`
}

UserChangeUserStatusReq 修改用户状态结构体

type UserDeleteReq

type UserDeleteReq struct {
	UserIds []uint `json:"userIds" validate:"required"`
}

UserDeleteReq 批量删除资源结构体

type UserGetUserInfoReq

type UserGetUserInfoReq struct {
}

UserGetUserInfoReq 获取用户信息结构体

type UserInGroupReq

type UserInGroupReq struct {
	GroupID  uint   `json:"groupId" form:"groupId" validate:"required"`
	Nickname string `json:"nickname" form:"nickname"`
}

UserInGroupReq 在分组内的用户

type UserListReq

type UserListReq struct {
	Username     string `json:"username" form:"username"`
	Mobile       string `json:"mobile" form:"mobile" `
	Nickname     string `json:"nickname" form:"nickname"`
	GivenName    string `json:"givenName" form:"givenName"`
	DepartmentId []uint `json:"departmentId" form:"departmentId"`
	Status       uint   `json:"status" form:"status" `
	SyncState    uint   `json:"syncState" form:"syncState" `
	PageNum      int    `json:"pageNum" form:"pageNum"`
	PageSize     int    `json:"pageSize" form:"pageSize"`
}

UserListReq 获取用户列表结构体

type UserNoInGroupReq

type UserNoInGroupReq struct {
	GroupID  uint   `json:"groupId" form:"groupId" validate:"required"`
	Nickname string `json:"nickname" form:"nickname"`
}

UserNoInGroupReq 不在分组内的用户

type UserUpdateReq

type UserUpdateReq struct {
	ID            uint   `json:"id" validate:"required"`
	Username      string `json:"username" validate:"required,min=2,max=50"`
	Nickname      string `json:"nickname" validate:"min=0,max=20"`
	GivenName     string `json:"givenName" validate:"min=0,max=50"`
	Mail          string `json:"mail" validate:"min=0,max=100"`
	JobNumber     string `json:"jobNumber" validate:"min=0,max=20"`
	PostalAddress string `json:"postalAddress" validate:"min=0,max=255"`
	Departments   string `json:"departments" validate:"min=0,max=512"`
	Position      string `json:"position" validate:"min=0,max=128"`
	Mobile        string `json:"mobile" validate:"checkMobile"`
	Avatar        string `json:"avatar"`
	Introduction  string `json:"introduction" validate:"min=0,max=255"`
	DepartmentId  []uint `json:"departmentId" validate:"required"`
	Source        string `json:"source" validate:"min=0,max=50"`
	RoleIds       []uint `json:"roleIds" validate:"required"`
}

UserUpdateReq 更新资源结构体

type WeComGroupAddReq added in v0.2.0

type WeComGroupAddReq struct {
	GroupType string `json:"groupType" validate:"required,min=1,max=20"`
	GroupName string `json:"groupName" validate:"required,min=1,max=128"`
	//父级Id 大于等于0 必填
	ParentId           uint   `json:"parentId" validate:"omitempty,min=0"`
	Remark             string `json:"remark" validate:"min=0,max=128"` // 分组的中文描述
	SourceDeptId       string `json:"sourceDeptId"`
	Source             string `json:"source"`
	SourceDeptParentId string `json:"SourceDeptParentId"`
	SourceUserNum      int    `json:"sourceUserNum"`
}

WeComGroupAddReq 添加企业微信资源结构体

type WeComUserAddReq added in v0.2.0

type WeComUserAddReq struct {
	Username      string `json:"username" validate:"required,min=2,max=50"`
	Password      string `json:"password"`
	Nickname      string `json:"nickname" validate:"required,min=0,max=50"`
	GivenName     string `json:"givenName" validate:"min=0,max=50"`
	Mail          string `json:"mail" validate:"required,min=0,max=100"`
	JobNumber     string `json:"jobNumber" validate:"required,min=0,max=20"`
	PostalAddress string `json:"postalAddress" validate:"min=0,max=255"`
	Departments   string `json:"departments" validate:"min=0,max=512"`
	Position      string `json:"position" validate:"min=0,max=128"`
	Mobile        string `json:"mobile" validate:"required,checkMobile"`
	Avatar        string `json:"avatar"`
	Introduction  string `json:"introduction" validate:"min=0,max=255"`
	Status        uint   `json:"status" validate:"oneof=1 2"`
	DepartmentId  []uint `json:"departmentId" validate:"required"`
	Source        string `json:"source" validate:"min=0,max=50"`
	RoleIds       []uint `json:"roleIds" validate:"required"`
	SourceUserId  string `json:"sourceUserId"`  // 第三方用户id
	SourceUnionId string `json:"sourceUnionId"` // 第三方唯一unionId
}

WeComUserAddReq 企业微信用户创建资源结构体

Jump to

Keyboard shortcuts

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