Documentation
¶
Index ¶
- type Ab
- func (a *Ab) Ab(c *gin.Context)
- func (a *Ab) CheckGuid(cu *model.User, guid string) (gid, uid, cid uint, err error)
- func (a *Ab) ComposeGuid(gid, uid, cid uint) string
- func (a *Ab) PTags(c *gin.Context)
- func (a *Ab) ParseGuid(guid string) (gid, uid, cid uint)
- func (a *Ab) PeerAdd(c *gin.Context)
- func (a *Ab) PeerDel(c *gin.Context)
- func (a *Ab) PeerUpdate(c *gin.Context)
- func (a *Ab) Peers(c *gin.Context)
- func (a *Ab) Personal(c *gin.Context)
- func (a *Ab) Settings(c *gin.Context)
- func (a *Ab) SharedProfiles(c *gin.Context)
- func (a *Ab) TagAdd(c *gin.Context)
- func (a *Ab) TagDel(c *gin.Context)
- func (a *Ab) TagRename(c *gin.Context)
- func (a *Ab) TagUpdate(c *gin.Context)
- func (a *Ab) UpAb(c *gin.Context)
- type Audit
- type Group
- type Index
- type Login
- type Oauth
- type Peer
- type User
- type WebClient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Ab ¶
type Ab struct {
}
func (*Ab) Ab ¶
Ab @Tags 地址 @Summary 地址列表 @Description 地址列表 @Accept json @Produce json @Success 200 {object} response.Response @Failure 500 {object} response.ErrorResponse @Router /ab [get] @Security BearerAuth
func (*Ab) PTags ¶
PTags @Tags 地址[Personal] @Summary 标签 @Description 标签 @Accept json @Produce json @Param guid path string true "guid" @Success 200 {object} model.TagList @Failure 500 {object} response.ErrorResponse @Router /ab/tags/{guid} [post] @Security BearerAuth
func (*Ab) PeerAdd ¶
PeerAdd @Tags 地址[Personal] @Summary 添加地址 @Description 添加地址 @Accept json @Produce json @Param guid path string true "guid" @Success 200 {string} string @Failure 500 {object} response.ErrorResponse @Router /ab/peer/add/{guid} [post] @Security BearerAuth
func (*Ab) PeerDel ¶
PeerDel @Tags 地址[Personal] @Summary 删除地址 @Description 删除地址 @Accept json @Produce json @Param guid path string true "guid" @Success 200 {string} string @Failure 500 {object} response.ErrorResponse @Router /ab/peer/add/{guid} [delete] @Security BearerAuth
func (*Ab) PeerUpdate ¶
PeerUpdate @Tags 地址[Personal] @Summary 更新地址 @Description 更新地址 @Accept json @Produce json @Param guid path string true "guid" @Success 200 {string} string @Failure 500 {object} response.ErrorResponse @Router /ab/peer/update/{guid} [put] @Security BearerAuth
func (*Ab) Peers ¶
Peers @Tags 地址[Personal] @Summary 地址列表 @Description 地址 @Accept json @Produce json @Param current query int false "页码" @Param pageSize query int false "每页数量" @Param ab query string false "guid" @Success 200 {object} response.Response @Failure 500 {object} response.Response @Router /ab/peers [post] @Security BearerAuth
func (*Ab) Personal ¶
Personal @Tags 地址[Personal] @Summary 个人地址 @Description 个人地址 @Accept json @Produce json @Param string body string false "string valid" @Success 200 {object} response.Response @Failure 500 {object} response.Response @Router /ab/personal [post] @Security BearerAuth
func (*Ab) Settings ¶
Settings @Tags 地址[Personal] @Summary 设置 @Description 设置 @Accept json @Produce json @Param string body string false "string valid" @Success 200 {object} response.Response @Failure 500 {object} response.Response @Router /ab/settings [post] @Security BearerAuth
func (*Ab) SharedProfiles ¶
SharedProfiles @Tags 地址[Personal] @Summary 共享地址簿 @Description 共享 @Accept json @Produce json @Param current query int false "页码" @Param pageSize query int false "每页数量" @Success 200 {object} response.Response @Failure 500 {object} response.Response @Router /ab/shared/profiles [post] @Security BearerAuth
func (*Ab) TagAdd ¶
TagAdd @Tags 地址[Personal] @Summary 标签添加 @Description 标签 @Accept json @Produce json @Param guid path string true "guid" @Success 200 {string} string @Failure 500 {object} response.ErrorResponse @Router /ab/tag/add/{guid} [post] @Security BearerAuth
func (*Ab) TagDel ¶
TagDel @Tags 地址[Personal] @Summary 标签删除 @Description 标签 @Accept json @Produce json @Param guid path string true "guid" @Success 200 {string} string @Failure 500 {object} response.ErrorResponse @Router /ab/tag/{guid} [delete] @Security BearerAuth
func (*Ab) TagRename ¶
TagRename @Tags 地址[Personal] @Summary 标签重命名 @Description 标签 @Accept json @Produce json @Param guid path string true "guid" @Success 200 {string} string @Failure 500 {object} response.ErrorResponse @Router /ab/tag/rename/{guid} [put] @Security BearerAuth
func (*Ab) TagUpdate ¶
TagUpdate @Tags 地址[Personal] @Summary 标签修改颜色 @Description 标签 @Accept json @Produce json @Param guid path string true "guid" @Success 200 {string} string @Failure 500 {object} response.ErrorResponse @Router /ab/tag/update/{guid} [put] @Security BearerAuth
type Audit ¶
type Audit struct {
}
type Group ¶
type Group struct {
}
func (*Group) Device ¶
Device @Tags 群组 @Summary 设备 @Description 机器 @Accept json @Produce json @Param page query int false "页码" @Param pageSize query int false "每页数量" @Param status query int false "状态" @Param accessible query string false "accessible" @Success 200 {object} response.DataResponse @Failure 500 {object} response.Response @Router /device-group/accessible [get] @Security BearerAuth
func (*Group) Peers ¶
Peers @Tags 群组 @Summary 机器 @Description 机器 @Accept json @Produce json @Param page query int false "页码" @Param pageSize query int false "每页数量" @Param status query int false "状态" @Param accessible query string false "accessible" @Success 200 {object} response.DataResponse @Failure 500 {object} response.Response @Router /peers [get] @Security BearerAuth
func (*Group) Users ¶
Users 用户列表 @Tags 群组 @Summary 用户列表 @Description 用户列表 @Accept json @Produce json @Param page query int false "页码" @Param pageSize query int false "每页数量" @Param status query int false "状态" @Param accessible query string false "accessible" @Success 200 {object} response.DataResponse{data=[]apiResp.UserPayload} @Failure 500 {object} response.ErrorResponse @Router /users [get] @Security BearerAuth
type Index ¶
type Index struct {
}
func (*Index) Heartbeat ¶
Heartbeat 心跳 @Tags 首页 @Summary 心跳 @Description 心跳 @Accept json @Produce json @Success 200 {object} nil @Failure 500 {object} response.Response @Router /heartbeat [post]
type Login ¶
type Login struct {
}
func (*Login) Login ¶
Login 登录 @Tags 登录 @Summary 登录 @Description 登录 @Accept json @Produce json @Param body body api.LoginForm true "登录表单" @Success 200 {object} apiResp.LoginRes @Failure 500 {object} response.ErrorResponse @Router /login [post]
func (*Login) LoginOptions ¶
LoginOptions @Tags 登录 @Summary 登录选项 @Description 登录选项 @Accept json @Produce json @Success 200 {object} []string @Failure 500 {object} response.ErrorResponse @Router /login-options [get]
type Oauth ¶
type Oauth struct {
}
func (*Oauth) OauthCallback ¶
OauthCallback 回调 @Tags Oauth @Summary OauthCallback @Description OauthCallback @Accept json @Produce json @Success 200 {object} apiResp.LoginRes @Failure 500 {object} response.ErrorResponse @Router /oauth/callback [get]
func (*Oauth) OidcAuth ¶
OidcAuth @Tags Oauth @Summary OidcAuth @Description OidcAuth @Accept json @Produce json @Success 200 {object} apiResp.LoginRes @Failure 500 {object} response.ErrorResponse @Router /oidc/auth [post]
func (*Oauth) OidcAuthQuery ¶
OidcAuthQuery @Tags Oauth @Summary OidcAuthQuery @Description OidcAuthQuery @Accept json @Produce json @Success 200 {object} apiResp.LoginRes @Failure 500 {object} response.ErrorResponse @Router /oidc/auth-query [get]
type Peer ¶
type Peer struct {
}
func (*Peer) StoreCredentials ¶
StoreCredentials @Tags 设备 @Summary 存储设备凭证 @Description 存储设备的ID和密码 @Accept json @Produce json @Param body body requstform.CredentialsForm true "凭证表单" @Success 200 {object} response.SuccessResponse @Failure 500 {object} response.ErrorResponse @Router /store-credentials [post]
type WebClient ¶
type WebClient struct {
}
func (*WebClient) ServerConfig ¶
ServerConfig 服务配置 @Tags WEBCLIENT @Summary 服务配置 @Description 服务配置,给webclient提供api-server @Accept json @Produce json @Success 200 {object} response.Response @Failure 500 {object} response.Response @Router /server-config [get] @Security token
func (*WebClient) ServerConfigV2 ¶
ServerConfigV2 服务配置 @Tags WEBCLIENT_V2 @Summary 服务配置 @Description 服务配置,给webclient提供api-server @Accept json @Produce json @Success 200 {object} response.Response @Failure 500 {object} response.Response @Router /server-config-v2 [get] @Security token
func (*WebClient) SharedPeer ¶
SharedPeer 分享的peer @Tags WEBCLIENT @Summary 分享的peer @Description 分享的peer @Accept json @Produce json @Success 200 {object} response.Response @Failure 500 {object} response.Response @Router /shared-peer [post]