wechat

package
v0.0.0-...-5284134 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2024 License: Apache-2.0 Imports: 30 Imported by: 0

README

微信模块

开发期间本地可以使用 FRP花生壳 软件做内网穿透代理

[common]
server_addr = 100.100.100.100 # 服务端IP
server_port = 7000 # 服务端端口

[web]
type = http
local_port = 2019
custom_domains = wechat.xxx.com

Documentation

Index

Constants

View Source
const CacheKeyWechatMaterialCount = "pinecms.wechat.material.count.%s"
View Source
const CacheKeyWechatMaterialListKeys = "pinecms.wechat.material.list.key"
View Source
const CacheKeyWechatMenu = "pinecms.wechat.menu.%s"
View Source
const CacheKeyWechatUserTags = "pinecms.wechat.user.tags.%s"
View Source
const CacheTimeSecs = 30 * 24 * 3600

Variables

This section is empty.

Functions

func InitRouter

func InitRouter(app *pine.Application, router *pine.Router)

func SaveCacheMaterialListKey

func SaveCacheMaterialListKey(key string, cacher cache.AbstractCache)

Types

type MaterialUploadForm

type MaterialUploadForm struct {
	Appid        string `json:"appid"`
	MediaID      string `json:"mediaId"`
	FileName     string `json:"fileName"`
	Title        string `json:"title"`
	Introduction string `json:"introduction"`
	MediaType    string `json:"mediaType"`
}

MaterialUploadForm 素材上传表单结构

type Plugin

type Plugin struct {
}

Plugin TODO 回复插件

type UserTags

type UserTags struct {
	Appid   string   `json:"appid"`
	Id      int64    `json:"id"`
	Name    string   `json:"name"`
	Openids []string `json:"openids"`
	Action  string   `json:"action"`
}

UserTags 用户标签结构

type WechatAccountController

type WechatAccountController struct {
	backend.BaseController
}

func (*WechatAccountController) Construct

func (c *WechatAccountController) Construct()

func (*WechatAccountController) PostClear

func (c *WechatAccountController) PostClear()

func (*WechatAccountController) PostDistribution

func (c *WechatAccountController) PostDistribution()

PostDistribution 会员分布

func (*WechatAccountController) PostSelect

func (c *WechatAccountController) PostSelect()

type WechatMagController

type WechatMagController struct {
	backend.BaseController
}

func (*WechatMagController) Construct

func (c *WechatMagController) Construct()

func (*WechatMagController) PostReply

func (c *WechatMagController) PostReply()

type WechatMaterialController

type WechatMaterialController struct {
	backend.BaseController
}

func (*WechatMaterialController) Construct

func (c *WechatMaterialController) Construct()

func (*WechatMaterialController) GetPreview

func (c *WechatMaterialController) GetPreview()

func (*WechatMaterialController) PostClear

func (c *WechatMaterialController) PostClear(cacher cache.AbstractCache)

func (*WechatMaterialController) PostDelete

func (c *WechatMaterialController) PostDelete()

PostDelete 删除素材

func (*WechatMaterialController) PostList

func (c *WechatMaterialController) PostList(cacher cache.AbstractCache)

func (*WechatMaterialController) PostSync

func (c *WechatMaterialController) PostSync()

func (*WechatMaterialController) PostTotal

func (c *WechatMaterialController) PostTotal(cacher cache.AbstractCache)

func (*WechatMaterialController) PostUpload

func (c *WechatMaterialController) PostUpload()

type WechatMenuController

type WechatMenuController struct {
	backend.BaseController
	// contains filtered or unexported fields
}

func (*WechatMenuController) Construct

func (c *WechatMenuController) Construct()

func (*WechatMenuController) GetInfo

func (c *WechatMenuController) GetInfo(cacher cache.AbstractCache)

func (*WechatMenuController) PostEdit

func (c *WechatMenuController) PostEdit()

type WechatMsg

type WechatMsg struct {
	Title string `json:"title"`
	// 小程序
	AppID        string `json:"appid"`
	PagePath     string `json:"pagePath"`
	ThumbMediaID string `json:"thumb_media_id"`

	// 音乐 视频
	Description string `json:"description"`
	MusicURL    string `json:"music_url"`
	HQMusicURL  string `json:"hq_music_url"`

	MediaID string `json:"media_id"`

	KfAccount string `json:"kf_account"`

	Articles []*message.Article
}

WechatMsg 微信自动回复混合消息结构

type WechatMsgTemplateController

type WechatMsgTemplateController struct {
	backend.BaseController
}

func (*WechatMsgTemplateController) Construct

func (c *WechatMsgTemplateController) Construct()

func (*WechatMsgTemplateController) PostSend

func (c *WechatMsgTemplateController) PostSend()

func (*WechatMsgTemplateController) PostSync

func (c *WechatMsgTemplateController) PostSync()

type WechatQrcodeController

type WechatQrcodeController struct {
	backend.BaseController
}

func (*WechatQrcodeController) Construct

func (c *WechatQrcodeController) Construct()

type WechatRuleController

type WechatRuleController struct {
	backend.BaseController
}

func (*WechatRuleController) Construct

func (c *WechatRuleController) Construct()

type WechatTokenCacher

type WechatTokenCacher struct {
	cache2.AbstractCache
}

func (WechatTokenCacher) Delete

func (w WechatTokenCacher) Delete(key string) error

func (WechatTokenCacher) Get

func (w WechatTokenCacher) Get(key string) any

func (WechatTokenCacher) IsExist

func (w WechatTokenCacher) IsExist(key string) bool

func (WechatTokenCacher) Set

func (w WechatTokenCacher) Set(key string, val any, timeout time.Duration) error

type WechatUserController

type WechatUserController struct {
	backend.BaseController
}

func (*WechatUserController) After

func (c *WechatUserController) After(act int, _ any) error

func (*WechatUserController) Before

func (c *WechatUserController) Before(act int, params any) error

func (*WechatUserController) Construct

func (c *WechatUserController) Construct()

func (*WechatUserController) PostSavePoster

func (c *WechatUserController) PostSavePoster()

PostSavePoster 保存海报 vue-canvas-poster

func (*WechatUserController) PostSync

func (c *WechatUserController) PostSync()

PostSync 同步粉丝

type WechatUserTagsController

type WechatUserTagsController struct {
	backend.BaseController
	// contains filtered or unexported fields
}

func (*WechatUserTagsController) Construct

func (c *WechatUserTagsController) Construct()

func (*WechatUserTagsController) PostAdd

func (c *WechatUserTagsController) PostAdd(cacher cache.AbstractCache)

func (*WechatUserTagsController) PostDelete

func (c *WechatUserTagsController) PostDelete(cacher cache.AbstractCache)

func (*WechatUserTagsController) PostEdit

func (c *WechatUserTagsController) PostEdit(cacher cache.AbstractCache)

func (*WechatUserTagsController) PostList

func (c *WechatUserTagsController) PostList(cacher cache.AbstractCache)

func (*WechatUserTagsController) PostTagging

func (c *WechatUserTagsController) PostTagging()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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