Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

492 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ZNotify Server

ZNotify 服务端。

启动参数

This is ZNotify api server.

Usage:
  server [flags]
  server [command]

Available Commands:
  check       Check configuration file.
  completion  Generate the autocompletion script for the specified shell
  help        Help about any command

Flags:
  -a, --address ADDRESS   Set listen address to ADDRESS. (default "0.0.0.0:14444")
  -c, --config FILE       Load configuration from FILE, or use ENV to load from environment variable CONFIG. (default "data/config.yaml")
  -h, --help              help for server



Use "server [command] --help" for more information about a command.

配置文件

配置文件应当被放置在 data/config.yaml, 或者通过参数 config 指定。

可以使用 JSON Schema 来验证配置文件。

请求参数

POST https://host/{user_id}/send

@path   user_id  用户 ID
@param  title    推送标题
@param  content  推送内容
@param  long     传送到客户端的长内容, 需要点击查看

long 支持 markdown 格式, 支持使用表格扩展。

完整的请求参数请参考 API 文档

构建

构建前端后,将构建产物复制到 app/api/web/static 文件夹,执行

go build -v

Releases

Packages

Used by

Contributors

Languages