command
module
Version:
v0.1.1-rc.1
Opens a new window with list of versions in this module.
Published: Apr 18, 2025
License: Apache-2.0
Opens a new window with license information.
Imports: 11
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
go语言实现的Gewechat api接口
介绍
本项目基于 Gewechat,请先确认 Gewechat 已经正常启动,否则无法使用本模块。
🚀 快速入门
安装Docker(如果你已有Docker请忽略此步骤)
Centos Docker安装,已安装Docker可跳过
-
安装gcc相关
yum -y install gcc
yum -y install gcc-c++
-
配置镜像
yum install -y yum-utils
yum-config-manager --add-repo https://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
yum makecache fast
-
安装docker
yum install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
-
启动docker
systemctl start docker
//将docker设置成开机自启动
systemctl enable docker.service
启动 Gewechat 服务
-
拉取镜像
docker pull registry.cn-hangzhou.aliyuncs.com/gewe/gewe:latest
docker tag registry.cn-hangzhou.aliyuncs.com/gewe/gewe gewe
-
运行镜像容器(请注意端口2531和2532不要被占用)
mkdir -p /root/temp
docker run -itd -v /root/temp:/root/temp -p 2531:2531 -p 2532:2532 --privileged=true --name=gewe gewe /usr/sbin/init
-
将容器设置成开机运行
docker update --restart=always gewe
Gewechat 服务调用接口如下:
-
API服务调用地址 http://{服务ip}:2531/v2/api/{接口名}
-
文件下载地址 http://{服务ip}:2532/download/{接口返回的文件路径}
注意事项:
交流群:
添加好友备注加群交流
版本更新
1.0.0
Documentation
¶
There is no documentation for this package.
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.