model

package
v0.0.0-...-f638a73 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GroupInfo

type GroupInfo struct {
	Id   int    `json:"id,omitempty"`
	Name string `json:"name,omitempty"`
	Note string `json:"note,omitempty"`
}

type GroupList

type GroupList []GroupInfo

type GroupTable

type GroupTable struct {
	Id   int    `json:"id,omitempty"`
	Name string `json:"name,omitempty"`
	Note string `json:"note,omitempty"`
}

type GroupUpdate

type GroupUpdate struct {
	Name string `json:"name,omitempty"`
	Note string `json:"note,omitempty"`
}

type Jwt

type Jwt struct {
	Token string `json:"token,omitempty"`
}

type LoginService

type LoginService struct {
	Uuid             string                     `json:"uuid,omitempty"`
	Name             string                     `json:"name,omitempty"`
	Ip               string                     `json:"ip,omitempty"`
	ScanFiles        map[string]ScanFile        `json:"scanFiles,omitempty"`
	ScanApplications map[string]ScanApplication `json:"scanApplications,omitempty"`
}

type LoginServiceList

type LoginServiceList []LoginService

type ScanApplication

type ScanApplication struct {
	Name         string `json:"Name,omitempty"`
	LastDataTime int64  `json:"lastDataTime,omitempty"`
}

type ScanFile

type ScanFile struct {
	Path         string `json:"path,omitempty"`
	DataCount    int32  `json:"dataCount,omitempty"`
	LastDataTime int64  `json:"lastDataTime,omitempty"`
}

type ServciceList

type ServciceList []ServiceInfo

type ServiceInfo

type ServiceInfo struct {
	Uuid       string `json:"uuid,omitempty"`
	Name       string `json:"name,omitempty"`
	PrivateKey string `json:"privateKey,omitempty"`
	GroupId    int    `json:"groupId,omitempty"`
}

type ServiceInsert

type ServiceInsert struct {
	Uuid       string `json:"uuid,omitempty"`
	Name       string `json:"name,omitempty"`
	PrivateKey string `json:"privateKey,omitempty"`
	GroupId    int    `json:"groupId,omitempty"`
}

type ServiceTable

type ServiceTable struct {
	Sn         int    `json:"sn,omitempty"`
	Uuid       string `json:"uuid,omitempty"`
	Name       string `json:"name,omitempty"`
	PrivateKey string `json:"privateKey,omitempty"`
	GroupId    int    `json:"groupId,omitempty"`
}

type ServiceUpdate

type ServiceUpdate struct {
	Name    string `json:"name,omitempty"`
	GroupId int    `json:"groupId,omitempty"`
}

type UserAuthUpdate

type UserAuthUpdate struct {
	Role int  `json:"role,omitempty"`
	Auth bool `json:"Auth,omitempty"`
}

type UserInfo

type UserInfo struct {
	Account string    `json:"account,omitempty"`
	Name    string    `json:"name,omitempty"`
	Date    time.Time `json:"date,omitempty"`
	Role    int       `json:"role,omitempty"`
}

type UserInsert

type UserInsert struct {
	Name     string `json:"name,omitempty"`
	Password string `json:"password,omitempty"`
}

type UserList

type UserList []UserInfo

type UserTable

type UserTable struct {
	Id       int    `json:"id,omitempty"`
	Account  string `json:"account,omitempty"`
	Password string `json:"password,omitempty"`
	Name     string `json:"name,omitempty"`
	Date     string `json:"date,omitempty"`
	Role     int    `json:"role,omitempty"`
	Auth     bool   `json:"Auth,omitempty"`
}

type UserUpdate

type UserUpdate struct {
	Name     string `json:"name,omitempty"`
	Password string `json:"password,omitempty"`
}

Jump to

Keyboard shortcuts

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