wecom

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

README

wecom

企业微信SDK

拉取取消息留痕,使用三方扩展 https://github.com/NICEXAI/WeWorkFinanceSDK 请将.so 文件拷贝进入系统,并进行配置 下面给出实际案例 dockerfile 配置

FROM golang:1.18
# lib文件夹就是WeWorkFinanceSDK文件夹中的 lib文件夹,请编译进容器中,否则程序会报文件不存在
COPY lib/* /usr/local/lib/

ENV LD_LIBRARY_PATH=/usr/local/lib

RUN cp -r -f /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \
	&& sed -i 's/deb.debian.org/mirrors.aliyun.com/g' /etc/apt/sources.list \
	&& sed -i 's/security.debian.org/mirrors.aliyun.com/g' /etc/apt/sources.list \
	&& apt-get update \
	&& apt-get install -y \
		procps \
		net-tools \
		vim \
	&& echo "alias ll='ls -alF'" >> /root/.bashrc \
	&& echo "alias l='ls -CF'" >> /root/.bashrc 

# RUN apt-get install -y ffmpeg

RUN rm -r /var/lib/apt/lists/*

ENV ROCKETMQ_GO_LOG_LEVEL ERROR

RUN go env \
	&& go env -w GOPROXY=https://goproxy.cn,direct \
    && go env -w GO111MODULE=on \
    && go env

EXPOSE 10800

WORKDIR /app

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Wecom

type Wecom struct {
	// contains filtered or unexported fields
}

func NewWecom

func NewWecom(cfg *config.Config) *Wecom

func (*Wecom) GetApplication

func (w *Wecom) GetApplication() (*application.Client, error)

GetApplication get application

func (*Wecom) GetContact

func (w *Wecom) GetContact() (*contact.Client, error)

GetContact get contact

func (*Wecom) GetContext

func (w *Wecom) GetContext() *context.Context

GetContext get Context

func (*Wecom) GetConversation

func (w *Wecom) GetConversation() (*conversation.Client, error)

GetConversation get conversation

func (*Wecom) GetExternalContact

func (w *Wecom) GetExternalContact() (*externalcontact.Client, error)

GetExternalContact get external contact

func (*Wecom) GetMassage

func (w *Wecom) GetMassage() (*message.Client, error)

GetMassage get message

func (*Wecom) GetMaterial

func (w *Wecom) GetMaterial() (*material.Client, error)

GetMaterial get material

func (*Wecom) GetOAuth

func (w *Wecom) GetOAuth() (*oauth.Client, error)

GetOAuth get oauth

func (*Wecom) GetPlatform

func (w *Wecom) GetPlatform() (*platform.Client, error)

GetPlatform 管理后台的接口

Directories

Path Synopsis
Package WeWorkFinanceSDK only for linux
Package WeWorkFinanceSDK only for linux
Package config 企业微信config配置
Package config 企业微信config配置

Jump to

Keyboard shortcuts

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