import { Parameters, Result } from './SendMessageDeclare';
import { ServiceClient } from 'cn.keytop.stc.midend.ms.client';


const client = new ServiceClient()
const method = 'GET'
const enctype = 'application/x-www-form-urlencoded'

/**
* 消息发送测试 
* method:GET
* enctype:application/x-www-form-urlencoded
* pid:huarun-rocketmq
* sid:huarun-rocketmqsendMessage
* version:1.0
* @param parameters
*/
export async function sendMessage(parameters: Parameters): Promise<Result> {
    const headers = {
        'pid': 'huarun-rocketmq',
        'sid': 'huarun-rocketmqsendMessage',
        'uri': 'sendMessage',
        'version': '1.0'
    }
    return await client.request(method, enctype, headers, parameters)
}
