Documentation ¶
Index ¶
- func CloseAll(ctx *gin.Context) (*ginKit.ResponsePackage, error)
- func CloseByBsid(ctx *gin.Context) (*ginKit.ResponsePackage, error)
- func CloseByGroup(ctx *gin.Context) (*ginKit.ResponsePackage, error)
- func CloseById(ctx *gin.Context) (*ginKit.ResponsePackage, error)
- func CloseByUser(ctx *gin.Context) (*ginKit.ResponsePackage, error)
- func PushToAll(ctx *gin.Context) (*ginKit.ResponsePackage, error)
- func PushToBsid(ctx *gin.Context) (*ginKit.ResponsePackage, error)
- func PushToGroup(ctx *gin.Context) (*ginKit.ResponsePackage, error)
- func PushToUser(ctx *gin.Context) (*ginKit.ResponsePackage, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CloseAll ¶
func CloseAll(ctx *gin.Context) (*ginKit.ResponsePackage, error)
CloseAll @Summary 关闭所有连接. @Tags close @Accept x-www-form-urlencoded @Produce json @Param reason formData string false "关闭的原因." @Success 200 {object} types.JsonResponse @Router /close_all [post]
func CloseByBsid ¶
func CloseByBsid(ctx *gin.Context) (*ginKit.ResponsePackage, error)
CloseByBsid @Summary 关闭指定连接(根据bsid). @Tags close @Accept x-www-form-urlencoded @Produce json @Param bsid formData string true "要关闭哪个连接?" @Param reason formData string false "关闭的原因." @Success 200 {object} types.JsonResponse @Router /close_by_bsid [post]
func CloseByGroup ¶
func CloseByGroup(ctx *gin.Context) (*ginKit.ResponsePackage, error)
CloseByGroup @Summary 关闭指定连接(根据group). @Tags close @Accept x-www-form-urlencoded @Produce json @Param group formData string true "要关闭哪些连接?" @Param reason formData string false "关闭的原因." @Success 200 {object} types.JsonResponse @Router /close_by_group [post]
func CloseById ¶
func CloseById(ctx *gin.Context) (*ginKit.ResponsePackage, error)
CloseById @Summary 关闭指定连接(根据id). @Tags close @Accept x-www-form-urlencoded @Produce json @Param id formData string true "要关闭哪个连接?" @Param reason formData string false "关闭的原因." @Success 200 {object} types.JsonResponse @Router /close_by_id [post]
func CloseByUser ¶
func CloseByUser(ctx *gin.Context) (*ginKit.ResponsePackage, error)
CloseByUser @Summary 关闭指定连接(根据user). @Tags close @Accept x-www-form-urlencoded @Produce json @Param user formData string true "要关闭哪些连接?" @Param reason formData string false "关闭的原因." @Success 200 {object} types.JsonResponse @Router /close_by_user [post]
func PushToAll ¶
func PushToAll(ctx *gin.Context) (*ginKit.ResponsePackage, error)
PushToAll @Summary 推送消息给所有连接(exceptBsids对应的连接例外). @Tags push @Accept x-www-form-urlencoded @Produce json @Param text formData string true "推送消息的内容." @Param exceptBsids formData []string false "例外连接的bsid." @Success 200 {object} types.JsonResponse @Router /push_to_all [post]
func PushToBsid ¶
func PushToBsid(ctx *gin.Context) (*ginKit.ResponsePackage, error)
PushToBsid @Summary 推送消息给指定连接. @Tags push @Accept x-www-form-urlencoded @Produce json @Param text formData string true "推送消息的内容." @Param bsid formData string true "推送的目标连接." @Success 200 {object} types.JsonResponse @Router /push_to_bsid [post]
func PushToGroup ¶
func PushToGroup(ctx *gin.Context) (*ginKit.ResponsePackage, error)
PushToGroup @Summary 推送消息给group相关的所有连接(exceptBsids对应的连接例外). @Tags push @Accept x-www-form-urlencoded @Produce json @Param text formData string true "推送消息的内容." @Param group formData string true "推送消息的内容." @Param exceptBsids formData []string false "例外连接的bsid." @Success 200 {object} types.JsonResponse @Router /push_to_group [post]
func PushToUser ¶
func PushToUser(ctx *gin.Context) (*ginKit.ResponsePackage, error)
PushToUser @Summary 推送消息给user相关的所有连接(exceptBsids对应的连接例外). @Tags push @Accept x-www-form-urlencoded @Produce json @Param text formData string true "推送消息的内容." @Param user formData string true "推送消息的内容." @Param exceptBsids formData []string false "例外连接的bsid." @Success 200 {object} types.JsonResponse @Router /push_to_user [post]
Types ¶
This section is empty.