Documentation ¶
Index ¶
- Constants
- func GetOfficialAccount(appid string) (*officialaccount.OfficialAccount, *tables.WechatAccount)
- func InitRouter(app *pine.Application, router *pine.Router)
- func SaveCacheMaterialListKey(key string, cacher cache.AbstractCache)
- type MaterialUploadForm
- type Plugin
- type UserTags
- type WechatAccountController
- type WechatMagController
- type WechatMaterialController
- func (c *WechatMaterialController) Construct()
- func (c *WechatMaterialController) GetPreview()
- func (c *WechatMaterialController) PostClear(cacher cache.AbstractCache)
- func (c *WechatMaterialController) PostDelete()
- func (c *WechatMaterialController) PostList(cacher cache.AbstractCache)
- func (c *WechatMaterialController) PostSync()
- func (c *WechatMaterialController) PostTotal(cacher cache.AbstractCache)
- func (c *WechatMaterialController) PostUpload()
- type WechatMenuController
- type WechatMsg
- type WechatMsgTemplateController
- type WechatQrcodeController
- type WechatRuleController
- type WechatTokenCacher
- type WechatUserController
- type WechatUserTagsController
- func (c *WechatUserTagsController) Construct()
- func (c *WechatUserTagsController) PostAdd(cacher cache.AbstractCache)
- func (c *WechatUserTagsController) PostDelete(cacher cache.AbstractCache)
- func (c *WechatUserTagsController) PostEdit(cacher cache.AbstractCache)
- func (c *WechatUserTagsController) PostList(cacher cache.AbstractCache)
- func (c *WechatUserTagsController) PostTagging()
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 GetOfficialAccount ¶
func GetOfficialAccount(appid string) (*officialaccount.OfficialAccount, *tables.WechatAccount)
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 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
type WechatUserController ¶
type WechatUserController struct {
backend.BaseController
}
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
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()
Source Files ¶
Click to show internal directories.
Click to hide internal directories.