Apiform

package
v0.0.0-...-b484ebe Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Addser

type Addser struct {
	Nickname string `form:"nickname"`
	Ip       string `form:"ip" binding:"required"`
	Port     int    `form:"port" binding:"required"`
	Username string `form:"username" binding:"required"`
	Password string `form:"password" binding:"required"`
	Desc     string `form:"desc"`
}

type Edit

type Edit struct {
	ID       int64  `form:"id" binding:"required"`
	Nickname string `form:"nickname"`
	Ip       string `form:"ip"`
	Port     int    `form:"port"`
	Username string `form:"username"`
}

type EditPass

type EditPass struct {
	ID       int64  `form:"id" binding:"required"`
	Password string `form:"password" binding:"required"`
}

type GetTerm

type GetTerm struct {
	ID       int64  `form:"id" binding:"required"`
	Password string `form:"password"`
	Setpass  string `from:"setpass"`
}

func (*GetTerm) Decode

func (t *GetTerm) Decode(server tables.SSHServer) (sid string, err error)

type List_resp

type List_resp struct {
	List  []tables.SSHServer
	Count uint
}

type Login

type Login struct {
	Phone int64  `form:"phone" binding:"required"`
	Code  string `form:"code" binding:"required"`
}

type Resp

type Resp struct {
	Code  int    `json:"code"`
	Data  any    `json:"data"`
	Msg   string `json:"msg"`
	Token string `json:"token"`
}

type Send

type Send struct {
	Phone string `form:"phone" binding:"required"`
}

type SerInfo

type SerInfo struct {
	ID       int64
	Ip       string
	Port     int
	Username string
	Password string
	BindUser int64
}

type Slist

type Slist struct {
	Page  int `form:"page" binding:"required"`
	Limit int `form:"limit" binding:"required"`
}

type WsAuth

type WsAuth struct {
	Sid string `uri:"sid" binding:"required,uuid"`
}

Jump to

Keyboard shortcuts

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