api

package
v0.0.0-...-99b6fc9 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2022 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ContactAPI = &_ContactAPI{}
View Source
var Im = &im{}
View Source
var (
	User = &UserApi{}
)

Functions

func CheckLogin

func CheckLogin(c *gin.Context)

CheckLogin 检查是否登陆

func ConnDetail

func ConnDetail(c *gin.Context)

ConnDetail 连接详情

func GetUserId

func GetUserId(c *gin.Context) uint

GetUserId 获取用户id

func Health

func Health(c *gin.Context)

func SendGroupMessage

func SendGroupMessage(c *ctx.Ctx, param *req.SendGroupMessageReq) (any, error)

SendGroupMessage todo

func SendUserMessage

func SendUserMessage(c *ctx.Ctx, param *req.SendUserMessageReq) (any, error)

SendUserMessage 发送用户消息接口

func UI

func UI(c *gin.Context)

Types

type UserApi

type UserApi struct {
}

func (*UserApi) Login

func (u *UserApi) Login(c *ctx.Ctx, param *req.Login) (any, error)

Login 用户登陆

func (*UserApi) Register

func (u *UserApi) Register(c *ctx.Ctx, param *req.Register) (any, error)

Register 用户注册

Jump to

Keyboard shortcuts

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