import "../base.api"

type (
    WpWecomMsgReq {
        // 机器人微信id
        WxId *string `json:"wx_id"`
        // 接收方微信 id
        ConvId *string `json:"conv_id"`
        // 消息类型
        ContentType *string `json:"content_type"`
        // 消息内容
        Content *string `json:"content"`
    }
)

@server(
	group: wp_wecom
)

service Wechat {
    @handler sendMsg
    post /wp/wecom/send_msg (WpWecomMsgReq) returns (BaseMsgResp)

    @handler sendMsgByChan
    post /wp/wecom/send_msg_by_chan (WpWecomMsgReq) returns (BaseMsgResp)
}