package
Version:
v0.0.0-...-426aaea
Opens a new window with list of versions in this module.
Published: Jul 5, 2022
License: MIT
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type AdminInfo struct {
ID int `json:"id"`
Name string `json:"name"`
LoginTime time.Time `json:"login_time"`
Avatar string `json:"avatar"`
Introduction string `json:"introduction"`
Roles []string `json:"roles"`
}
type AdminSessionInfo struct {
ID int `json:"id"`
Username string `json:"user_name"`
LoginTime time.Time `json:"login_time"`
}
type Response struct {
Errno int `json:"errno"`
ErrMsg string `json:"errmsg,omitempty"`
Data interface{} `json:"data,omitempty"`
}
func BuildResponseOkWithData(code int, data interface{}) Response
type ServiceList struct {
Total int `json:"total"`
List []*ServiceListItem `json:"list"`
}
type ServiceListItem struct {
ID uint `json:"id"`
ServiceName string `json:"service_name"`
ServiceDesc string `json:"service_desc"`
LoadType int `json:"load_type" `
ServiceAddr string `json:"service_addr"`
Qps int64 `json:"qps" `
Qpd int64 `json:"qpd" `
TotalNode int `json:"total_node"`
}
type Token struct {
Token string `json:"token"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.