chat

package module
v0.0.0-...-26948f4 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2021 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ChatAlert

func ChatAlert(w http.ResponseWriter, req *http.Request)

http Api:获取chat提醒

func Decrypt

func Decrypt(app_secret string, data_str string, data_ptr *map[string]interface{})

func Decrypt2String

func Decrypt2String(app_secret string, data_str string) string

func Encrypt

func Encrypt(app_secret string, data *map[string]interface{}) string

Types

type AlertResp

type AlertResp struct {
	Code           string      `json:"code"`
	Status         int         `json:"status"`
	Msg            string      `json:"msg"`
	Update         int         `json:"update"`
	Update_details []UpDetails `json:"update_details"`
}

type GenKey

type GenKey struct {
	ChatId string
	Uid    string
	Action string
}

TODO 得加入appid,否则会有问题,不过也就是多轮询一次,所以暂时不加

type UpDetails

type UpDetails struct {
	Name   string `json:"name"`
	Update int    `json:"update"`
}

Jump to

Keyboard shortcuts

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