request

package
v0.0.0-...-d62a2a9 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AutoUpdateConfig

type AutoUpdateConfig struct {
	AutoUpdate  bool   `json:"auto_update"`
	UpdateRange string `json:"update_range"`
	Time        string `json:"time"`
}

AutoUpdateConfig 自动升级配置

type ChangePasswd

type ChangePasswd struct {
	OldPassword string `json:"old_pin"  binding:"required"`
	NewPassword string `json:"pin"  binding:"required"`
}

ChangePasswd 修改密码

type CreateDevice

type CreateDevice struct {
	Type []int  `json:"type"`
	Pin  string `json:"pin" binding:"required"`
}

CreateDevice 生成设备密钥

type CreateSm2

type CreateSm2 struct {
	Index *uint  `json:"index" binding:"required"`
	Type  []int  `json:"type"`
	Pin   string `json:"pin" binding:"required"`
}

CreateSm2 生成非对称密钥

type CreateSm4

type CreateSm4 struct {
	Index *uint `json:"index" binding:"required"`
}

CreateSm4 生成对称密钥

type CreateUKeyUser

type CreateUKeyUser struct {
	Name     string `json:"name" binding:"required"`
	Password string `json:"pin"  binding:"required"`
}

CreateUKeyUser 初始化时的添加后端ukey管理员

type DeleteSm2

type DeleteSm2 struct {
	Index *uint `json:"index" binding:"required"`
	Type  []int `json:"type"`
}

DeleteSm2 删除非对称密钥

type DeleteSm4

type DeleteSm4 struct {
	Index *uint `json:"index" binding:"required"`
}

DeleteSm4 删除对称密钥

type ExportPub

type ExportPub struct {
	Index *int `json:"index" form:"index" binding:"required"`
}

ExportPub 导出公钥

type IdsReq

type IdsReq struct {
	Ids []int `json:"ids" form:"ids"`
}

type KeyBackup

type KeyBackup struct {
	Name     string `json:"name" binding:"required"`
	Password string `json:"pin"  binding:"required"`
}

KeyBackup 密钥备份与恢复

type Network

type Network struct {
	Addr    string `json:"addr"`
	Gateway string `json:"gateway"`
	Netmask string `json:"netmask"`
}

type PageInfo

type PageInfo struct {
	Page     int    `json:"page" form:"page"`           // 页码
	PageSize int    `json:"page_size" form:"page_size"` // 每页大小
	Keyword  string `json:"keyword" form:"keyword"`     //关键字
	Sort     string `json:"sort" form:"sort"`           //排序参数
}

type SetNetwork

type SetNetwork struct {
	Admin Network `json:"admin" binding:"required"`
	SDF   Network `json:"sdf"`
}

SetNetwork 网络配置

type SetSm2Pin

type SetSm2Pin struct {
	Index *int   `json:"index" binding:"required"`
	Pin   string `json:"pin" binding:"required"`
}

SetSm2Pin 设置访问码

type SysLogCreate

type SysLogCreate struct {
	Username string `json:"username"`
	Content  string `json:"content"`
	ClientIP string `json:"client_ip"`
	Result   int    `json:"result"`
}

SysLogCreate 添加管理员日志

type SysLogList

type SysLogList struct {
	PageInfo
	Category  int       `json:"category" form:"category"`
	StartDate time.Time `json:"start_time" form:"start_time"`
	EndDate   time.Time `json:"end_time" form:"end_time"`
}

SysLogList 日志列表

type UKeyLogin

type UKeyLogin struct {
	Name      string `json:"name" binding:"required"`
	Serial    string `json:"serial" binding:"required"`
	SignData  string `json:"sign" binding:"required"`
	TimeStamp string `json:"timestamp" binding:"required"`
}

type UserCreate

type UserCreate struct {
	Name      string `json:"name" binding:"required"`
	Serial    string `json:"serial"`
	SignData  string `json:"sign"`
	TimeStamp string `json:"timestamp"`
	RoleId    int    `json:"role_id" form:"role_id"`
	Cert      string `json:"cert"`
	Pin       string `json:"pin"`
}

UserCreate 创建用户

type UserDelete

type UserDelete struct {
	ID       int    `json:"id"`
	Username string `json:"name"`
	KeySn    string `json:"keysn"`
}

UserDelete 删除管理员

type UserList

type UserList struct {
	PageInfo
	RoleId []int `json:"role_id" form:"role_id"`
}

UserList 用户列表

type UserLogin

type UserLogin struct {
	Name      string `json:"name" binding:"required"`
	LoginType string `json:"login_type"`
	Password  string `json:"pin"  binding:"required"`
}

UserLogin 用户登录请求

Jump to

Keyboard shortcuts

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