Versions in this module Expand all Collapse all v1 v1.0.1 May 26, 2021 Changes in this version + const CreateMenuURL + const DeleteMenuURL + const GetAgentDetailURL + const GetAgentListURL + const GetMenuURL + const SetAgentURL + type AgentItem struct + AgentID int + Name string + SquareLogoURL string + type AllowPartys struct + PartyID []int + type AllowTags struct + TagID []int + type AllowUserinfos struct + Users []struct{ ... } + type ButtonItem struct + AppID string + Key string + Name string + PagePath string + SubButton []ButtonItem + Type MenuType + Url string + type CreateMenuReq struct + Button []ButtonItem + type CustomAppManager struct + func NewCustomAppManager(corpid string, agentid string, secret string, ...) *CustomAppManager + func (manager *CustomAppManager) CreateMenu(req CreateMenuReq, agentid string) (*commons.CommonError, error) + func (manager *CustomAppManager) DeleteMenu(agentid string) (*commons.CommonError, error) + func (manager *CustomAppManager) GetAgentDetail(agentid string) (*GetAgentDetailResp, error) + func (manager *CustomAppManager) GetAgentList() (*GetAgentListResp, error) + func (manager *CustomAppManager) GetMenu(agentid string) (*GetMenuResp, error) + func (manager *CustomAppManager) SetAgent(req SetAgentReq) (*commons.CommonError, error) + type GetAgentDetailResp struct + AgentID string + Close int + Description string + HomeURL string + IsReportenter int + Name string + RedirectDomain string + ReportLocationFlag int + SquareLogoURL string + type GetAgentListResp struct + AgentList []AgentItem + type GetMenuResp struct + Button []ButtonItem + type MenuType string + const Click + const LocationSelect + const PicPhotoOrAlbum + const PicSysPhoto + const PicWeixin + const ScancodePush + const ScancodeWaitMsg + const View + const ViewMiniProgram + type SetAgentReq struct + AgentID string + Description string + HomeURL string + IsReportenter int + LogoMediaID string + Name string + RedirectDomain string + ReportLocationFlag int