controller

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2023 License: MPL-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContactQuery

func ContactQuery(c *utils.HttpContext, req *contactQueryReq) (interface{}, error)

func DeviceDelete

func DeviceDelete(c *utils.HttpContext, req *deviceDeleteReq) (interface{}, error)

func DeviceList

func DeviceList(c *utils.HttpContext, _ *struct{}) (interface{}, error)

func DeviceLogin

func DeviceLogin(c *utils.HttpContext, req *deviceLoginReq) (_ struct{}, _ error)

func DeviceLogout

func DeviceLogout(c *utils.HttpContext, req *deviceLogoutReq) (interface{}, error)

func DeviceStatus

func DeviceStatus(c *utils.HttpContext, req *deviceStatusReq) (*deviceStatusRes, error)

func FormFileData

func FormFileData(f *multipart.FileHeader) []byte

func GroupGet

func GroupGet(c *utils.HttpContext, req *groupGetReq) (interface{}, error)

func GroupJoin

func GroupJoin(c *utils.HttpContext, req *groupJoinReq) (interface{}, error)

func GroupList

func GroupList(c *utils.HttpContext, req *groupListReq) (interface{}, error)

func MachineInfo

func MachineInfo(_ *utils.HttpContext, _ *struct{}) (_ interface{}, err error)

func MessageSend

func MessageSend(c *utils.HttpContext, req *SendReq) (interface{}, error)

func SetProxy

func SetProxy(_ *utils.HttpContext, req *SetProxyReq) (*struct{}, error)

func TestProxy

func TestProxy(_ *utils.HttpContext, _ *struct{}) (*struct{}, error)

func UploadAdd

func UploadAdd(c *utils.HttpContext, _ *struct{}) (interface{}, error)

func UploadGet

func UploadGet(c *utils.HttpContext, req *uploadGetReq) (interface{}, error)

Types

type Contact

type Contact struct {
	Jid          string `json:"jid"`
	Found        bool   `json:"found"`
	Name         string `json:"name"`
	BusinessName string `json:"businessName"`
}

type DeviceListRes

type DeviceListRes struct {
	PushName     string    `json:"pushName"`
	Platform     string    `json:"platform"`
	Phone        string    `json:"phone"`
	Jid          types.JID `json:"jid"`
	BusinessName string    `json:"businessName"`
}

type MachineInfoRes

type MachineInfoRes struct {
	MachineID string `json:"machineId"`
	Version   string `json:"version"`
}

type SendReq

type SendReq struct {
	JID   types.JID `query:"jid"`
	Phone string    `form:"phone"`
	Type  int       `form:"type"`
	Text  string    `form:"text"`
}

type SetProxyReq

type SetProxyReq struct {
	Url string `json:"url"`
}

type VerifyReq

type VerifyReq struct {
	JID    types.JID `query:"jid"`
	Phones []string  `json:"phones,omitempty"`
}

type VerifyRes

type VerifyRes struct {
	JID  types.JID `json:"jid"`
	IsIn bool      `json:"isIn"`
}

func ContactVerify

func ContactVerify(c *utils.HttpContext, req *VerifyReq) ([]*VerifyRes, error)

Jump to

Keyboard shortcuts

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