go环境自行安装
根目录下增加 config.json 文件
{
"Wechat": {
"AppID": "xxx",
"AppSecret": "xxx",
"Token": "xxx",
"EncodingAESKey": "xxxxx"
},
"Db": {
"Address": "127.0.0.1",
"DbName": "remind",
"User": "root",
"Password": "Passw0rd",
"Port": 3306
},
"Email": {
"User": "[email protected]",
"Pass": "xxx",
"Host": "smtp.qq.com",
"Port": 25
}
}
数据库
数据库文件放在根目录下
在项目根目录下运行
go run main.go