# getuigo **Repository Path**: akimimi/getuigo ## Basic Information - **Project Name**: getuigo - **Description**: 个推的GO语言组件 - **Primary Language**: Go - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 1 - **Created**: 2020-02-26 - **Last Updated**: 2022-08-05 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # getuigo ### 简介 项目在github.com/geek-go/getui的基础上封装了个推的go语言SDK。 项目定义了Payload数据结构和接口,并且封装了发送流程接口。 ### 数据结构说明 #### GetuiConfig ``` type GetuiConfig struct { AppId string `yaml:"appid"` AppKey string `yaml:"appkey"` AppSecret string `yaml:"appsecret"` MasterSecret string `yaml:"mastersecret"` } ``` 可以通过YAML或者其他方式填充个推的配置,注意请不要将秘钥包含在版本库中。 #### GetuiPush GetuiPush是外部调用的数据结构,封装了发送推送的接口。 #### BasicPayload ``` type BasicPayload struct { PushTitle string `json:"push_title"` PushBody string `json:"push_body"` IsShowNotify int `json:"is_show_notify"` Ext string `json:"ext"` } ``` 可以通过组合BasicPayload并实现Payload接口的方式定义属于业务的Payload。 ### 示例 sample中实现了调用示例。