Documentation ¶
Overview ¶
*
- @api post model. *
- User: yunshengzhu
- Date: 2020/7/31
- Time: 3:00 下午
*
- @api post model. *
- User: yunshengzhu
- Date: 2020/7/31
- Time: 3:26 下午
*
- @api post model. *
- User: yunshengzhu
- Date: 2020/7/31
- Time: 3:02 下午
*
- @api post model. *
- User: yunshengzhu
- Date: 2020/7/31
- Time: 3:03 下午
*
- @api post model. *
- User: yunshengzhu
- Date: 2020/7/31
- Time: 3:04 下午
*
- @api post model. *
- User: yunshengzhu
- Date: 2020/7/31
- Time: 2:59 下午
Index ¶
- Constants
- func DingMap() *dingMap
- func GetBlockHeight(url string) (int64, error)
- func GetBlockHeightNumber(url string, heightBlock int64) (b block, err error)
- func NewActionCardMsg(title, text string, opts ...actionCardOption) *actionCardMsg
- func NewFeedCardMsg(feedCard []FeedCardLinkModel) *feedCardMsg
- func NewLinkMsg(title, text, picUrl, msgUrl string) *linkMsg
- func NewMarkDownMsg(title string, text interface{}, opts ...atOption) *markDownMsg
- func NewTextMsg(content string, opts ...atOption) *textMsg
- func WithAtAll() atOption
- func WithAtMobiles(mobiles []string) atOption
- func WithCardBtnVertical() actionCardOption
- func WithCardBtns(btns []ActionCardMultiBtnModel) actionCardOption
- func WithCardSingleTitle(title string) actionCardOption
- func WithCardSingleURL(url string) actionCardOption
- type ActionCardMultiBtnModel
- type ChainResp
- type DingTalk
- func (d *DingTalk) OutGoing(r io.Reader) (outGoing outGoingModel, err error)
- func (d *DingTalk) SendActionCardMessage(title, text string, opts ...actionCardOption) error
- func (d *DingTalk) SendActionCardMessageBySlice(title string, textList []string, opts ...actionCardOption) error
- func (d *DingTalk) SendFeedCardMessage(feedCard []FeedCardLinkModel) error
- func (d *DingTalk) SendLinkMessage(title, text, picUrl, msgUrl string) error
- func (d *DingTalk) SendMarkDownMessage(title, text string, opts ...atOption) error
- func (d DingTalk) SendMarkDownMessageBySlice(title string, textList []string, opts ...atOption) error
- func (d *DingTalk) SendTextMessage(content string, opt ...atOption) error
- type FeedCardLinkModel
- type MarkType
- type TokenTxIdResp
Constants ¶
View Source
const ( TEXT msgTypeType = "text" LINK msgTypeType = "link" MARKDOWN msgTypeType = "markdown" ACTION_CARD msgTypeType = "actionCard" FEED_CARD msgTypeType = "feedCard" )
Variables ¶
This section is empty.
Functions ¶
func GetBlockHeight ¶
func GetBlockHeightNumber ¶
func NewActionCardMsg ¶
func NewActionCardMsg(title, text string, opts ...actionCardOption) *actionCardMsg
func NewFeedCardMsg ¶
func NewFeedCardMsg(feedCard []FeedCardLinkModel) *feedCardMsg
func NewLinkMsg ¶
func NewLinkMsg(title, text, picUrl, msgUrl string) *linkMsg
func NewMarkDownMsg ¶
func NewMarkDownMsg(title string, text interface{}, opts ...atOption) *markDownMsg
func NewTextMsg ¶
func NewTextMsg(content string, opts ...atOption) *textMsg
func WithAtMobiles ¶
func WithAtMobiles(mobiles []string) atOption
func WithCardBtnVertical ¶
func WithCardBtnVertical() actionCardOption
func WithCardBtns ¶
func WithCardBtns(btns []ActionCardMultiBtnModel) actionCardOption
func WithCardSingleTitle ¶
func WithCardSingleTitle(title string) actionCardOption
func WithCardSingleURL ¶
func WithCardSingleURL(url string) actionCardOption
Types ¶
type ActionCardMultiBtnModel ¶
type DingTalk ¶
type DingTalk struct {
// contains filtered or unexported fields
}
func InitDingTalk ¶
func (*DingTalk) SendActionCardMessage ¶
func (*DingTalk) SendActionCardMessageBySlice ¶
func (*DingTalk) SendFeedCardMessage ¶
func (d *DingTalk) SendFeedCardMessage(feedCard []FeedCardLinkModel) error
func (*DingTalk) SendLinkMessage ¶
func (*DingTalk) SendMarkDownMessage ¶
func (DingTalk) SendMarkDownMessageBySlice ¶
func (*DingTalk) SendTextMessage ¶
type FeedCardLinkModel ¶
type TokenTxIdResp ¶
type TokenTxIdResp struct { Code int `json:"code"` Data struct { Count int64 `json:"count"` } `json:"data"` }
func GetTokenTxId ¶
func GetTokenTxId(url string, txId string) (b TokenTxIdResp, err error)
Click to show internal directories.
Click to hide internal directories.