Documentation ¶
Index ¶
Constants ¶
const ( B = 1 KB = 1024 * B MB = 1024 * KB GB = 1024 * MB )
Variables ¶
This section is empty.
Functions ¶
func TrackNetworkSpeed ¶
func TrackNetworkSpeed()
Types ¶
type File ¶
func (File) UploadFile ¶
UploadFile 上传图片 @Summary 上传图片 @Description 获取JSON @Tags 公共接口 @Accept multipart/form-data @Param type query string true "type" (1:单图,2:多图, 3:base64图片) @Param file formData file true "file" @Success 200 {string} string "{"code": 200, "message": "添加成功"}" @Success 200 {string} string "{"code": -1, "message": "添加失败"}" @Router /api/v1/public/uploadFile [post] @Security Bearer
type FileResponse ¶
type ServerMonitor ¶
func (ServerMonitor) ServerInfo ¶
func (e ServerMonitor) ServerInfo(c *gin.Context)
ServerInfo 获取系统信息 @Summary 系统信息 @Description 获取JSON @Tags 系统信息 @Success 200 {object} response.Response "{"code": 200, "data": [...]}" @Router /api/v1/server-monitor [get] @Security Bearer
func (ServerMonitor) ServerVer ¶
func (e ServerMonitor) ServerVer(c *gin.Context)
ServerVer @Summary Server Version @Description JSON @Tags System Success 200 {object} response.Response "{"code": 200, "data": [...]}" Router /api/v1/server-ver [get] Security Bearer