send_msg.api 568 B

1234567891011121314151617181920212223242526
  1. import "../base.api"
  2. type (
  3. WpWecomMsgReq {
  4. // 机器人微信id
  5. WxId *string `json:"wx_id"`
  6. // 接收方微信 id
  7. ConvId *string `json:"conv_id"`
  8. // 消息类型
  9. ContentType *string `json:"content_type"`
  10. // 消息内容
  11. Content *string `json:"content"`
  12. }
  13. )
  14. @server(
  15. group: wp_wecom
  16. )
  17. service Wechat {
  18. @handler sendMsg
  19. post /wp/wecom/send_msg (WpWecomMsgReq) returns (BaseMsgResp)
  20. @handler sendMsgByChan
  21. post /wp/wecom/send_msg_by_chan (WpWecomMsgReq) returns (BaseMsgResp)
  22. }