张延森 d535e281f3 fix bug 3 anni fa
.vscode fix bug 3 anni fa
.gitignore add ignore exe 3 anni fa
README.md change readme 3 anni fa
go.mod first commit 3 anni fa
go.sum first commit 3 anni fa
help.go add check header 3 anni fa
help.html add check header 3 anni fa
main.go add check header 3 anni fa
sms.go fix bug 3 anni fa
template.yml first commit 3 anni fa
utils.go add check header 3 anni fa

README.md

短信发送

接口

  • /sms 发送短信
  • /help 使用说明

打包

一定要 CMD 执行, 不要 powershell

set CGO_ENABLED=0
set GOOS=linux
set GOARCH=amd64
go build -o bootstrap

部署

使用 linux

zip bootstrap.zip bootstrap help.html

使用 windows

fun deploy

示例

POST /sms

Body 数据如下: (JSON)

{
    "PhoneNumbers": "17714208769",
    "SignName": "云致科技",
    "TemplateCode": "SMS_207555188",
    "TemplateParam": "{\"code\":\"1234\"}"
}